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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mistake in web.config?

Status
Not open for further replies.

tdrew

IS-IT--Management
Jun 13, 2007
70
US
Do you see any errors in this section of the web.config file?

I get the error at the bottom of the page when I try to access my site.

Thanks!

<appSettings>
<add key="path" value="G:/0/1/121/3/1203563/user/2052317/htdocs/CapImage/"/>
<!--<add key="path" value="D:/My Projects/Capture/CaptureImagePublish/IIS/"/>-->
<!--<add key="IP" value="umer/saveimage"/>-->
<add key="IP" value="
</appSettings>
<connectionStrings>

<add name="CaptureImage.Data.ConnectionString" connectionString="Data Source=201.128.152.121;Initial Catalog=peats;User Id=uname;Password=pswrd" />
<add name="CaptureImageConnectionString" connectionString="Data Source=201.128.152.121;Initial Catalog=peats;User Id=uname;Password=pswrd" providerName="System.Data.SqlClient" />


</connectionStrings>
<CaptureImage.Data defaultProvider="SqlNetTiersProvider">
<providers>
<!--
*** SqlClient Provider ***
connectionStringName: sqlclient connection string to the db
useStoredProcedure: if true, indicates that we use the stored procedures, otherwise, we use parametrized queries that are embedded.
-->
<add name="SqlNetTiersProvider" type="CaptureImage.Data.SqlClient.SqlNetTiersProvider, CaptureImage.Data.SqlClient" connectionStringName="CaptureImage.Data.ConnectionString" providerInvariantName="System.Data.SqlClient" entityFactoryType="CaptureImage.Entities.EntityFactory" useEntityFactory="true" enableEntityTracking="true" enableMethodAuthorization="false" useStoredProcedure="false" defaultCommandTimeout="30"/>
<!--
*** WebserviceClient Provider ***
The url parameter indicates the webservices url (ex: <add
name="WsNetTiersProvider"
type="CaptureImage.Data.WebServiceClient.WsNetTiersProvider, CaptureImage.Data.WebServiceClient"
url="/CaptureImageServices.asmx" />
-->
</providers>
</CaptureImage.Data>
<system.web>
<customErrors mode="Off" />





****** Error begins here ***********

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 36:
Line 37: </connectionStrings>
Line 38: <CaptureImage.Data defaultProvider="SqlNetTiersProvider">
Line 39:
Line 40:


Source File: G:/0/1/121/3/1203563/user/2052317/htdocs/CapImage/web.config Line: 38
 
from error said:
This error can be caused by a virtual directory not being configured as an application in IIS.
Did you check that it is an application.
 
I paid someone else to write the script because I am very (VERY) new to ASP.NET applications.

What do I need to do to check/make this an application?
 
You will have to check in IIS or, if you are not familiar with IIS, have someone do it for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top