warning CS1702

  • Thread starter Thread starter Martin Kulov [MVP]
  • Start date Start date
M

Martin Kulov [MVP]

Hi guys,
I am having this warning for quite a while and I cannot get rid of it:

(0,0): warning CS1702: Assuming assembly reference 'XXX, Version=1.1.1.4,
Culture=neutral, PublicKeyToken=xxxxxx matches 'XXX, Version=1.1.1.122,
Culture=neutral, PublicKeyToken=xxxxxx', you may need to supply runtime
policy

I know what the warning is about and its consequences and I also have a
bindingRedirect element in my web.config. Of course without the
bindingRedirect element, the site will not run. I also configured the
assembly in the Microsoft .NET Framework 2.0 Configuration tool and removed
the bindingRedirect element. At the end the site runs again, but I still get
this warning when I build my site.

Is there any way to get rid of this warning? My concern is that I want to
set Warnings as errors ON, but having this warning prevents me to do that.

Can you please help me?

Thanks,

Martin Kulov [VSTS MVP]
www.kulov.net
 
Martin Kulov said:
Hi guys,
I am having this warning for quite a while and I cannot get rid of it:

(0,0): warning CS1702: Assuming assembly reference 'XXX, Version=1.1.1.4,
Culture=neutral, PublicKeyToken=xxxxxx matches 'XXX, Version=1.1.1.122,
Culture=neutral, PublicKeyToken=xxxxxx', you may need to supply runtime
policy

Is there any way to get rid of this warning? My concern is that I want to
set Warnings as errors ON, but having this warning prevents me to do that.

For the answer please read this post:

http://forums.msdn.microsoft.com/en-US/csharpgeneral/thread/ff1711a4-c6c9-4156-86c5-9aa780304b5f/

Martin Kulov
www.kulov.net
 
Back
Top