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

Error updating service reference

I’ve had the same issue after updating to VS2013 Update 2. I’ve solved the issue by temporarily cutting the whole system.serviceModel section out of web.config, pasting it somewhere else like Notepad. Then, I’ve saved the web.config without the service model section. Then, I was able to update the service reference successfully. After updating the service … Read more

Make sure all *.cshtml files are set to be “Content” for Build Action

You could extend the .csproj with a small snippet that will generate a warning when an item in the “None” group has the extension .cshtml. The snippet would be: <Target Name=”EnsureContentOnViews” BeforeTargets=”BeforeBuild”> <ItemGroup> <Filtered Include=”@(None)” Condition=”‘%(Extension)’ == ‘.cshtml'” /> </ItemGroup> <Warning Condition=”‘@(Filtered)’!=”” Code=”CSHTML” File=”$(MSBuildProjectDirectory)\%(Filtered.Identity)” Text=”View is not set to [BuildAction:Content]” /> </Target> If you see … Read more

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