PDA

View Full Version : این برنامه چرا اجرا نمی شه؟



saeedmain
دوشنبه 26 بهمن 1388, 11:54 صبح
سلام
من یه برنامه تحت وب رو با ویژوال استودیو باز کردم ولی موقع اجرا پیغام خطای زیر رو میده .مشکل چیه؟خواهشا راهنماییم کنید. (البته IIS فعاله.)ممنون


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

Saber_Fatholahi
دوشنبه 26 بهمن 1388, 16:03 عصر
دوست من شما سایت یه شاخه بالاتر باز کردید پس به صورت پیش فرض دوتا وب کانفیگ دارید که تنظیمات احراز هویت توی اونه
و به همین دلیل خطا صادر میشه
سایت درست باز کنین یعنی آخرین شاخه سایت باز کنین که این خطا صادر نشه
نمی دنم منظورم درست به شما رسوندم یا
نه موفق باشید

saeedmain
دوشنبه 26 بهمن 1388, 16:46 عصر
با سلام خدمت شما وتشکر
بله فرمایش شما درست بود.ولی این بار یه exception دیگه میده.با اینکه پایگاه داده در test connection درست وصل می شود.ولی در اجرا به خطای زیر منجر میشود:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Cannot open database "DBOnlineShop" requested by the login. The login failed.
Login failed for user 'PPC\saeed'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

Saber_Fatholahi
دوشنبه 26 بهمن 1388, 22:56 عصر
دوست من کانکشن استرینگتو بذار که بتونم کمکت کنم