Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

"Overload resolution failed" happens when using visual studio 2015 to compile projects

$
0
0

My original solution contains two projects-->project A(website project, with VB.Net) and project B(class library, with VB.NET).

    Project A(website) is referencing project B's function, and usually I use Visual Studio 2013 to compile them, and they all look/work good.

    Things changed after I use Visual Studio 2015 to compile them, and errors came out.

    These errors are the same when compiling in project A, with the following messages:"ErrorBC30521Overload resolution failed because no accessible 'IsLegalUrl' is most specific for these arguments:".

    I know that means Visual Studio 2015 found multiple functions with the same name(in project B), and can not decide which one project A will use when compiling in project A(project A).

   I am sure the reference in project A is good as usual, and even can use "Go to definition" in "IntelliSense" of Visual Studio 2015 to make sure the function we use in project A is in project B. I also confirmed that there is one "IsLegalUrl" function in project B.

    Does anyone have idea what is going on in this case?

Thank you.

Updated: I think VS2015 loaded it twice since these error messages all showed twice, but can't find any duplicated project reference from "MyProject", like the following thread discussing about:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/94f920e6-7015-4879-95d7-a460da309ae1/nightmare-with-vs2010-overload-resolution-failed-because-no-accessible-myfunction-is-most?forum=vsdebug


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>