p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   Could not load file or assembly 'dll' or one of it (http://p2p.wrox.com/showthread.php?t=52803)

Mahenj January 17th, 2007 03:21 AM

Could not load file or assembly 'dll' or one of it
 
Hi,
I am using VS 2005 and XP Professional. My application was running successfully. suddenly one file got currpted. I replaced with back up that file after that i getting this error though Build is successfull but when login page should display in that place following exception occured..
I have gone through many fourams and tried all stuffs but not able to solve problem am in tooo hurry because task had been assigned..
This is the error....
=== Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = Interop.ADSSECURITYLib
(Partial)
LOG: Appbase = file:///C:/Develop/
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspn et.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\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/v2.0.50727/Temporary ASP.NET Files/smcweb03earth/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/smcweb03earth/8638167d/1d65244e/Interop.ADSSECURITYLib/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/Develop/bin/Interop.ADSSECURITYLib.DLL.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspn et.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\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 = 0x80070003). Probing terminated.

Stack Trace:
[FileNotFoundException: Could not load file or assembly 'Interop.ADSSECURITYLib' or one of its dependencies. The system cannot find the path specified.]

[FileNotFoundException: Could not load file or assembly 'Interop.ADSSECURITYLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the path specified.]
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.InternalLoad(AssemblyNa me 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.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly 'Interop.ADSSECURITYLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the path specified.]
   System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +596
   System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory() +3479065
   System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo ai) +46
   System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection compConfig) +177
   System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
   System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +347
   System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
   System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +378

[HttpException (0x80004005): Could not load file or assembly 'Interop.ADSSECURITYLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the path specified.]
   System.Web.Compilation.BuildManager.ReportTopLevel CompilationException() +57
   System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
   System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456

[HttpException (0x80004005): Could not load file or assembly 'Interop.ADSSECURITYLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the path specified.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3426871
   System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
   System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +149
Please help me regarding this..Its very urgent....
Thanks
Mahen



Mahen

mega January 17th, 2007 12:21 PM

Find where ASP.NET 2.0 puts the generated code and delete it all. On my box it's C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files. You might have to restart your computer before deleting the files because .NET locks some of the resources there. Don't worry about losing your work. The first time you build your project again ASP.NET recreates everything (minus the bug hopefully).

 - mega
Moving to C# .NET


All times are GMT -4. The time now is 08:31 PM.

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