Kentico site error

Wei Wang asked on November 18, 2020 22:06

Hi,

I pushed a .dll and a .pdb file to our Kentico development site because of the API upgrades. The dev site works as expected. Then I pushed the same files to the test site, I couldn't bring up the site or CMS desk at all.

The only thing displayed is: Server Error in '/' Application. Runtime Error Description: An exception occured while processing your request. Additionally, another exception occured while executing the custom error page for the first exception. The request has been terminated.

The web.config files are the same. I replaced the whole bin folder but no help. I have no idea why it's not working in test environment. What else I can do to trouble shoot?

thanks

Correct Answer

Wei Wang answered on November 20, 2020 14:31

thanks.

Yes it's .net issue in the custom code, I finally resovled it. Thanks again

0 votesVote for this answer Unmark Correct answer

Recent Answers


Juraj Ondrus answered on November 19, 2020 09:22

Are you able to build the solution on the test? I would try removing all the files on test and do a full deploy - all code files from the working environment. Obviously something went wrong on the test environment.

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on November 19, 2020 14:20

Thanks for the suggestion. I will try in test. Usually we just push any code changes over. Don't think I can build solution on the test. To do a full deploy is not an option though for the final destination - the production environment.

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on November 19, 2020 17:58

I replaced the one .dll and one .pdb file in the bin folder and it caused the site down as I described in the previous message. I then reverted back the two files and the site is up again. I checked the event log and found below message:

Message: Change Notification for critical directories. bin dir change or directory rename HostingEnvironment initiated shutdown Change Notification for critical directories. bin dir change or directory rename Change Notification for critical directories. bin dir change or directory rename HostingEnvironment caused shutdown

Any idea why it's causing the shutdown?

thanks

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on November 20, 2020 05:21

So, it looks like the issue is in the DLL file - what is the DLL? Is it a custom one? If yes, you should debug the code to see what is going on. The error you got now is OK - when you make any change in BIN folder and change any DLL file, or any change in App_Code folder in web site project, or if you change more code files than set, .Net automatically restarts the application.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.