I just discovered why all ASP.Net websites are slow, and I am trying to work out what to do about it

If your page does not modify any session variables, you can opt out of most of this lock. <% @Page EnableSessionState=”ReadOnly” %> If your page does not read any session variables, you can opt out of this lock entirely, for that page. <% @Page EnableSessionState=”False” %> If none of your pages use session variables, just … Read more

How do I enable NuGet Package Restore in Visual Studio?

It took far too long but I finally found this document on Migrating MSBuild-Integrated solutions to Automatic Package Restore and I was able to resolve the issue using the methods described here. Remove the ‘.nuget’ solution directory along from the solution Remove all references to nuget.targets from your .csproj or .vbproj files. Though not officially … Read more

Difference Between ViewResult() and ActionResult()

ActionResult is an abstract class that can have several subtypes. ActionResult Subtypes ViewResult – Renders a specifed view to the response stream PartialViewResult – Renders a specifed partial view to the response stream EmptyResult – An empty response is returned RedirectResult – Performs an HTTP redirection to a specifed URL RedirectToRouteResult – Performs an HTTP … Read more

“The page you are requesting cannot be served because of the extension configuration.” error message

In Windows 8/10, you have to use Open Control Panel → Programs and Features → Turn Windows features on or off → Internet Information Services (IIS) → World Wide Web Services → Application Development Features → Check the appropriate items, such as enabling ASP.NET. (i.e install the appropriate version you want to configure your websites … Read more

What are all the user accounts for IIS/ASP.NET and how do they differ?

This is a very good question and sadly many developers don’t ask enough questions about IIS/ASP.NET security in the context of being a web developer and setting up IIS. So here goes…. To cover the identities listed: IIS_IUSRS: This is analogous to the old IIS6 IIS_WPG group. It’s a built-in group with it’s security configured … Read more

The Web Application Project […] is configured to use IIS. The Web server […] could not be found.

Since the accepted answer requires IIS Manager, and IIS Express doesn’t have IIS Manager or any UI, here’s the solution for you IIS Express users (and should work for everyone else too): When you open Visual Studio and get the error message, right-click the project Solution Explorer and choose “Edit {ProjectName}.csproj” In the project file, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)