Thursday, 15 April 2010

c# - Could not load file or assembly 'idrsnet15.dll' or one of its dependencies. The specified module could not be found -



c# - Could not load file or assembly 'idrsnet15.dll' or one of its dependencies. The specified module could not be found -

i'm trying add together 3rd party c# dll resource in asp.net webservice project these configurations.

c# dll build in dotnet framework 4 in x64 environment runtime version(4.0.30319). using vs 2010 framework version 4.0.30319 rtmrel; under asp.net webservice project configuration set target framework 4 target x64 platform.

i need utilize dll web service application getting run time exceptions while browsing through iis.

----------------------------error detail------------------------------------------------------------

could not load file or assembly 'idrsnet15.dll' or 1 of dependencies. specified module not found. description: unhandled exception occurred during execution of current web request. please review stack trace more info error , originated in code.

exception details: system.io.filenotfoundexception: not load file or assembly 'idrsnet15.dll' or 1 of dependencies. specified module not found.

source error:

an unhandled exception generated during execution of current web request. info regarding origin , location of exception can identified using exception stack trace below.

stack trace:

[filenotfoundexception: not load file or assembly 'idrsnet15.dll' or 1 of dependencies. specified module not found.] system.reflection.runtimeassembly._nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) +0 system.reflection.runtimeassembly.internalloadassemblyname(assemblyname assemblyref, evidence assemblysecurity, stackcrawlmark& stackmark, boolean forintrospection, boolean suppresssecuritychecks) +567 system.reflection.runtimeassembly.internalload(string assemblystring, evidence assemblysecurity, stackcrawlmark& stackmark, boolean forintrospection) +192 system.reflection.assembly.load(string assemblystring) +35 system.web.configuration.compilationsection.loadassemblyhelper(string assemblyname, boolean stardirective) +118

[configurationerrorsexception: not load file or assembly 'idrsnet15.dll' or 1 of dependencies. specified module not found.] system.web.configuration.compilationsection.loadassemblyhelper(string assemblyname, boolean stardirective) +11392147 system.web.configuration.compilationsection.loadallassembliesfromappdomainbindirectory() +484 system.web.configuration.assemblyinfo.get_assemblyinternal() +127 system.web.compilation.buildmanager.getreferencedassemblies(compilationsection compconfig) +334 system.web.compilation.buildmanager.callprestartinitmethods() +280 system.web.hosting.hostingenvironment.initialize(applicationmanager appmanager, iapplicationhost apphost, iconfigmappathfactory configmappathfactory, hostingenvironmentparameters hostingparameters, policylevel policylevel, exception appdomaincreationexception) +1087

[httpexception (0x80004005): not load file or assembly 'idrsnet15.dll' or 1 of dependencies. specified module not found.] system.web.httpruntime.firstrequestinit(httpcontext context) +11524352 system.web.httpruntime.ensurefirstrequestinit(httpcontext context) +141 system.web.httpruntime.processrequestnotificationprivate(iis7workerrequest wr, httpcontext context) +4782309

version information: microsoft .net framework version:4.0.30319; asp.net version:4.0.30319.1 ----------------------------error detail------------------------------------------------------------

we created asp.net project selecting 3.5 framework set target framework 4.0 under application configuration.

i can witness tempasp.net files including assembly , 3rd party dll under path: c:\windows\microsoft.net\framework64\v4.0.30319\temporary asp.net files\myocrapp\f4fd840d\f71f8f0e\assembly\dl3\1a6aa3d5\00bb235d_957bcf01

as per understanding, first of check have included 3rd party dll referene properly(does exist in publish folder or virtual directory) sec thing have provided iis plenty access permission accessing 3rd party dll , can set iis virtual directory have access iis user acccount.

you can utilize dependency walker come know dependent assemblies required 3rd party dll (http://dependencywalker.com/) , required files nowadays in system, check version related info of 3rd party dll (as x64 , x86 different , may not loaded in conditions).

c# asp.net .net dll

No comments:

Post a Comment