Why is App_Offline failing to work as soon as you it starts loading dlls?

冷暖自知 提交于 2019-12-30 08:11:27

问题


Could anyone please help me with this. On the production site app_offline.htm works only till you start uploading dlls. As soon as you start uploading dlls it throws following error"Could not load file or assembly 'SubSonic' or one of its dependencies. The process cannot access the file because it is being used by another process. Now this clearly shows that IIS is still trying to serve the aspx page?? Is there anything I am missing here?? Any help would be appreciated. I have spent hours googling but to no avail. Thanks in advance. Manisha


回答1:


I have heard of people having problems with app_offline.htm if it did not have enough content in the file.

Fill it with a couple hundred kb's of Lorem Ipsum text and see if that helps.




回答2:


Ok this might not be your problem, but if it's the first time it happened you might want to restart your machine. Sometimes a process dies with a lock on a .dll, thus you can no longer use it until unlocked (thus need a restart of the OS).

The other possible problem is that the .dll, or its dependent .dll's, aren't in your path or the correct folder.

Give both of these a look first.



来源:https://stackoverflow.com/questions/373540/why-is-app-offline-failing-to-work-as-soon-as-you-it-starts-loading-dlls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!