I have a MOSS 2007 environment, 2 web servers and a DB server, load balanced between the two web servers.
I deployed a web part recently, which worked fine for a while, but failed on web server 2 after a day.
When it fails, it gets the error message:
'A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe’
Once it has failed, it will stay that way until an IIS reset is done.
The other web server never fails, I tried to force the second web server to fail to recreate the issue and have been unable to do it. I tried placing it under heavy http traffic and it handled it fine. Put it back in the pool and it failed again after about 7 hours.
So, if i remove the .dll for the webpart from the affected web server, the webpart doesnt stop working. Is this normal behavior? I checked the bin directory for the site and the global assembly and it there is no other copy of the .dll anywhere else on the server.
Also, when checking the web part gallery, if the web part has failed it will appear in the gallery, but by trying to add a new webpart, the .dll wont be listed.
I have no idea how to continue troubleshooting from here or even fix it, any ideas?