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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Works on localhost but not on web server

Status
Not open for further replies.

Chrissirhc

Programmer
May 20, 2000
926
GB
I've developed some code that works perfectly on the localhost.

I've copied the files to the web server and I get an error when I try to run the code:

Server Error in '/RandA_Monitors' 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 &quot;web.config&quot; configuration file located in the root directory of the current web application. This <customErrors> tag should then have its &quot;mode&quot; attribute set to &quot;Off&quot;.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode=&quot;Off&quot;/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the &quot;defaultRedirect&quot; 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=&quot;RemoteOnly&quot; defaultRedirect=&quot;mycustompage.htm&quot;/>
</system.web>
</configuration>


I've tried changing the webconfig file but it doesn't seem to make a difference. Any ideas?

Thanks in advance,

Chris
 
I got rid of everything in the webconfig file and added only:

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode=&quot;Off&quot;/>
</system.web>
</configuration>

Are there any negative implications from doing this?

Thanks,

Chris
 
Okay so I get the page to load up, but none of the logic on it is running.

It works locally but not on the web server still.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top