Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie - Error question 1

Status
Not open for further replies.

neronikita

Technical User
Feb 20, 2002
159
US
Hi!

I have some experience with ASP pages, but am new to ASP.Net and visual studio 2008 and visual studio 2010 web.

I have a database on a virtual server, which is also where my IIS is set up. I'm trying to create an internal web site that we can use to access our database. No matter what I try, I get the same error and can't seem to get past it:

Server Error in '/Dispatch' 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 am creating the website remotely using FTP. I'm so new at this that I'm not sure what else to mention here. I get that it's not working because it's on a remote machine and there's some error that it won't tell me for security reasons. I tried creating it on my local machine, but can't get attached to the remote database for some reason - it won't even let me create a new, empty local database - so I have to get past this to do anything. If anyone has any ideas, I would really appreciate the input.

Thanks in advance!

Di

PS: When I go to the virtual machine and try to access the page, I get this error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 20: <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
Line 21: </authentication>-->
Line 22: <authentication mode="Windows"/>
Line 23: <membership>
Line 24: <providers>


Source File: C:\WEB\esidb.local\esi database 2\web.config Line: 22

 
Follow the directions in the error: Go to the web.config on the remote machine and change the customeErrors attribute to "Off" so that you can see the error.
 
It is already turned off... That's what I don't understand... I figured there must be something else I'm missing.

Thanks.

Di
 
Would the authentication be the issue? Maybe that would take away the error...

I have: Line 22: <authentication mode="Windows"/>

I want to use windows integrated authentication. What should this line say?

Thanks!

Di
 
The error also states to make sure that your virtual directory in IIS is configured as an application.
 
How do I do that? I didn't set up the IIS or virtual machine, so I'm totally lost on where to go for that...
 
Do have a network admin that can do this? Who set up the virtual directory for you?
You will have to connect to the server, go into IIS and find your virtual directory. Right click and config as an application. However these steps will vary depending on what server you are using.
 
We had a consultant come in because I didn't know anything about IIS 7, and had very little experience setting up II6 and we were under a deadline.

Your directions worked! I see my database info online. Thank you sooo much! This has been a huge headache for me. Now that I got over this hump, maybe I can continue through the "in 24 hours" book I am using to learn ASP.net.

Thank you thank you thank you!

Di
 
Awesome, I am glad I could help you. There's a lot to learn when you are just starting. Keep at it and post here if you need more help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top