Tuesday, January 29, 2013

ServiceReference problem in VS 2010

This MIGHT be the source of my problem:

NEVER NAME A CLASS THE SAME AS A NAMESPACE--IF YOU'RE GOING TO ADD A SERVICE REFERENCE. 

Recommendation: Always append the string "_Namespace" or "_NS" to the DefaultNamespace in Properties-->Application whenever you create a new VS Project.  This will avoid a particularly NASTY bug (or feature) of VS.

Otherwise VS will create a ServiceReference that WON'T compile.

obsolete (as of 11/14/2013) web-link:
http://www.gmontrone.com/post/NET-Compile-Issues-with-Service-References.aspx

Thursday, January 3, 2013

Windows7 Explorer causes Excel2007 to think file is locked


Quoting from website:

We were having this problem with several users from remote locations accessing Excel files on a file server.  The clients are Windows 7 Pro systems connecting to a 2003 R2 server. I suspect this would also occur with 2008/2008r2 servers, but I have not tested it.  It does not occur with XP clients. The file was getting a lock on it even though it was not being opened.  The file lock would last 10-20 seconds before being released. There are three things that contribute to this problem, all of them Windows Explorer related:
  1. Selecting the file in Explorer -just highlight it without opening
  2. Hovering over the filename so that the pop-up file information box was displaying
  3. Using the Preview Pane in Explorer
To fix the problems:
  1. Turn off the Details Pane shown at the bottom of Windows Explorer.  Go to Organize -> Layout -> Details Pane.  That fixes the first problem.
  2. Turn off “Show pop-up description for folder and desktop items”  Click on Tools -> Folder Options.  In the box that opens up, click on the View tab.  Scroll down the list to “Show pop-up description for folder and desktop items” and clear the checkbox and then click OK.  This fixes the second problem.
  3. Turn off Preview Pane.  Go to Organize -> Layout -> Preview Pane. This fixes number 3. 
The preview pane is not on by default in the "Details" view, but the other two options are on by default.  The file locks are created when Explorer is gathering file information like size, author, modified date, etc..  I suspect that it would also do this with any other file type, but I have not tested that situation either.  For those of you in a managed environment (I guess that would be anyone reading this since the likelihood of home users having this problem would be approaching zero), I am going to use regmon to see what registry keys are modified by the changes.  I will post them so that you can deploy them to your environment if I find them.