Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Help with Assembly Binding in ASP.NET 2.0 Web Application Projects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeremiah Mercier - 09 Feb 2008 03:18 GMT
I have been directed by my team lead to remove a dll I am responsible for
from the bin directory of our ASP.NET 2.0 web application by changing the
CopyLocal property to False. I have done this and am getting the following
error:

Could not load file or assembly 'GrangeAJAXComponents' or one of its
dependencies. The system cannot find the file specified.

I have installed GrangeAJAXComponents.dll into the GAC and verified its
version and public key. I have opened the project file in Notepad and
verified that the version number and public key match what is displayed in
the GAC:

 <Reference Include="GrangeAJAXComponents, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=82f335bc3105596d, processorArchitecture=MSIL">
   
<HintPath>C:\Blocks\GrangeAJAXComponents\GrangeAJAXComponents.dll</HintPath>
 </Reference>

The Assembly Binging Log from Fusion shows the following:

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
<snip>
LOG: DisplayName = GrangeAJAXComponents
(Partial)
<snip>
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
<snip>
LOG: All probing URLs attempted and failed.

By contrast, another dll which is referenced in precisely the same way has
the following log:

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.
<snip>
LOG: DisplayName = WebCustomValidationControls, Version=2.0.0.1,
Culture=neutral, PublicKeyToken=ed0771a7483cd66d
(Fully-specified)
<snip>
LOG: Post-policy reference: WebCustomValidationControls, Version=2.0.0.1,
Culture=neutral, PublicKeyToken=ed0771a7483cd66d
LOG: Found assembly by looking in the GAC.
LOG: Binding succeeds. Returns assembly from
C:\WINDOWS\assembly\GAC_MSIL\WebCustomValidationControls\2.0.0.1__ed0771a7483cd66d\WebCustomValidationControls.dll.
LOG: Assembly is loaded in default load context.

Obviously the problem is that GrangeAJAXComponents is using a partial
binding, but for the life of me i cannot figure out why. Everything about the
way the two dll's are referenced seems to be the same. I've triple-checked
everything and don't know what to try next. Any ideas would be greatly
appreciated.
Jeremiah Mercier - 12 Feb 2008 04:24 GMT
Microsoft? Anyone? Please help!!!
Jeremiah Mercier - 13 Feb 2008 04:28 GMT
Is this a monitored forum? Can someone from Microsoft please help me? Please?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.