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
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