ورود

نسخه کامل مشاهده نسخه کامل : خطايي در فايل web.config



H_T_O_A
14-04-2008, 13:35
سلام
من يه تاپيك اپن سورس از سايت مايكروسافت دانلود كردم كه شايد با كار كردن رو كدش يه كم ياد بگيريم چطور تاپيك بسازم اما وقتي در ويژوال استديو برنامه رو ران ميكنم از لاين 26 فايل web.config خطا ميگيره








Server Error in '/TheBeerHouse' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 24:
Line 25: <system.web>
Line 26: <authentication mode="Forms">
Line 27: <forms cookieless="AutoDetect" loginUrl="~/AccessDenied.aspx" name="TBHFORMAUTH"/>
Line 28: </authentication>








من چكار بايد بكنم

_H2_
14-04-2008, 15:18
سلام
1) کدها با تگ CODE مشخص کنید تا مشکل بدی نمایش پیدا نکنند.
2) مطمئن نیستم ولی شاید پروژه را root باز نکرده باشید.
مثلاً پروزه در شاخه C:\AAA\BBB\CCC قرار دارد و شما در VS مسیر C:\AAA\BBB را باز کرده اید.

یک چکی کنید، اگر از این نبود، بعد به چیزهای دیگر میرسیم.

Ultimator
14-04-2008, 20:07
دقیقا باید برای آن یک virtual directory ایجاد کنید تا authentication آن مشکلی نداشته باشد ، یعنی کل برنامه رو توی پوشه نذارید ، بذارید تو یه virtual directory