views:

53

answers:

2

When I'm trying to add a new Class Library Project in Visual Studio 2008 I get this error:

Error message 1

After clicking OK this message appear:

alt text

And then an directory was created with properties folder and AssemblyInfo.cs file only.

  1. What caused this problem?
  2. How to fix it?

Edit: when creating the project as a new project I got this message instead the second one:

alt text

+2  A: 

Seems like the templates are broken. You could try a repair/reinstall of Visual Studio to fic this.

Bobby
Right, but I have no idea I it was happen. I did work with vs regular, but I can't remember something special that can cause that.
Mendy
Anyway, from searching the web I see that this is unknown error a all!
Mendy
+1  A: 

your install is probably corrupt. see

Error HRESULT E_FAIL when pasting references in Visual Studio

Asad Butt
According to the new message don't think that is the case.
Mendy
it is somehow, class1 is from the template that visual studio installation provides. If the path is not holding that file, The installation was not successful, though we might think it was.
Asad Butt
follow the path and check if the file exist there !
Asad Butt
NOP, its an empty folder.
Mendy
VS check for the template at the path specified in its settings, it is included with install. You need to be careful about the version of VS, requirements and install order. These thing create a mess, lots of times.
Asad Butt