Hello, I have an application that I developed on my home machine and everything was working just fine. I take the code and export the source code to the server at the school and I get an error - telling me to create or adjust my "<customErrors" setting.
My current setting is set to "RemoteOnly" and it was asking me to set it to "Off". No matter what I set it to, I still get the same error.
Here is the detail error message:
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".
What do I need to do to get around this problem?You have to find the web.config located in the highest directory of that virtual application and set the customerrors = Off
The directory you uploaded to is most likely not configured to be its own application, so it would not be the highest one involved.
Example:
You upload and the URL to your web application is as follows:
http://someserver/students/you/myapp/default.aspx
You might be tempted to edit the web.config in the myapp location, when most likely, the following web.config needs edited:
c:\inetpub\wwwroot\web.config
What I usually do is try editing the one at the myapp level. If that does not work, just back up one level and edit that one (if it exists) and keep backing up one level at a time until I hit it.
Alternatively, you can set your application to be a virtual application as long as you have IIS Admin privelages to the server it is hosted on (like if it is on a personal computer at your school).
From the Start Menu, go to settings, then control panel.
From there, open Administrative Tools and then Internet Information Services.
Expand your computer, the default website and any folders until you get to your application's folder (myapp in the example above).
Right click --> Properties, then click the CREATE button and then OK.
I am guessing that you are correct. Unfortunately, I have no authority to access any directories above mine.
I removed the web.config file and it ran just find, which I am guessing that it would not have if the folder was identified as an application folder.
I am making "plea's" to my instructor to see if he can get someone to make the change....we will see.
Thanks for your help...
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment