Category: ASP.Net

ASP.Net MVC 5 redirecting to /Account/Login

I recently upgraded an ASP.Net project from MVC 3 to MVC 5, but wanted to keep our old login mechanism. However, when trying to access a restricted page, I was always redirected to /Account/Login instead of /Account/LogOn. I had already met that problem with MVC 3 and thus I had added the following line in my Web.config […]

Continue reading

Could not load file or assembly ‘PresentationCore’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

After copying a web site to a 64bit server with IIS 7, I was getting the following error message: Could not load file or assembly ‘PresentationCore’ or one of its dependencies. An attempt was made to load a program with an incorrect format. although everything was working fine when running the site on my machine […]

Continue reading

Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. Access is denied.

I was getting the following error message when I was trying to access a web application using the Ajax Control Toolkit on a new server: Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. Access is denied. Looking deeper, I found out that the error 0x80070005 was raised. Reading various threads and […]

Continue reading