Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 17th, 2007, 03:21 AM
Registered User
 
Join Date: Dec 2005
Location: Bangalore, Karnataka, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
  #2 (permalink)  
Old January 17th, 2007, 12:21 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen N, , Denmark.
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not load the assembly Jitender BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 6 September 5th, 2008 05:06 PM
Parser error could not load the assembly Kamal_Bhola ASP.NET 2.0 Professional 6 July 20th, 2007 03:04 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
The database dll crdb_oracle.dll could not be load Yeliz Crystal Reports 0 October 18th, 2006 08:12 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



All times are GMT -4. The time now is 06:37 PM.


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