|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Assembly Resolve Anomaly-Please HelpWe've run into a problem that have stumped us, and was wondering if anyone else has encountered this. We have a product (Windows Service) that supports a plugin architecture. Assemblies are loaded from disk at startup. This works fine normally, but for one of the plugins on a few machines it's assembly cannot be found. We get the the text below from the fusion log. It seems that for this specific assembly it only searches in system32 and not in the private assembly path. As said - this is only one out of many plugins, and all the others work - also it only occurs on a few machines - no noticable configuration similarities on the ones it fails on. If I place the DLL in system32 it works. Any help appreciated. *** Assembly Binder Log Entry (05-03-2007 @ 09:43:16) *** The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified. Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll Running under executable c:\program files\resultmaker\broker\3.5\broker service\brokerservice.exe --- A detailed error log follows. === Pre-bind state information === LOG: Where-ref bind. Location = C:\WINDOWS\system32\Resultmaker.DocumentBroker.WebServiceClientConnector.dll LOG: Appbase = c:\program files\resultmaker\broker\3.5\broker service\ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = NULL Calling assembly : (Unknown). === LOG: Processing DEVPATH. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/WINDOWS/system32/Resultmaker.DocumentBroker.WebServiceClientConnector.dll. LOG: All probing URLs attempted and failed. Best regards Hi ResultmakerMSDN,
We need to perform more research on this issue . We will reply here as soon as possible. If you have any more concerns on it, please feel free to post here. Thanks for your understanding, Best regards, Wen Yuan Microsoft Online Community Support Hi ResultmakerMSDN,
Thanks for your waiting. I haven't met such issue so far. In general, I'd like to suggest you add your DLL into GAC. This will be a good solution. According to your description and fusion log, .net framework runtime searched in system32 folder and fail to load Assembly. It could also be a problem with your account privilege. What is the account your windows service runs on? If this account hasn't enough privilege to load your assemble, for windows service application, .net runtime will look into system32 folder. Additionally, I suggest you may use FILEMON for such File Access Privilege Issue. FileMon will log which folder does application access and whether there is a privilege issue. http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx Hope this helps. Sincerely, Wen Yuan Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. |
|||||||||||||||||||||||