Problem mapping HttpHandler –> HTTP Error 404 Not Found

Are you using IIS7, if so is the application pool running in classic or pipelined mode? If it is IIS7 in pipelined mode then the handler reference needs to go into the following section <system.webServer> <handlers> </handlers> <system.webServer> rather than in the following section. <system.web> <httpHandlers> </httpHandlers> </system.web>

HTTP error 500.19 – Cannot read configuration file

In my case I deleted all folders in D:\My Documents\My Web Sites\ before Then I caught the error There is a file .vs\config\applicationhost.config in my solution folder It contains reference to the deleted folder. So, I deleted applicationhost.config and then pressed ‘Create Virtual Directory’ button in my project property Web page. It was recreated the … Read more

Login failed for user ‘NT AUTHORITY\NETWORK SERVICE’

I was experiencing a similar error message that I noticed in the Windows Event Viewer that read: Login failed for user ‘NT AUTHORITY\NETWORK SERVICE’. Reason: Failed to open the explicitly specified database. [CLIENT: local machine] The solution that resolved my problem was: Login to SqlExpress via SQL Server Management Studio Go to the “Security” directory … Read more

Reading web.config from JavaScript

You can generate your JavaScript from ASP.NET. Then simply write the settings at the server-side to your var defaults like this: var defaults = { inactivity: <%=ConfigurationManager.AppSettings[“Inactivity”] %> } EDIT: If you want to keep your JavaScript in static js files, you can still initialize your var defaults from a small <script> rendered by your … Read more

Using ASPNet_Regiis to encrypt custom configuration section – can you do it?

aspnet_regiis must be able to bind the assembly. The normal .net binding rules apply. I get around this by creating directory called aspnet_regiis_bin in the same directory as aspnet_regiis.exe and an aspnet_regiis.exe.config file with aspnet_regiis_bin as a private path like this: <configuration> <runtime> <assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″> <probing privatePath=”aspnet_regiis_bin”/> </assemblyBinding> </runtime> </configuration> I then copy the assemblies … Read more

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