Windows Forms Visual Studio Project Security Issue

I have a windows forms project that I created in Visual Studio and I never had issues with it.  All of sudden when I try and run it in the Visual Studio IDE the attached error appears.   I created this project a long time ago and from time to time I have to make a change and the distribute an update.    I can clean and build the project from within VS but cannot run it.  

If I run the exe file that was built during the build process I get the same error.  I am not sure what could have happened.  Any help would be appreciated.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AndyAinscowFreelance programmer / ConsultantCommented:
Have you installed a windows update recently - if you have then try uninstalling it.
I saw this issue when I installed the Infragistic's control set.  I never looked into the reason for the issue as I only installed the control set for a short period for testing purposes and have since, removed.  Are you using any plug-in's or as Andy has pointed out have you done *any* updates recently (Microsoft or otherwise).

Mike_StevensAuthor Commented:
I do have infragistics controls that are part of my visual studio configuration but am not using any in the project and have not installed any updates for them recently.  I will also check on the Windows updates to see if any have been installed.  

This problem is affecting only this visual studio project and none of the other I have on my machine.  Seems weird.
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Jacques Bourgeois (James Burger)PresidentCommented:
What directories are used by your application and the libraries that it uses?

Permissions can change with different versions of the OS. For instance, from a .NET application, you could write in Program Files in Windows XP, but cannot starting in Vista because the default permissions have changed.

Default permissions can also be changed by administrators.

As stated by Andy, some updates also change the permissions.
Mike_StevensAuthor Commented:
The project was created a couple of years ago on a windows 7 machine using vs 2010 and that's what I am still using.     I show getting some windows defender updates since this problem started.  Not sure how to remove them but I guess I will start there.
AndyAinscowFreelance programmer / ConsultantCommented:
You might want to make a complete backup before doing too much - paranoia can be a useful survival trait.
Interesting; this issue, apparently, can also be caused by files that are blocked because they are copied from network locations (more specifically this seems to really affect XSD files).  What files do you have in the project and are any of them stored in a network location?

In your debug\release folder, you can unblock these files after they are copied.

If you want to automate it, then you can use Streams.exe from SysInternals:
1.Download the Sysinternals Streams.exe from 
2.I find Sysinternals so useful I create a ‘SysInternals’ folder on my C: drive and then put this into my ‘path’ environment variable so that I can run them from anywhere. However, if this is too much then the easiest is to copy the streams.exe to the root folder you wish to have files unblocked.
3.In a command windows, use ‘cd’ to navigate to your folder.
4.Type the command ‘streams –s –d subfoldername’ and press enter.

You would just need to add a post-build event to the project in order to run the streams command.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mike_StevensAuthor Commented:
I don't have any files stored on a network drive, different drive or external HDD,   Everything is all included in one folder.  if I click beyond the first error I am not getting this error message.

An error occurred creating the form. See Exception.InnerException for details.  The error is: The type initializer for 'Pricing_Guide.NET.global_values' threw an exception.    The file "globa_values' is a class file that has connection strings stored as strings in it that are read when the program and the first form is started.

Ive done a backup and actually restored a backup from a month ago and got the same result which makes me think this is not a issue with my code.  

I did check all of file permissions and none are set to read only
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.