Archive for the ‘General’ Category

If you are monkeying around with your time zone settings with a Visual Studio project open, for some, inexplicable reason, the project may fail to build after changing the time zone. Moreover, there will not be an error message in the error list.

Fortunately, closing and reopening Visual Studio should allow it to build again, and is probably a much simpler solution than for the problem that is causing you to change time zones in the first place.

At one time, I had Fiddler setup to decrypt HTTPS traffic, and it was working.

After having not used the feature for some time, I found that “something” had caused it to stop working, moreover I was getting the dreaded “Proxy server not responding…” message whenever I would capture traffic.

After a little research and tweaking, I could capture, but only over HTTP. After more fiddling (ha ha) around, I found this post about the Fiddler Certmaker add-on, which has restored the functionality.

Travis Illig describes how to get around the “file in use by another process” issue that many users face in highly managed desktop environments.

I’m setting up VS 2013 on a highly restrictive, managed desktop environment, and ran into this problem when trying to load existing projects from TFS. The error message is shown below:

Error message when loading an existing Visual Studio project

Error message when loading an existing Visual Studio project

The solution was to browse to this file and change its permissions, which I discovered were set to read-only for some reason. After that, the projects were loaded successfully.

If you need to configure app settings that are dependent on your hosting environment, e.g. TEST vs. PROD, and you are using Visual Studio Publishing Profiles, it is a simple matter to add a Publishing Transform which will insert the correct values into your app settings during publishing. This capability helped avoid a potentially embarrassing email delivery issue that was overlooked after enabling new functionality in my application.

This tutorial and this one offer instruction and additional information about this functionality.

I’ve enabled tracing as part of an instrumentation effort in MVC 5 using Glimpse and ELMAH. I was surprised to find on one particular page that I was seeing traditional ASP.Net page lifecycle events being chronicled in my Trace output. (more…)

I’ve been working with Glimpse (1.8.6) and ELMAH.MVC (2.1.1) recently to add some diagnostic capabilities to an MVC 5 application. They seem to work pretty well right out of the (Nuget) box, with the possible exception of some IE compatibility when running in the debugger. I get a JS error saying Glimpse is undefined if I launch ELMAH first, but it seems OK when I’ve deployed it to TEST. (more…)

I’ve set up an account to run a Task Scheduler task, and immediately the Application logs on my server started filling up with error 1511, in which the message was “Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.”

Because this account has limited permissions and is on a remote machine, it was not worth the effort of setting it up to log into as that account just to create the profile. (more…)

I’ve been doing more experimentation with SharePoint 2010 REST API, and as part of the process, ran into a problem I’ve seen intermittently before, but never delved into.

The issue was that my client REST call from within a SharePoint page would not refresh on some machines with Internet Explorer 11¬†until I opened the browser Tools. It was fine in Chrome, and on different machines with IE 10 installed, so I decided to investigate (Google) the problem. (more…)

Matt Randle shows you how, using the Watch window.