PDA

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



H_T_O_A
14-04-2008, 13:27
سلام
بنده يك برنامه تاپيك از سايت مايكروسافت دانلود كردم كه برم رو سورسش كار كنم شايد اينجوري ياد بگيرم ولي وقتي با ويژوال استديو ران ميكنم از فايل 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>




از لاين 26 اشكال ميگيره

hana2064
05-10-2008, 16:06
برو از منوی file گزینه open>project/solution رو بزن و فایل slnاش رو از مسیری که ذخیره کردی اجرا کن . من به همین شکل اجرا کردم وهیچ مشکلی نداره . اگر اجرا نشد ببین توی server explorer بانک این برنامه Attach شده یا نه ؟

Ultimator
05-10-2008, 17:08
سلام

اگه کل سلوشن رو اجرا کرده باشید نباید مشکلی باشه .. این ارور معمولا وقتی پیش میاد که تو یه سابدایرکتوری معمولی بخواید اپلیکیشن رو اجرا کنید به جای Virtual directory