ASP.NET application works in IIS PWS, but not in remote IIS.

  • Thread starter Thread starter Matthew Louden
  • Start date Start date
M

Matthew Louden

My ASP.NET application is running without error in my local machine (IIS
PWS). However, once I upload all the ASPX files to the remote IIS machine
with Windows Server 2003 OS, it no longer works.

Here's the run-time error, any ideas??


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>
 
Make sure ASP.NET is enabled on the Windows 2003 server. By default, it is
not. Also, make sure you load the DLL, from IL compilation, in the bin
folder. You might want to turn off custom errors, as suggested, and see what
is causing the issue. You can always go back to the default after you fix
the problem.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
How can I enable ASP.NET in windows 2003 server? I couldn't see that setting
in IIS 6.0
 
Hello

I suggest you do as the error message says. i.e. change customeErrors mode
to Off. This will give you another error message with the exact details of
the error cause.
The cause of the error can be anything.

Best regards

Sherif
 
Back
Top