warning CS1702

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
 
M

Martin Kulov [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top