Make MSDeploy (Visual Studio) not delete App_Data folder but delete everything else

I’m using Visual Studio’s Publish button to deploy my website, and want a different App_Data folder on the server. There’s a checkbox for Leave extra files on destination (do not delete) which prevents my App_Data folder from getting deleted, but then it’ll eventually accumulate a lot of vestigial files as the website changes. Is there … Read more

The page cannot be displayed because an internal server error has occurred on server

I’ve installed website on my local machine using IIS 7 successfully. But when I’ve deployed it on live server, I got the following error: “The page cannot be displayed because an internal server error has occurred” Nothing else. Using the same IIS 7 on live and also set to have Detailed errors in Error Pages … Read more

IIS URL Rewrite and Web.config

I don’t understand anything about IIS, but am trying to solve this problem of redirecting all visitors to to <?xml version=”1.0″ encoding=”utf-8″ ?> <configuration> <system.webServer> <rewrite> <rewriteMaps> <rewriteMap name=”StaticRedirects”> <add key=”/page” value=”/page.html” /> </rewriteMap> </rewriteMaps> </rewrite> </system.webServer> </configuration> A couple of problems arise: I don’t know where to even put the file. There … Read more

Why is HttpContext.Current null?

I have a value that I use in all the application; I set this in application_start void Application_Start(object sender, EventArgs e) { Dictionary<int, IList<string>> Panels = new Dictionary<int, IList<string>>(); List<clsPanelSetting> setting = clsPanelSettingFactory.GetAll(); foreach (clsPanelSetting panel in setting) { Panels.Add(panel.AdminId, new List<string>() { panel.Phone,panel.UserName,panel.Password}); } Application[“Setting”] = Panels; SmsSchedule we = new SmsSchedule(); we.Run(); } … Read more

Applying SSL certificate in IIS manager and “The process cannot access the file because it’s being used by another process” error

I applied a self-signed SSL certificate in IIS manager to Default Web Site(added the HTTPS binding) and after that when I’m trying to start the web site, I’m getting the following error message: “The process cannot access the file because it’s being used by another process. (Exception from HRESULT: 0x80070020) “. But when I remove … Read more

ASP.NET strange compilation error

I don’t know what’s wrong with my machine, but it’s a while that I’m getting the following strange error from ASP.NET (for all my applications). Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. … Read more core app deployed on iis meets 500 internal server error

🙁 Oops. 500 Internal Server Error An error occurred while starting the application. This message came out when I added database functionality to my core app and deployed it to iis. When I developed it in Visual Studio, everything went well. But after deploying, this error messages appeared. I tried to use dotnet myapp.dll … Read more

Losing Session State

I have an application where Users aren’t able to successfully complete certain actions, for reasons, I’m assuming, can only be related to losing their session (which is where I maintain their current user information, and how determine whether they are logged in) I’m at a loss as to why they would lose their session, … Read more

Classic ASP on IIS7: refusing to send errors to browser on 500 Internal Server Error

I have classic ASP running on IIS 7. Even though I configured the ASP “Debugging Properties” to “Send Errors to Browser = True”, the web app REFUSES to send errors to the browser and continues to send a 500 internal server error. My browser has “Show Friendly HTTP Error Messages” unchecked. Failed Request Tracing is … Read more