Could not load file or assembly '..' or one of its dependencies.- Add a blank space in the web.config back to running for hours

0

I have an admin panel made in ASP.NET C # webform. From a few days to now, he began to give problems of the type

Could not load file or assembly 'chat_megacorretor.dll' or one of its dependencies. The system cannot find the file specified.

The system hangs, however I just need to open the web.config add a blank space and the site goes back to running for hours, but then automatically crashes again.

Simply rename the file and go back to the original that works again, or upload the project file to the server. I know when I do this ASP.Net recompiles everything and so it works, but after a few hours to go again.

This same project worked for months, and now it started to give a problem, recently we did an IIS reinstallation from scratch, but I do not think that's the reason, because after the reinstallation it worked for about 2 weeks. But now it started giving trouble again.

In event view I find nothing interesting, just a few warnings .

I do not even know if they are referring to this problem itself:

Exception information: 
    Exception type: ConfigurationErrorsException 
    Exception message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. (C:\inetpub\wwwroot\megacorretor\siga_2008\web.config line 16)

and also:

Process information: 
    Process ID: 12680 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\admin_Net 

Exception information: 
    Exception type: FileNotFoundException 
    Exception message: Could not load file or assembly 'CHAT_Megacorretor, Version=1.0.0.0, Culture=pt-BR, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
   at Siga_2014.admin.Admin.DefineChatsWMB(Cliente iCliente)
   at Siga_2014.admin.Admin.Page_Load(Object sender, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
    
asked by anonymous 06.11.2014 / 11:48

1 answer

1

This problem is related to the reference to .dll CHAT_Megacorretor, Version=1.0.0.0, Culture=pt-BR, PublicKeyToken=null not found.

Review the pool settings that are linked to your application. Perhaps the pool of the application may be being recycled at the wrong times, or the application's "Failover" settings may be failing. >

UPDATE

What happened to me now is that the problems can also be related to the version of your .dll, if your .dll (CHAT_Megacoretor) is not in the GAC, but directly in the folder along with other .dlls and you have updated the site , however, did this without for the pool . Reference problems may occur. Try to stop the application pool, delete all application files and republish it.

    
06.11.2014 / 12:40