PDA

View Full Version : Server Error in '/' Application.


nizeem
04-07-04, 06:55 AM
hi !
no matter wat i do i get this error the .net scripts run fine on my local server but on remote server they give 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 <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>





i have created web.config file but the server dont seem to detect it , can any one tell me how will i know server is detecting the web.config file ???

Thanks
Nizeem S Nizar

MrBigTime
04-30-04, 11:04 PM
The problem is the web.config file. You need to find the Tag that is specified and set it to off like the error explains.

Then you need to place the web.config file in the root directory. Keep the one in the folder of your project but put a copy in your folder "Inetput" which has wwwroot as a folder in it.

You may get a different error after this like i did. This error will ask you to change the tag <authentication mode="Windows" />
to this <authentication mode="None" />

Finally, if you receive the ParseError. I needed to open IIS management console and make the project folder an "Application" by clicking CREATE

Depending on what version of Server is running, the way you go about changing the directory to an "Application", may be different.

I hope this helps. It took me quite a while to figure this one out because the answer is nowhere to be found on the internet. I done searches all over in microsoft, yahoo, Google, all over. I found nothing. So I ended up readin the errors word for word and changing the Tags it suggested in the error, copying the web.config files into every directory the project is in, until i got it working. Then I got another error, which I had to change the webconfig files and so on.

Grad School Next Semester for Computer Science finally paid off. After all the fruitless searches I was forced to solve my problem.

Goodluck and let me know how it trns out for you.
Chris
MrBigTime@comcast.net

techknow
05-01-04, 06:06 PM
Just paste the code (just the code) into a blank notepad document. Then save it as web.config when you save it make sure you set the save as type to "all files" or it will actually save as web.config.txt which will not function...

Once that works then it will tell you where the error is when you run the script.

Good luck.