Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy my ASP.NET project not loading the Dll?
    primarykey
    data
    text
    <p>I have an <strong>ASP.NET MVC 4</strong> project. I am referencing a <strong>managed C++ dll</strong> which internally calls methods of an <strong>unmanaged C++ dll</strong>. Problem is that I am getting <em>"Could not load file or assembly or one of its dependencies"</em> error when debugging my project in Visual Studio. The Dll it cannot find is used by the <strong>unmanaged C++ dll</strong>. I am placing all the required DLLs in the bin directory of ASP project.</p> <p>Everything works fine in a WPF Project but I am getting error when doing the same thing in ASP.NET MVC4 project. Error comes on launching/debugging ASP.NET MVC4 project.</p> <p>I have tried almost everything I could but not sure why this error is coming. </p> <p>Ideas?</p> <p><strong>Edit</strong> I tried Fuslogvw.exe and it is creating two output/log file. I am a bit confused from its output</p> <p>at one file it says at the end </p> <blockquote> <p>Binding succeeds. Returns assembly from C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\9abdb93b\4655bb86\assembly\dl3\5113eba9\008d3984_ccb1cb01\Assembly.dll. LOG: Assembly is loaded in default load context."</p> </blockquote> <p>In second log it says</p> <blockquote> <p>=== Pre-bind state information ===<br> LOG: DisplayName = AssemblyName (Partial)<br> WRN: Partial binding information was supplied for an assembly:<br> WRN: Assembly Name: AssemblyName | Domain ID: 2<br> WRN: A partial bind occurs when only part of the assembly display name is provided.<br> WRN: This might result in the binder loading an incorrect assembly.<br> WRN: It is recommended to provide a fully specified textual identity for the assembly,<br> WRN: that consists of the simple name, version, culture, and public key token.<br> WRN: See whitepaper > <a href="http://go.microsoft.com/fwlink/?LinkId=109270" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=109270</a> for more information and common solutions to this issue.<br> LOG: Appbase = file:///c:/users/haris.hasan/documents/visual studio 2012/Projects/MvcApplication1/MvcApplication1/<br> LOG: Initial PrivatePath = c:\users\haris.hasan\documents\visual studio 2012\Projects\MvcApplication1\MvcApplication1\bin<br> LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\9abdb93b LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\9abdb93b LOG: AppName = 4655bb86 Calling assembly : (Unknown). === WRN: No matching native image found.<br> LOG: IL assembly loaded from C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\9abdb93b\4655bb86\assembly\dl3\5113eba9\008d3984_ccb1cb01\AssemblyName.dll.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload