ASP.NET - Catastrophic failure loading 'AjaxControlToolkit' from a virtual folde
Asked By Mike
19-Feb-11 10:35 PM

We are building an ASP.net application that has a virtual folder. It is an IIS 6 on Windows 2003 server. The application uses 'AjaxControlToolkit' extensievly. We have the 'AjaxControlToolkit' dll in the main application in the /bin folder and in the /bin folder of the virtual folder. The virtual folder has been converted to an application (inside IIS).
The problem is this: loading a page that resides in the virtual folder causes this error:
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
FileLoadException: Could not load file or assembly 'AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies.
The only way out of this error is to reboot the server where the virtual folder resides in. The same page loads perfectly after the reboot but only for a while..about a day or so. Then the problem comes back.
Anybody has seen this problem before and is there a fix for it?
Thanks,
Mike
Peter Bromberg replied to Mike
Sounds like some sort of permissions issue.
Mike replied to Peter Bromberg
Thanks Peter for your reply but if it is a permission issue, it would not work at all times. What I am experiencing is that it works for a while (anywhere between 12-48 hours) then stops working. Then at this time, a reboot resolves the issue for a while again.
Peter Bromberg replied to Mike
Yes. Do you have to have this Virtual Directory in your overall configuration? I'd consider trying an alternate way to handle it.
Mike replied to Peter Bromberg
All together we have 4 virtual folders (that have been converted to 'applications' in IIS) because of load balancing. Each virtual folder is being served up from a different machine.
Peter Bromberg replied to Mike
Are all the machine keys defined (not autogenerate) and are they the same?
Mike replied to Peter Bromberg
That's a good point. Only one of them is defined in the web.config file which belongs to the main server but nothing is defined for the servers hosting virtual folder. Could that be the issue?
Peter Bromberg replied to Mike
if they are marked as applications, yes. They would probably each need their own web.config, all the the same machine keys defined. Of course, I've never had this situation before, so its just a guess.
Mike replied to Peter Bromberg
Each of these virtual fonders/applications have their own web.config, /bin folders etc. Tomorrow we will add these machine keys and report back to you the result. The other suspect in my mind is the Application Pool and all the settings for that but I am not sure if the timeout seetings for the application pool have anything to do with this particular problem.
Peter Bromberg replied to Mike
Mike replied to Peter Bromberg
Thanks Peter. Do you have to run this tool on the server where virtual folder/application resides or you can run it on any machine (such as my local laptop) and use the generated key?
Peter Bromberg replied to Mike
You can run it from anywhere. The element that it generates for you goes into each web.config. You only need to run the page one time.

Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B difference between VB.NET and C#? (I) what is the difference between System exceptions and Application exceptions? (I)What is CODE Access security? (I)What is a satellite assembly? (A) How many types of Transactions are there in COM + .NET? (A) How do you do object pooling in .NET? (A) What are types of compatibility in VB6? (A)What is equivalent for the difference between thread and process? Chapter 4: Remoting and Webservices (B)What is an application domain? (B) What is .NET Remoting? (B) Which class does the remote object has to consume it? (A) Do webservice have state? Chapter 5: Caching Concepts (B) What is an application object? (I) what is the difference between Cache object and application object? (I) How can get access to cache object? (A) What are dependencies in cache A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache
to be a .net developer • To test a Web Service you must create a windows application or web application to consume this service? It is True / False? FALSE How many classes can a single lifetime? Give an example. Answer1 static int Myint–The life time is during the entire application. br> Answer2 The static modifier is used to declare a static member, which belongs in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we have to edit the page level debugging
Tracing in ASP.NET? hi all, what is tracing? how to achieve tracing in asp.net? different ways of doing tracing? thanks and regards Aman Khan hi. . Tracing in ASP.NET 2.0 Tracing is a way to monitor the execution of your ASP.NET application. You can record exception details and program flow in a way that doesn't
Migration from ASP to ASP.net How to convert ASP site to ASP.NET site using C# http: / / www.asp.net / downloads / archived-v11 / migration-assistants / asp-to-aspnet hi, ASP.NET framework is very much different from unstrucured ASP and there is no correct way to