By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,061 Members | 1,523 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,061 IT Pros & Developers. It's quick & easy.

dll not found problem

P: n/a
i have written an application that has one exe(main assembly) and about 5 dll's containing forms and other bits n pieces
I built an installation package for it using

i installed it on our windows 2003 server and chose 'Install For Everyone' and the installation was successful

i tested the app myself (i am in the administrators group) and it worked fine

i then set up a user who was in the domain users group (a limited user basically) and configured the user so this program would launch when they logged in. this all works fine, however sometimes an error occurs for this user and the message is 'File or assembly name HCS.SectorManager.UI.dll, or one of its dependencies, was not found. File name: "HCS.SectorManager.UI.dll"' this is odd as the dll is right next to the exe in the folder where it was installed

here is the full exception details that i logged..

System.IO.FileNotFoundException: File or assembly name HCS.SectorManager.UI.dll, or one of its dependencies, was not found
File name: "HCS.SectorManager.UI.dll
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm
at HCS.SectorManager.UI.frmMainMenu.lvwMain_ItemActiv ate(Object sender, EventArgs e
at System.Windows.Forms.ListView.OnItemActivate(Event Args e
at System.Windows.Forms.ListView.WmReflectNotify(Mess age& m
at System.Windows.Forms.ListView.WndProc(Message& m
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam

=== Pre-bind state information ==
LOG: Where-ref bind. Location = C:\Documents and Settings\cabbott\HCS.SectorManager.UI.dl
LOG: Appbase = c:\program files\hcs\sector managerLOG: Initial PrivatePath = NUL
Calling assembly : (Unknown)

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:/Documents and Settings/cabbott/HCS.SectorManager.UI.dll

what am i doing wrong here? i have given access rights on the application directory now incase this was the problem
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.