PDA

View Full Version : پیغام زمان اجرا



hr_3303
سه شنبه 12 اردیبهشت 1391, 17:35 عصر
سلام دوستان .من سایتم آپلود کردم ولی نمی دونم چرا این پیغام میاد.از دوستان خواهشمندم کمک کنند.



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>

hamid_shrk
سه شنبه 12 اردیبهشت 1391, 18:01 عصر
همونطور که خودش گفته در وب کانفیگ customErrors رو mode="RemoteOnly" یا on بذارید تا بتونید خطای زخ داده رو ببینید.

hr_3303
چهارشنبه 13 اردیبهشت 1391, 17:22 عصر
ببخشیدا.شرمنده . ولی من توی web.config فقط اینارو دارم. کجا باید تغییر بدم.
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="MyConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\MyDatabase.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
</configuration>

neda555
چهارشنبه 13 اردیبهشت 1391, 19:15 عصر
شما باید connectionString را تغییر بدید این connectionString فقط برای حالت local استفاده میشه وقتی شما دیتابیس را میخواهید آپلود کنید باید اول یه دیتابیس روی پنلتون هاستتون بسازید و user و pass و نام دیتابیس را برای اتصال اینجا وارد کنید
جستجو کنید مراحل آپلود دیتابیس را
اینم باید customError :
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
باید بین تگ های </system.web><system.web> بزاریدش