Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unable to load file or assembly
Message
De
26/03/2008 12:11:27
 
 
À
26/03/2008 11:47:12
Information générale
Forum:
ASP.NET
Catégorie:
Déploiements
Divers
Thread ID:
01305709
Message ID:
01305734
Vues:
7
Hey Marcia,

It might be a permissions issue or a framework version conflict. Go into IIS and see if the page is logged OK and then check the .Net tab in properties in IIS to see if the right version of the .Net framework is being used for that page.

Also, try subsituting the loopback IP 1.0.0.127 in place of localhost. I dunno why (no one ever mistook me for a Windows engineer) but sometimes that overcomes some permissions issues in some versions of W2K3 or W2K Server.

I have spent days chasing garbage like this around.

>Hi all.
>
>This one is driving me crazy, so any shove in the right direction would be greatly appreciated.
>
>I have a web page that hosts a user control and a custom control. When I build as a VS2005 solution, everything runs fine. When I compile the code behind using this syntax:
>
>csc /target:library /reference:pa3d_7157.dll /reference:pa3c_7157.dll controls-7157.cs
>
>It compiles fine. However, when I try to run localhost/controls-7157.aspx, I get the following information, but I can't figure out what it is trying to tell me:
>
>Could not load file or assembly 'Controls-7157' or one of its dependencies. Access is denied.
>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
>
>Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Controls-7157' or one of its dependencies. Access is denied.
>
>Source Error:
>
>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
>
>Assembly Load Trace: The following information can be helpful to determine why the assembly 'Controls-7157' could not be loaded.
>
>
>WRN: Assembly binding logging is turned OFF.
>To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
>Note: There is some performance penalty associated with assembly bind failure logging.
>To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
>
>
>Stack Trace:
>
>
>[FileLoadException: Could not load file or assembly 'Controls-7157' or one of its dependencies. Access is denied.]
> System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
> System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
> System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
> System.Reflection.Assembly.Load(String assemblyString) +25
> System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32
>
>[ConfigurationErrorsException: Could not load file or assembly 'Controls-7157' or one of its dependencies. Access is denied.]
> System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
> System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3596761
> System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
> System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
> System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +267
> System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +36
> System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +429
> System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +73
> System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +580
> System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
> System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
> System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54
> System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
> System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
> System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
> System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
>
>So, can anyone shed some light on this for me?
>
>Thanks.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform