SharePoint Experts, Information Architects, Expert Witness

We provide consulting in a broad array of business and technology from architecture to design to deployment of global systems with a focus on surfacing data in the enterprise. Specialists in Microsoft, we are a premier provider of SharePoint Expertise (including 2016 and Office 365). We also provide Expert Witness/Legal Expert in eDiscovery, source discovery, patent infringement, piracy and more! We also have established SICG DLDS s.a. - our counterpart in Costa Rica that specializes in water systems (http://www.crwatersolutions.com) - Contact me direct: david_sterling@sterling-consulting.com or call 704-873-8846 x704.

Search This Blog

Friday, July 22, 2011

Visual Studio 2010 Project Error AssemblyInfo.cs could not be opened

Discovered this from a client site source code review...

So you open a project in Visual Studio 2010 and get an odd error:
Source file '<Project Location>\Properties\AssemblyInfo.cs' could not be opened ('Unspecified error ')
What this means is that the AssemblyInfo.cs file is either missing from the Properties folder in the project or there is a permissions issue. If permissions, update the ACL (File > Properties > Security), close and re-open the project. If missing altogether, you just need to recreate it using the following steps:
  1. Within Visual Studio 2010, select Tools > Create GUID
  2. Click Copy (or New GUID then Copy)
  3. Click Exit
  4. Expand the Properties folder in the Solution Explorer (Control + W, S to open)
  5. Delete the AssemblyInfo.cs file shown with the exclaimation point
  6. Double click on the Properties folder - this should open the Properties window
  7. On the Application Tab, click the Application Information... button
  8. Fill in the application information, paste the GUID you copied into the GUID field - when done click OK
Viola - problem solved...

One FYI - if the project requires a specific GUID, you can set it - if not known, you have no choice but to create one.

9 comments:

Saberin said...

Thanks! This solved the same problem in Visual Studio 2008.

Ahmad said...

I have similar issue but creating GUID didn't solve the problem. Secondly I see only Assembly information button in Application Tab not Application Information.

Anonymous said...

Thanks, this post is very useful, It works.

Anonymous said...

thanks ^^

Anonymous said...

Awesome. My issue had to do with my computer crashing while I was adding a class. I got the message that the designer was missing, and somehow your post clued me into the fact that the designer had been added to the solution, but not created. Thanks

Anonymous said...

Thank you for this. I download something from codeproject - VS2010 converted the project, but did not generate assembly info. 'tis fixed now.

Anonymous said...

Thanks works :)

Anonymous said...

Thanks a lot....

Anonymous said...

Worked...Thanks a lot!!