Strange warnings in Web.config

An image is worth 1000 words, so here are a few images (ignore my editing):

Warning 1

Warning 2

Warning 3

I do not mention or use the Entity Framework in any project of this solution. This has just begun to happen since Tuesday after I installed a bunch of Windows updates. Only nine warnings. I am running Windows 8.1 Pro, but I do not know if this matters. I have other projects in one solution with the same project types and versions of the .NET Framework. The project itself seems to work fine in IIS. All of my Web.config files have the same configuration and structure. This is problematic (more editing):

<?xml version="1.0"?> <configuration> <configSections> ... </configSections> ... <connectionStrings> ... </connectionStrings> <system.web> <compilation debug="true" targetFramework="4.5.1"/> <authentication mode="None"/> <sessionState mode="Off"/> <customErrors mode="RemoteOnly"/> <httpRuntime enableHeaderChecking="false" enableVersionHeader="false" requestValidationMode="2.0" sendCacheControlHeader="false" targetFramework="4.5.1"/> </system.web> <system.webServer> <httpErrors existingResponse="PassThrough"/> <validation validateIntegratedModeConfiguration="true"/> <handlers> <remove name="ExtensionlessUrlHandler-Integrated-4.0"/> <remove name="OPTIONSVerbHandler"/> <remove name="TRACEVerbHandler"/> <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/> </handlers> <staticContent> <clientCache cacheControlMode="UseMaxAge" httpExpires="7.00:00:00"/> </staticContent> <urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="true"/> <defaultDocument> <files> <clear/> </files> </defaultDocument> </system.webServer> <system.runtime.caching> <memoryCache> <namedCaches> ... </namedCaches> </memoryCache> </system.runtime.caching> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.ServiceBus" publicKeyToken="31bf3856ad364e35" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> </configuration> 
+7
source share
2 answers

I'm still not sure how, but I managed to "fix" the problem by removing Web.config and its transformations and recreating them. I made a diff after this and did not see the differences that might cause such warnings. I guess I can interfere with this kind of weird caching issue.

+10
source

I found this old question when looking for a solution to a similar problem in Visual Studio 2017. The accepted answer put me on the right track. This should be a caching issue. Another search is the intellisense caching issue.

There is a very good article about this from Rick Strel.

My problem was resolved by removing the .vs folder from the solution. The .vs folder was introduced in Visual Studio 2015. So this is not a direct answer to this question, but a hint for future visitors.

0
source

Source: https://habr.com/ru/post/958033/


All Articles