Click here to Skip to main content
14,696,502 members
Articles » General Programming » Programming Tips » General
Posted 31 Dec 2010

Tagged as


4 bookmarked

WRN: Asssembly binding logging is turned OFF

Rate me:
Please Sign up or sign in to vote.
3.67/5 (3 votes)
5 Jan 2011CPOL
The resolution of warning which does not let you add your custom control
Microsoft Visual Studio
Failed to create component 'CustomControl'.  The error message follows:
 'System.IO.FileNotFoundException: Could not load file or assembly 'WinsssCtrls, Version=, Culture=neutral, PublicKeyToken=9b172c8695ba0f39' or one of its dependencies. The system cannot find the file specified.
File name: 'WinsssCtrls, Version=, Culture=neutral, PublicKeyToken=9b172c8695ba0f39'
   at WnCols.rlLogIn.InitializeComponent()
   at WnCols.rlLogIn..ctor() in D:\Folder\Mine\VSWork\Source\WCtrls\WiCols\trlLogIn.cs:line 20

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]

Today I came to get this warning and to my utmost dismay, I could not add my custom controls to another project. After digging it out, I could not get enough information. Therefore, I thought of sharing it with all.

The project hierarchy is like: I have a library which contains wrapper windows controls, another library utilizes these wrapper controls and this library contains custom user controls. Then I have the main project which utilizes these custom user controls. While adding the custom user control, I got the above warning and could not load the custom user controls.

To resolve the issue, I recompiled my library containing wrapper windows controls and added its reference to my custom user controls. I recompiled my custom user control library and added its reference to my main project. After that, all went fine.

Hope this may save some of your time.

Happy coding! :)


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Umair Feroze
Software Developer (Senior) Shams Software Services
Pakistan Pakistan
I have been working as a Senior Software Analyst in Shams Software Services and during this I have been working in Sql Server and C# .Net

Comments and Discussions

Questiondetail explanation please.... Pin
Member 995471814-Apr-13 20:24
MemberMember 995471814-Apr-13 20:24 
GeneralReason for my vote of 5 very handy Pin
Abdul_Hafeez6-Jan-11 1:29
MemberAbdul_Hafeez6-Jan-11 1:29 
GeneralReason for my vote of 5 It saved my time and resolved my iss... Pin
FSUMSoft3-Jan-11 5:16
MemberFSUMSoft3-Jan-11 5:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.