Type exists in two assemblies.

I have a web project. This was a preview of asp.net, which I am trying to inject into a dynamic data package version 1. I have crossed many obstacles, but now when I build, I see this error:

The type 'System.Web.DynamicData.FilterUserControlBase' exists in both 'C: \ WINDOWS \ assembly \ GAC_MSIL \ System.Web.Extensions \ 3.6.0.0__31bf3856ad364e35 \ System.Web.Extensions.dll' as well as' C: \ WINDOWS \ Assembly \ GAC_MSIL \ System.Web.DynamicData \ 3.5.0.0__31bf3856ad364e35 \ System.Web.DynamicData.dll '

When I googled, what I got was β€œclear the solution” (a la http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/3091f8d5-4c3c-487c-88d2-da45cc15c250 ) but that will not work for me.

Any ideas? Thanks.

0
source share
1 answer

Okay, so that was a bunch of jiggerypokery on my side of things.

I had this dynamic data site made with a preview version. I decided to bring it to the ASP.Net dynamic data version. Everything was fine, removed the old classes, added a new linq to the SQL material, and so on. Set up scaffolding. Then built.
Problems abound. From old type names in my controls to duplicate referenced links.

Despite the fact that I abandoned the old System.Web.Extensions 3.6 library, I neglected to change the setting of the tag prefix further in my web.config.

This turned out to be the key, so I had to remove the wrong links in web.config, and that was all.

Thanks to the gang.

+2
source

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


All Articles