Resolution for System.IO.FileNotFoundException: Could not find file 'C:\WINDOWS\TEMP\[SomeFileName].dll
I was getting the below errors randomly for each
user make a first time call to the service. I tried recycling, restarting IIS,
commented the newly added xmlserialization call to Log, but nothing worked.
Then I looked further it’s the machine ran out of temp file storage space, so
rebooting server and cleaning temp file solved the issue.
*******************************************************************************************
[ERROR]
System.IO.FileNotFoundException: Could not find file 'C:\WINDOWS\TEMP\ekglwclt.dll'. File name:
'C:\WINDOWS\TEMP\ekglwclt.dll' at
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path,
FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share,
Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy, Boolean useLongPath) at System.IO.FileStream..ctor(String path,
FileMode mode, FileAccess access, FileShare share) at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters
options, String[] fileNames) at
Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters
options, String[] sources) at
Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters
options, String[] sources) at
System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters
options, String[] sources) at
System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns,
XmlSerializerCompilerParameters xmlParameters, Evidence evidence) at
System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespace, Evidence evidence,
XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable
assemblies) at
System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping
xmlMapping, Type type, String defaultNamespace) at
System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultNamespace) at
Credco.Business.Common.Serialize(Object obj)
at Credco.Business.Log.LogEvent(LogTypes LogType, IList obj) at
Credco.DataManagement.Server.BillingReport.GetFormatList(EnhancedBindingList`1&
formatList) at Credco.DataManagement.Server.Web.DataManagement.GetBillingReportFormatList(UserToken
userToken, EnhancedBindingList`1& billingReportFormatList)
*******************************************************************************************
Hope that helps someone.
Comments
Post a Comment