asp.net - System.IO.FileNotFoundException: Could not find file 'C:\WINDOWS\TEMP\xxxxxx.dll' -
we have public website uses asp.net 4, nhibernate 2.2. website running without issue past 1 year. noticing following error.
nhibernate.mappingexception: not compile mapping document: project.nhibernatedata.mappingfiles.myentity.hbm.xml ---> system.io.filenotfoundexception: not find file 'c:\windows\temp\osj2cokr.dll'. @ system.io.__error.winioerror(int32 errorcode, string maybefullpath) @ 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) @ system.io.filestream..ctor(string path, filemode mode, fileaccess access, fileshare share) @ microsoft.csharp.csharpcodegenerator.fromfilebatch(compilerparameters options, string[] filenames) @ microsoft.csharp.csharpcodegenerator.fromsourcebatch(compilerparameters options, string[] sources) @ microsoft.csharp.csharpcodegenerator.system.codedom.compiler.icodecompiler.compileassemblyfromsourcebatch(compilerparameters options, string[] sources) @ system.codedom.compiler.codedomprovider.compileassemblyfromsource(compilerparameters options, string[] sources) @ system.xml.serialization.compiler.compile(assembly parent, string ns, xmlserializercompilerparameters xmlparameters, evidence evidence) @ system.xml.serialization.tempassembly.generateassembly(xmlmapping[] xmlmappings, type[] types, string defaultnamespace, evidence evidence, xmlserializercompilerparameters parameters, assembly assembly, hashtable assemblies) @ system.xml.serialization.xmlserializer.generatetempassembly(xmlmapping xmlmapping, type type, string defaultnamespace) @ system.xml.serialization.xmlserializer..ctor(type type, string defaultnamespace) @ nhibernate.cfg.xmlhbmbinding.binder.deserialize[t](xmlnode node) @ nhibernate.cfg.xmlhbmbinding.mappingrootbinder.bind(xmlnode node) @ nhibernate.cfg.configuration.addvalidateddocument(namedxmldocument doc)
i have tried following far.
- cleaned "c:\windows\temp".
- checked permissions on "c:\windows\temp".
- have tried generating serialization dll using sgen.exe , copied site bin folder.
in third case our error changes following.
system.web.httpcompileexception (0x80004005): external component has thrown exception. @ system.web.compilation.assemblybuilder.compile() @ system.web.compilation.buildproviderscompiler.performbuild() @ system.web.compilation.buildmanager.compilewebfile(virtualpath virtualpath) @ system.web.compilation.buildmanager.getvpathbuildresultinternal(virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile, boolean throwifnotfound, boolean ensureisuptodate) @ system.web.compilation.buildmanager.getvpathbuildresultwithnoassert(httpcontext context, virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile, boolean throwifnotfound, boolean ensureisuptodate) @ system.web.compilation.buildmanager.getvpathbuildresult(httpcontext context, virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile, boolean ensureisuptodate) @ system.web.ui.templatecontrol.loadcontrol(virtualpath virtualpath)
update : server restart fix issue couple of weeks. comes again.
Comments
Post a Comment