System.IO.__Error.WinIOError in XmlSerializer constructor

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On one of the machine, when bring up the application, the execption thrown
with the following message:
Could not find a part of the path
"C:\DOCUME~1\mosesjr\LOCALS~1\Temp\1i-ak8ur.0.cs"

and the call stack shows it's from the XmlSerializer ctor:
Source=mscorlib
StackTrace= at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath,
Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at
System.CodeDom.Compiler.CodeCompiler.FromSourceBatch(CompilerParameters
options, String[] sources)
at System.CodeDom.Compiler.CodeCompiler.FromSource(CompilerParameters
options, String source)
at
System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSource(CompilerParameters options, String source)
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)

Any idea what's the cause for this to happen? Anti-virus, etc.? Please help.

Thank you in advanced
.



Relevant Pages

  • CodeDom Security / Permissions issues
    ... ASP.net web site and a Windows Service. ... I realize that CodeDom has to create temporary files even when doing ... Boolean useAsync, String msgPath, Boolean bFromProxy)at ... options, String source) at ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HttpPostedFile file locking issue?
    ... Once the upload completes successfully the application calls a web service ... Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, ... FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean ...
    (microsoft.public.dotnet.framework.aspnet)
  • HttpPostedFile file locking issue?
    ... Once the upload completes successfully the application calls a web service ... Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, ... FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean ...
    (microsoft.public.dotnet.framework.aspnet)
  • CodeDom Security/Permission Issues
    ... The same code is used by both an ASP.net web site and a ... I realize that CodeDom has to create temporary files even when doing ... access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, ... options, String source) ...
    (microsoft.public.dotnet.framework)
  • Streaming File From http
    ... FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean ... How can i stream this file if it is on the web. ... I can perfectly access this ...
    (microsoft.public.dotnet.languages.csharp)