takgig
جمعه 02 اردیبهشت 1390, 09:38 صبح
سلام بر اساتید گرامی
من دیروز برنامه رو Publish کردم و داخل سایت قرار دادم با ارور زیر مواجه شدم :
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>
و در انجمن جستجو کردم و همه جوابها به این کار ختم می شد که باید در web.config مقدار CustomError رو از طریق دستور زیر غیر فعال کنم.
<system.web> <customErrors mode="Off"/> </system.web>
اینکارو هم انجام دادم ولی با کمال تعجب دوباره همین پیغام رو میده .ضمناً من فایلهامو توی یک دایرکتوری در هاست آپلود کردم و در شاخه اصلی یک برنامه دیگه موجوده .
برنامه هم روی Local Host کامپیوترم جواب می ده .
از این کد هم در web.Config برای اتصال دیتابیس استفاده کردم :
<add name="ApplicationServices" connectionString="Data Source=.;Initial Catalog=Form;Persist Security Info=True;User ID=,form;Password=abc123456" providerName="System.Data.SqlClient"/>
لطفاً راهنمایی نمایید .
با تشکر
من دیروز برنامه رو Publish کردم و داخل سایت قرار دادم با ارور زیر مواجه شدم :
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>
و در انجمن جستجو کردم و همه جوابها به این کار ختم می شد که باید در web.config مقدار CustomError رو از طریق دستور زیر غیر فعال کنم.
<system.web> <customErrors mode="Off"/> </system.web>
اینکارو هم انجام دادم ولی با کمال تعجب دوباره همین پیغام رو میده .ضمناً من فایلهامو توی یک دایرکتوری در هاست آپلود کردم و در شاخه اصلی یک برنامه دیگه موجوده .
برنامه هم روی Local Host کامپیوترم جواب می ده .
از این کد هم در web.Config برای اتصال دیتابیس استفاده کردم :
<add name="ApplicationServices" connectionString="Data Source=.;Initial Catalog=Form;Persist Security Info=True;User ID=,form;Password=abc123456" providerName="System.Data.SqlClient"/>
لطفاً راهنمایی نمایید .
با تشکر