Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 20th, 2010, 10:21 AM
Registered User
 
Join Date: Oct 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Could not load file or assembly

Hi folks,
i'm tackling a problem with ASP.Net.

I developed an application C#, VS2010, FWK 4.0 on my workstation.

I tried to deploy on Windows Server 2003 SP2 copying the file on file system and configuring the path as virtual directory by IIS Manager.

I've tried to browse the application but I've found this errore

Could not load file or assembly 'Cryptography' or one of its dependencies. Access is denied.

I configured "everyone" to have full control on the path... but nothing happened.

other detail:
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Cryptography' 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 'Cryptography' could not be loaded.


And this is the stack trace with other detail:


=== Pre-bind state information ===
LOG: User = Unknown
LOG: DisplayName = Cryptography
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Cryptography | Domain ID: 5
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///c:/inetpub/wwwroot/Skandia/
LOG: Initial PrivatePath = c:\inetpub\wwwroot\Skandia\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: c:\inetpub\wwwroot\Skandia\web.config
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v4.0.30319\ aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\conf ig\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/skandia/9a5cbc96/9aa3a71d/Cryptography.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/skandia/9a5cbc96/9aa3a71d/Cryptography/Cryptography.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/Skandia/bin/Cryptography.DLL.
LOG: Using application configuration file: c:\inetpub\wwwroot\Skandia\web.config
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v4.0.30319\ aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\conf ig\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.

Stack Trace:


[FileLoadException: Could not load file or assembly 'Cryptography' or one of its dependencies. Access is denied.]

[FileLoadException: Could not load file or assembly 'Cryptography, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyN ame fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyNa me fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
System.Reflection.RuntimeAssembly.InternalLoadAsse mblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
System.Reflection.RuntimeAssembly.InternalLoad(Str ing assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'Cryptography, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +618
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory() +209
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo ai) +130
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildManager.GetPreStartIni tMethodsFromReferencedAssemblies() +94
System.Web.Compilation.BuildManager.CallPreStartIn itMethods() +332
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +591

[HttpException (0x80004005): Could not load file or assembly 'Cryptography, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +8946484
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +97
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +258





Similar Threads
Thread Thread Starter Forum Replies Last Post
error message - Could not load file or assembly 'MB.TheBeerHouse.CustomEvents' or one riffraff BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 June 11th, 2010 11:29 PM
could not load the assembly m1lkt4ddy BOOK: Professional K2 blackpearl ISBN: 9780470293058 1 July 1st, 2009 12:28 AM
Could not load file or assembly 'dll' or one of it Mahenj ASP.NET 2.0 Professional 1 January 17th, 2007 12:21 PM
Could not load file or assembly 'DLL' or one of it Mahenj BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 17th, 2007 10:16 AM
Could not load file or assembly vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 27th, 2006 02:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.