473,320 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error when publishing asp.net web

JC
Hi, I have a simple web application and It works well in my local computer..
When i upload it to my web server i get this error:
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 <customErrorstag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrorstag 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
<customErrorsconfiguration 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>
I already made the changes, the Bin folder and Web.config are under the /
but still get the same error... any ideas about whats going on. The server
is a Windows 2000 with .Net Framework 1.1
Thank you in advance for your help.
JC
Dec 19 '06 #1
5 1301
bpd
Typically, the application needs created under IIS.
-Run IIS.
-Find the folder/application - most likely under Default Web Site.
-Right click on the folder/application.
-Click on the create button.

JC wrote:
Hi, I have a simple web application and It works well in my local computer..
When i upload it to my web server i get this error:
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 <customErrorstag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrorstag 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
<customErrorsconfiguration 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>
I already made the changes, the Bin folder and Web.config are under the /
but still get the same error... any ideas about whats going on. The server
is a Windows 2000 with .Net Framework 1.1
Thank you in advance for your help.
JC
Dec 19 '06 #2
JC
Already did that and didn`t work, still getting the error message.
Thanks, JC

"bpd" <br*********@rollcoater.comescribió en el mensaje
news:11**********************@f1g2000cwa.googlegro ups.com...
Typically, the application needs created under IIS.
-Run IIS.
-Find the folder/application - most likely under Default Web Site.
-Right click on the folder/application.
-Click on the create button.

JC wrote:
>Hi, I have a simple web application and It works well in my local
computer..
When i upload it to my web server i get this error:
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 <customErrorstag within a
"web.config"
configuration file located in the root directory of the current web
application. This <customErrorstag 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
<customErrorsconfiguration 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>
I already made the changes, the Bin folder and Web.config are under the /
but still get the same error... any ideas about whats going on. The
server
is a Windows 2000 with .Net Framework 1.1
Thank you in advance for your help.
JC

Dec 19 '06 #3
JC,

You say that the server is Windows 2000 with .Net 1.1, I take it that
the web site is also .Net 1.1? Sorry for the obvious question but you
don't mention this in your post.

Also are you able to get access to the server itself? Can you run the
application from the server, i.e. log on to the server and run a IE.
This will give you the real error message.

Steve

Dec 19 '06 #4
JC
Thank you Stephen. I already solved the problem.
The NT filesystem security was preventing the
application hosting ASP.NET from reading the ASP.NET pages. If you're
running
under W2K then the DACLs need to allow the local ASPNET account read access.

By design, in Microsoft Windows 2000 and in Microsoft Windows XP, ASP.NET
requires read, execute, and list access for the ASPNET account (the
Aspnet_wp.exe process account) on the root Web site or on any virtual
directory. Similarly, in Microsoft Windows Server 2003, ASP.NET requires
read, execute, and list access for the NETWORK SERVICE account (the W3wp.exe
process account) on the root Web site or on any virtual directory. This is
necessary so that ASP.NET can access the content files and can monitor file
changes.

RESOLUTION
To add read, execute, and list access for the ASPNET account on the root Web
site or on any virtual directory, follow these steps: 1. In Windows
Explorer, browse to the folder that contains the root Web site (which is
C:\Inetpub\Wwwroot by default) or the virtual directory.
2. Right-click the folder, and then click Properties.
3. On the Security tab, click Add.
4. Type ComputerName\ASPNET (for example, on a computer named Webdev,
type Webdev\ASPNET), and then click OK.
5. Allow the following permissions for the ASPNET account: . Read &
Execute
. List Folder Contents
. Read

6. Click OK to close the Properties dialog box and to save the
changes.
JC
If it's W2K3 then it's the Network Service account that requires read
access.
"Jester98x" <st**********@wdr.co.ukescribió en el mensaje
news:11*********************@f1g2000cwa.googlegrou ps.com...
JC,

You say that the server is Windows 2000 with .Net 1.1, I take it that
the web site is also .Net 1.1? Sorry for the obvious question but you
don't mention this in your post.

Also are you able to get access to the server itself? Can you run the
application from the server, i.e. log on to the server and run a IE.
This will give you the real error message.

Steve

Dec 20 '06 #5
JC,

Glad to hear you got it working.

Steve

Dec 20 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I...
4
by: Piz | last post by:
Hi all! Here's my problem. I'm developing a website. That site works well, but i get a strange error after publishing it. I'm working with Visual Studio 2005 and 2.0 .NET Framework. The error...
1
by: Rich | last post by:
When I try to publish my app I am now getting the 401 error message. It used to work. Then someone changed something on the server. We are now trying to change stuff back on the server. I don't...
2
by: DCC700 | last post by:
VS 2005 Converted Header causing error when publishing After converting from Visual Studio 2003 to 2005, I have had several issues with a header that is used throughout the project. The...
5
by: sandeepk84 | last post by:
Hi all, I have a site that was wrking properly ... i tried publishing it into a local folder in my machine itself, which is made as a virtual directory in IIS...but after publishing when i try to...
1
by: moondaddy | last post by:
running vs2005 I have a small test website called TestPublish which has default.aspx, ErrorPage.aspx and testpage.htm. The default page just says hello world and no other code and the errorpage...
0
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I have not tried this before. I have been building an ASP.Net 2.0 app for some weeks now and up till now I have not had any problems publishing. I was given a Word doc to include in the app. I...
1
by: vikjohn | last post by:
I have a new perl script sent to me which is a revision of the one I am currently running. The permissions are the same on each, the paths are correct but I am getting the infamous : The specified...
1
by: =?Utf-8?B?VmlqYXkgQ2hpa3Rl?= | last post by:
Hi Experts, With Session Affinity and Web Server Farm on ISA Server 2006 accessing 2 backend IIS servers, I’m getting error “Validation of ViewState MAC failed. If this application is hosted...
3
by: fudge | last post by:
hello, i am very new to publishing applications.can some one help me with it..as i am facing an error after publishing path not valid..i went through many sites and forum for and found many articles...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.