Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with setting up ASP.NET on webserver

Status
Not open for further replies.

mattrixxg

Programmer
Sep 21, 2005
2
US
hello,

I am new to asp.net and was trying to implement something on the webserver. This code worked on my local machine however fails to work on the server. I think it could be a problem of configuration. Can someone tell me what i need to do?

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>

 
Make sure that the folder that you are uploading to on the server is configured as an ASP.Net application.

In IIS Manager, find the folder in the tree, right click on it, click properties, and in the Directory Tab click Create next to Application Name. If you see Remove, then that has already been done.

Secondly, edit your web.config file as they have described in that error.

Change the word RemoteOnly to Off and you will see detailed error information as long as it is in an application folder.

----------------------------------------

TWljcm8kb2Z0J3MgIzEgRmFuIQ==
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top