problem loading dll created by XmlSerializer

G

Guest

I have strange problem on a client's computer.

I have an application that uses XmlSerializer to load/save configuration data.
this program worked OK on all computers so far.
Now, on one computer, I get an error loading dll
'file:///C:/DOCUME~1/?????/LOCALS~1/Temp/bsehakc2.dll'.
Now, this is NOT one of my dlls, so I ASSUME it's a dll generated by the
XmlSerializer.

The user running the program is the administrator, so it should not be
problems with permissions.

Another strange problem I had on this computer was that installation of
dotnetfx.exe failed with error 'setup cannot write to setup log' (I was
installing logged in as a user that was in the administrators group, but was
not the built-in Administrator user account).
After searching the newsgroups I managed to install the framework by
installing under the Administrator account( instead of JUST a user who is in
the administrator group).

I don't know if these two problems are related, but if two strange things
happen on the same computer...

Thanks,
Nadav


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: File or assembly name bsehakc2.dll, or one
of its dependencies, was not found.
File name: "bsehakc2.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(AssemblyName assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at BacSoft.Utils.XMLSer.XmlSave(FileStream fs, Object o,
XmlAttributeOverrides xao)
at BacSoft.Utils.XMLSer.XmlSave(String fn, Object o,
XmlAttributeOverrides xao)
at BacSoft.Utils.XMLSer.XmlSave(String fn, Object o)
at BacSoft.SendSMS.smsConfig.saveMachineConfig(String mfn)
at BacSoftSMS_Config.Form1.save()
at BacSoftSMS_Config.Form1.Form1_Closing(Object sender, CancelEventArgs e)
at System.Windows.Forms.Form.OnClosing(CancelEventArgs e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& 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:\DOCUME~1\?????\LOCALS~1\Temp\bsehakc2.dll
LOG: Appbase = C:\Program Files\IrrinetSMS
LOG: Initial PrivatePath =
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:/DOCUME~1/?????/LOCALS~1/Temp/bsehakc2.dll.
 
P

Peter Huang [MSFT]

Hi

Is your app an asp.net application or a winform application?
To troubleshoot the problem, I think you may try to use filemon to monitor
the directory to see if there is any error when access to the temp dll
generated by xmlserializer.
http://www.sysinternals.com/Utilities/filemon.html

Thanks for your efforts!


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Hi peter,

The application is a winform Application.

I'll try to use filemon and see what happens.

Nadav
 
P

Peter Huang [MSFT]

Hi

How is the things going?
If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top