Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in Properties of .net Project & Designer file is locked

Designer file is locked and when go to project properties it gives this error.

An error occurred trying to load the project properties window. Close the window and try again. The CurrentContext property of the LicenseManager is currently locked and cannot be changed.

.net framework 3.5 VS 2008

like image 322
Kashif Avatar asked Nov 10 '09 11:11

Kashif


People also ask

How do I get my properties back in Visual Studio?

You can find Properties Window on the View menu. You can also open it by pressing F4 or by typing Properties in the search box.

Which is the best way to handle errors in net?

You can handle default errors at the application level either by modifying your application's configuration or by adding an Application_Error handler in the Global. asax file of your application. You can handle default errors and HTTP errors by adding a customErrors section to the Web. config file.

How do I fix error MSB4019?

MSB4019: The imported project 'name' was not found. Confirm that the expression in the Import declaration 'declaration' is correct, and that the file exists on disk. Check the syntax of the import declaration, check the path of the imported file, and make sure the spelling of the filename is correct.

How do I fix Visual Studio Reference error?

To fix this problem, you can delete the broken reference and then replace it by using the Add Reference dialog box. Another solution is to use the Reference Path item in the project's property pages and modify the folders in the list to point to the correct locations.


4 Answers

Just a random suggestion:

Close VS, then try deleting any .suo or .csproj.user files. These store per user settings like which files you have open etc, and can sometimes get corrupted. (maybe back them up first just in case)

like image 180
Simon P Stevens Avatar answered Sep 29 '22 07:09

Simon P Stevens


See following

http://social.msdn.microsoft.com/Forums/en-US/winformsdesigner/thread/b3bf3b31-85ac-4073-be2b-2f061b240e63

like image 28
Brij Avatar answered Sep 29 '22 08:09

Brij


Some of the resources that you use in your project are compiled with different versions of the .net framework.

Right click on your project, choose properties and change Target framework to the framework that the resources are compiled with, or remove those resources and continue.

like image 34
mehdi akbari Avatar answered Sep 29 '22 08:09

mehdi akbari


I agree with Simon.. I was getting this error and could not resolve this.. I removed all unused references from mysoftware properties under project menu and then i removed the unused data base. it resolved my problem. i m sure it will work for you.

Sometimes some corrupted files causes this problem although you never applied and sort of licensing to your software.

njoy..

SandeepV

Adobe Certified Expert

Microsoft Certified IT Professional

like image 23
Sandeep Verma Avatar answered Sep 29 '22 08:09

Sandeep Verma