Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Server Error in '/' Application.

Server Error in '/' Application.

Reply
  #1 (permalink)  
Old 04-07-04, 06:55 AM
nizeem nizeem is offline
New Member
 
Join Date: Apr 2004
Location: Dubai,UAE
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Server Error in '/' Application.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-30-04, 11:04 PM
MrBigTime MrBigTime is offline
New Member
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Solution

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-01-04, 06:06 PM
techknow's Avatar
techknow techknow is offline
Newbie Coder
 
Join Date: Apr 2004
Location: Lomita, Ca
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
Best Regards,

TechKnow
Head-Nerd-In-Charge
Advanced Tech Knowledge

Http://justoneguy.com

http://atkhost.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free web site, control panel, and dedicated IP with game server purchase for only $25 twastudios General Advertisements 3 10-20-05 07:13 AM
Please Help ! sweetgurl Everything Java 2 04-13-04 12:57 PM
Reduce the time intensive phases of .Net application development using TierDeveloper3 smars General Advertisements 0 12-02-03 06:15 AM
FREE Team Speak server w/ every purchase of a Call of Duty Server twastudios General Advertisements 0 10-31-03 02:14 AM


All times are GMT -5. The time now is 05:35 PM.
vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.