Access to the path is denied

Access to the path ‘C:\inetpub\wwwroot\mysite\images\savehere’ is denied Read the message carefully. You are trying to save to a file that has the same name as the directory. That cannot work, you can’t overwrite a directory filled with files with a single new file. That would cause undiagnosable data loss, “Access to the path is denied” … Read more

How do I improve ASP.NET MVC application performance?

A compiled list of possible sources of improvement are below: General Make use of a profiler to discover memory leaks and performance problems in your application. personally I suggest dotTrace Run your site in Release mode, not Debug mode, when in production, and also during performance profiling. Release mode is much faster. Debug mode can … Read more

What is Kestrel (vs IIS / Express)

I’d like to offer an alternative answer, with some history, so that you might understand why Kestrel comes, even if you only use Windows and IIS. At the very beginning of ASP.NET development before year 2000, clearly Microsoft created two pieces to host ASP.NET WebForms apps, Cassini, later became ASP.NET Development Server in Visual Studio. … Read more

Enable IIS7 gzip

Configuration You can enable GZIP compression entirely in your Web.config file. This is particularly useful if you’re on shared hosting and can’t configure IIS directly, or you want your config to carry between all environments you target. <system.webServer> <httpCompression directory=”%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files”> <scheme name=”gzip” dll=”%Windir%\system32\inetsrv\gzip.dll”/> <dynamicTypes> <add mimeType=”text/*” enabled=”true”/> <add mimeType=”message/*” enabled=”true”/> <add mimeType=”application/javascript” … Read more

Best way to run scheduled tasks [closed]

This technique by Jeff Atwood for Stackoverflow is the simplest method I’ve come across. It relies on the “cache item removed” callback mechanism build into ASP.NET’s cache system Update: Stackoverflow has outgrown this method. It only works while the website is running but it’s a very simple technique that is useful for many people. Also … Read more

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