I have to deploy the website fr my society within 1 or 2 days due to some urgency.. Please help rectifying the error..
Error shown is as follows:
Stack Trace:
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Filename: \\?\d:\HostingSpaces\username\mydomain.com\wwwroot\web.config
Error: Cannot read configuration file
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WebsitePanel.Providers.Web.WebServer.GetSite(String siteId)
at WebsitePanel.EnterpriseServer.WebServerController.GetWebSite(Int32 siteItemId)
at WebsitePanel.EnterpriseServer.esWebServers.GetWebSite(Int32 siteItemId)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WebsitePanel.EnterpriseServer.esWebServers.GetWebSite(Int32 siteItemId)
at WebsitePanel.Portal.WebSitesEditSite.BindWebSite()
May I know how did you host your website? Is that on a shared server or do you operate your own server? Based on the error message, it seems that it is related to the permission issue. Please make sure you have READ and WRITE permission for NETWORK SERVICE
user.
Please mark this response as an "answer" if it helps you. Thanks heaps!
Mayankgupta
0 Points
2 Posts
Error: Cannot read configuration file.. How to rectify this error..??
May 02, 2012 11:10 AM|LINK
I have to deploy the website fr my society within 1 or 2 days due to some urgency.. Please help rectifying the error..
Error shown is as follows:
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Filename: \\?\d:\HostingSpaces\username\mydomain.com\wwwroot\web.config
Error: Cannot read configuration file
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WebsitePanel.Providers.Web.WebServer.GetSite(String siteId)
at WebsitePanel.EnterpriseServer.WebServerController.GetWebSite(Int32 siteItemId)
at WebsitePanel.EnterpriseServer.esWebServers.GetWebSite(Int32 siteItemId)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WebsitePanel.EnterpriseServer.esWebServers.GetWebSite(Int32 siteItemId)
at WebsitePanel.Portal.WebSitesEditSite.BindWebSite()
The configuration file is:
<configuration>
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="DatabaseConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="F:\My Works\SPEn\App_Data\Database.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="quizConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="F:\My Works\SPEn\App_Data\quiz.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="quizConnectionString2" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="F:\My Works\SPEn\App_Data\quiz.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="quizConnectionString3" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="F:\My Works\SPEn\App_Data\quiz.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<customErrors mode="Off"/>
<httpRuntime maxRequestLength="2097152" executionTimeout="600"/>
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>
</compilation>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<membership defaultProvider="DatabaseSqlMembershipProvider">
<providers>
<!-- Add a customized SqlMembershipProvider -->
<add name="DatabaseSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="DatabaseConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<roleManager>
<providers>
<clear/>
<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider"/>
<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider"/>
</providers>
</roleManager>
<pages>
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/>
</controls>
</pages>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
</modules>
<defaultDocument>
<files>
<add value="Home.aspx"/>
</files>
</defaultDocument>
</system.webServer>
<system.net>
<mailSettings>
<smtp from="">
<network host="spe.ismu.ac.in" password="" port="21" userName=""/>
</smtp>
</mailSettings>
</system.net>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
teh munk
Participant
1648 Points
333 Posts
Re: Error: Cannot read configuration file.. How to rectify this error..??
May 02, 2012 11:20 AM|LINK
Does your server root contain you web.config?
Mayankgupta
0 Points
2 Posts
Re: Error: Cannot read configuration file.. How to rectify this error..??
May 02, 2012 11:26 AM|LINK
Yes it does.
naveen_rames...
Member
3 Points
6 Posts
Re: Error: Cannot read configuration file.. How to rectify this error..??
Aug 29, 2012 10:43 AM|LINK
Were you able to solve this issue. If yes, what did you do to accomplish it.
Thanks
Naveen
necro_mancer
Star
8169 Points
1595 Posts
Re: Error: Cannot read configuration file.. How to rectify this error..??
Aug 29, 2012 05:53 PM|LINK
hi mayankgupta,
May I know how did you host your website? Is that on a shared server or do you operate your own server? Based on the error message, it seems that it is related to the permission issue. Please make sure you have READ and WRITE permission for NETWORK SERVICE user.
Please mark this response as an "answer" if it helps you. Thanks heaps!
Professional SQL 2008 R2 Service