Error on Web config on C#
im developing a new project on C# (visual studio 2015) but when I modify the web.config , I have an error in this 2 lines:
<connectionStrings configSource="ConfigurationPQAConnectionString.config"/>
<appSettings configSource="ConfigurationPQAAppSettings.config"/>
If I add the content of appsettings.config instead of the 2 lines it works but i need to use differents configurations.
[ArgumentException: Invalid characters in access route.]
[ConfigurationErrorsException: The attribute configSource is not valid: Invalid characters in access route. (line 3)]
[TypeInitializationException: Exception on initializer of type 'System.Net.ComNetOS'.]
[TypeInitializationException: Exception on initializer of type 'System.Net.ServicePointManager'.] System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +280
[HttpException (0x80004005): Exception on initializer of type 'System.Net.ServicePointManager'.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10085804 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254 https://preview.ibb.co/cVYr65/Captura.png <--image of error
确保您将这些文件的构建操作设置为复制到输出目录。
I found the solution after 1 and a half day: I was using OWIN nuggets, but I have to delete 1 of them that says something about using IIS with OWIN (maybe i added it by mistake , i dont remember), so it works! Now my web.config is working fine
链接地址: http://www.djcxy.com/p/38872.html下一篇: C#上的Web配置错误