Hi I have a project that I have been working on and I have run into a problem with the webconfig; I must have made some changes that have caused my entire project to stop working. I need to carry on with my project and have it work, can someone look over
the code and see what the problem might be that has caused the project to stop working. I am desperate the project is due tomorrow.
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString2" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString3" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString4" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString5" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString6" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString7" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString8" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString9" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString10" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString11" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString12" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString13" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString14" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString15" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString16" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString17" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionStringgl" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionStringrep" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionStringpl" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString18" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString19" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<anonymousIdentification enabled="true"/>
<profile>
<properties>
<add name="City" type="System.String" allowAnonymous="true"/>
</properties>
</profile>
<!--other Web.config settings here-->
<compilation debug="true"/>
<!--</system.web>-->
<authentication mode="Forms"/>
<roleManager enabled="true"/>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
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: Sections must only appear once per config file. See the help topic <location> for exceptions.
Source Error:
Line 41: <authentication mode="Forms"/>
Line 42: <roleManager enabled="true"/>
Line 43: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"> Line 44: <assemblies>
Line 45: <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
now it just will not run it give the following message "error parsing the webconfig file at line 55. The name in the end tag of the element must match the element type in the start tag. please correct before proceeding"
There is a <system.web> at the begining, so i don't get it.
ok, I have tried that but I got more </system.web> being underline along with compilation. I hovered over </system.web> and it said that it was not expected to be there so I commented it out; I now get the following message when i run the project.
I have also commented out line 42 and 43, since those were a problem and I don't have an authenticated form in my project as yet.
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.
Line 42: <!--<authentication mode="Forms"/>-->
Line 43: <!--<roleManager enabled="true"/>-->
Line 44: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"> Line 45: <assemblies>
Line 46: <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
I was not aware that you posted a possible solution cause I guess I was busy trying to solve the problem, anyways I have a different error message after I made some changes
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.
sharonjs
None
0 Points
14 Posts
Webconfig problem
Dec 06, 2012 09:13 PM|LINK
Hi I have a project that I have been working on and I have run into a problem with the webconfig; I must have made some changes that have caused my entire project to stop working. I need to carry on with my project and have it work, can someone look over the code and see what the problem might be that has caused the project to stop working. I am desperate the project is due tomorrow.
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString2" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString3" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString4" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString5" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString6" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString7" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString8" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString9" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString10" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString11" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString12" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString13" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString14" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString15" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString16" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString17" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionStringgl" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionStringrep" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionStringpl" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString18" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString19" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<anonymousIdentification enabled="true"/>
<profile>
<properties>
<add name="City" type="System.String" allowAnonymous="true"/>
</properties>
</profile>
<!--other Web.config settings here-->
<compilation debug="true"/>
<!--</system.web>-->
<authentication mode="Forms"/>
<roleManager enabled="true"/>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<appSettings>
<add key="localhost.gameservice" value="http://localhost:22229/sharonsylvester_itm605f12prj/gameservice.asmx"/>
</appSettings>
<!--<system.web>-->
<compilation debug="true"/>
</system.web>
</configuration>
pradip.bobha...
Member
412 Points
87 Posts
Re: Webconfig problem
Dec 06, 2012 09:20 PM|LINK
Hi sharonjs,
What error message you are getting when you run application?
http://pradipbobhate.com
sharonjs
None
0 Points
14 Posts
Re: Webconfig problem
Dec 06, 2012 11:23 PM|LINK
I get the following error:
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: Sections must only appear once per config file. See the help topic <location> for exceptions.
Source Error:
Line 41: <authentication mode="Forms"/> Line 42: <roleManager enabled="true"/> Line 43: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"> Line 44: <assemblies> Line 45: <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>chaaraan
Contributor
2170 Points
484 Posts
Re: Webconfig problem
Dec 07, 2012 01:21 AM|LINK
Hi
The Error below happen when you have the Compilation element twice in your config file. Just take one or the other one out.
It seem that there is two section.
Remove <compilation debug="true">
Leave <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
Regards,
Charan
sharonjs
None
0 Points
14 Posts
Re: Webconfig problem
Dec 07, 2012 01:34 AM|LINK
I have commented out the <compilation debug="true">
but now it has the compilation underlined in red
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
and <appSettings> underlined in blue
</system.web> underlined in red
now it just will not run it give the following message "error parsing the webconfig file at line 55. The name in the end tag of the element must match the element type in the start tag. please correct before proceeding"
There is a <system.web> at the begining, so i don't get it.
chaaraan
Contributor
2170 Points
484 Posts
Re: Webconfig problem
Dec 07, 2012 01:41 AM|LINK
Hi
try this
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString2" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString3" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString4" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString5" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString6" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString7" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString8" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString9" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString10" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString11" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString12" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString13" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString14" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString15" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString16" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString17" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionStringgl" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionStringrep" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionStringpl" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString18" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString19" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="|DataDirectory|\Game of Life.mdf";Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<anonymousIdentification enabled="true"/>
<profile>
<properties>
<add name="City" type="System.String" allowAnonymous="true"/>
</properties>
</profile>
<!--other Web.config settings here-->
<!--</system.web>-->
<authentication mode="Forms"/>
<roleManager enabled="true"/>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
<assemblies>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
<appSettings>
<add key="localhost.gameservice" value="http://localhost:22229/sharonsylvester_itm605f12prj/gameservice.asmx"/>
</appSettings>
<!--<system.web>-->
</system.web>
</configuration>
Regards,
Charan
sharonjs
None
0 Points
14 Posts
Re: Webconfig problem
Dec 07, 2012 02:02 AM|LINK
ok, I have tried that but I got more </system.web> being underline along with compilation. I hovered over </system.web> and it said that it was not expected to be there so I commented it out; I now get the following message when i run the project.
I have also commented out line 42 and 43, since those were a problem and I don't have an authenticated form in my project as yet.
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: Unrecognized configuration section compilation.
Source Error:
Line 42: <!--<authentication mode="Forms"/>--> Line 43: <!--<roleManager enabled="true"/>--> Line 44: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"> Line 45: <assemblies> Line 46: <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>Source File: C:\Users\sharon\Documents\ryerson\asp.net\sharonsylvester_itm605f12prj\web.config Line: 44
fiftytrini
Member
117 Points
18 Posts
Re: Webconfig problem
Dec 07, 2012 02:43 AM|LINK
Try the following. <appSettings> is not a child of <system.web>
sr. application systems analyst
please "Mark As Answer" if this post answers your question or addresses your issue.
sharonjs
None
0 Points
14 Posts
Re: Webconfig problem
Dec 07, 2012 03:33 AM|LINK
I was not aware that you posted a possible solution cause I guess I was busy trying to solve the problem, anyways I have a different error message after I made some changes
<system.web>
<anonymousIdentification enabled="true"/>
<profile>
<properties>
<add name="City" type="System.String" allowAnonymous="true"/>
</properties>
</profile>
<!--other Web.config settings here-->
<compilation debug="true"/>
</system.web>
<!--<authentication mode="Forms"/>-->
<!--<roleManager enabled="true"/>-->
<!--<compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/>-->
<assemblies>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
<!--</compilation>-->
<appSettings>
<add key="localhost.gameservice" value="http://localhost:22229/sharonsylvester_itm605f12prj/gameservice.asmx"/>
</appSettings>
<system.web>
<compilation debug="true"/>
</system.web></configuration>
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: Unrecognized configuration section assemblies.
Source Error:
Line 44: <!--<compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/>--> Line 45: Line 46: <assemblies> Line 47: <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> Line 48: <add assembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>Source File: C:\Users\sharon\Documents\ryerson\asp.net\sharonsylvester_itm605f12prj\web.config Line: 46
pradip.bobha...
Member
412 Points
87 Posts
Re: Webconfig problem
Dec 07, 2012 01:42 PM|LINK
Sharonjs,
What is application pool set for yor application? Please make sure it is 4.
http://pradipbobhate.com