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

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>
 
C

Cowboy \(Gregory A. Beamer\)

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!
**********************************************************************
 
M

Matthew Louden

How can I enable ASP.NET in windows 2003 server? I couldn't see that setting
in IIS 6.0
 
S

Sherif ElMetainy

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top