No editor for ".vb" in VS2005 Beta2

Hi,

I have received the VS2005 Beta2 DVD from Microsoft last week, installed it, and it worked fine for a couple of days.

Then I went to the .resx file to edit some resource for the project. I then come back to open the .vb file and there it goes, the editor is replaced by a "Catastrophic Error" page (not an error dialog box) sayiong something is wrong with the VB editor.

I quit the IDE and reopen, then reload the vb project up. Quite unusual it starts up with the .resx file and not the .vb file as usual. I then double click on the .vb file from the solution explorer, and then an error box came up:

There is no editor available for 'C:\path\somefile.vb'
Make sure the application for the file type (.vb) is installed.

I was lost, so I completely uninstalled VS2005, and reinstalled. And it does not help at all.

Anyone has any suggestion on how to fix this?

[919 byte] By [Saran.T.] at [2007-12-24]
# 1
I run into something similar once.
I remember that adding a new windows form to the project fixed it for me (then I deleted it from the project since I did not need it).
Maybe this workaround works for you as well.

Luca Dellamore
Visual Basic Test Team

LucaDellamore-MS at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 2
It would be great to track this bug down: if you remember the exact steps to repro this issue please post them in this forum and I will verify if it is fixed in a more recent build of Visual Studio.
You can also send me a zip file with your project at lucad@microsoft.com.
Thanks
Luca

Visual Basic Test Team

Luca_Dellamore-MS at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 3
I too now have this problem. Adding a form, opening it and removing it does not provide a workaround.

The same message is provided when I try to open the new form. That is, VS2005 can create a new form but cannot open it.

I have uninstalled and reinstalled VS and the framework.

Is there any further information on this bug?

Visual just came out of my Visual Studio.

Thanks

StephenGB at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 4
I also has this problem.
I installed vs2005 and i see my project has 2 resx files, i looked them out.
But when i want to edit my form with the form designer he say's.
"there is no editor availible for <filepath>
Make sure the application for the file type (.vb) is installed."

The strange thing is if i create a new project it will start in the designer.
And then i can use it.
But when i save, close and reopen it give the same error as before.

When i try to restore the default file associtate(?) he say's i'm not a administrator.

What can i do?
I can't go on now, please help me.

mrfatmen at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 5

It seems that something is corrupt in the project file or in the file content.
If you could send me a Zip of a project that shows this behavior I will give it immediately to one of our devs to look at. My e-mail address in lucad@microsoft.com

Luca_Dellamore-MS at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 6
i have send you a email with my project files.
Can you keep me informed.
mrfatmen at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 7
You may want to check

Tools/Options/Text Editor/File Extensions and see if manually adding the .vb extension will help...not sure but worth a try!

DMan1 at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 8
When I got this same problem, I opened affected file with view code, and opened the windows designer code initialization.

Then I found the one line with scaledimension = ....size(123,223) and changed it to:

scaledimension = ....sizeF(123,223)

and now that form designer opens with no problem.
Since that I've applied this procedure to other forms with same problem and it has
cured all cases.

Terry Voss

TerryVoss at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 9
Luca asked me to take a look at your project. With your project, I was able to reproduce this problem on a beta 2 machine, but not with current drops. In this particular case, it appears the problem has to do with the settings on the signing page and not the resource designer. Try providing a working cert or turn off signing, and then see if the problem goes away for you. Note that this should be fixed in current builds, so that you see the warning/error as expected, but opening form designers should not give you the "no editor available" error.

We also noticed that if you bring up the resource designer in your project, you start getting compiler errors about "Resources" is not a member of "xxx" (a namespace). I suspect the resx file was copied from the root of the project into the "My Project" directory? The default resx file in "My Project" is handled a bit differently than other resx files, so the resource class is referenced differently (try clicking on the resx file in solution explorer and checking out the Custom Tool and Custom Tool Namespace properties). You should be able to fix this manually in the code that references the references (for <formname>.designer.vb code you'll need to use the form <rootnamespace>.My.Resources.Resources.<resourcename>, note the extra "Resources" - for user code you can just use My.Resources.<resourcename> as usual).

HTH,
Stephen

StephenA.Weatherford at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 10
Thanks, Stephen and Luca

That did the trick, it now works as usual.

Many thanks.

mrfatmen at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 11
I just downloaded the 2005 vb express edition. I also downloadd the RSS Reader sample of Tabor's. In SNAPSHOT 9, I can't view any of the forms (.vb) in designer. I can see the code. I saw something that talked about CERTIFICATE, but don't remember exactly where or where I can go to set if off.
Comet at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 12
Project menu, select "Properties". Go to the Signing page, and you can turn this functionality off there (uncheck Sign the ClickOnce manifests and Sign the assembly). Please see if that fixes the problem for you.

Stephen

StephenWeatherfordMS at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 13

hello Terry, i tried looking for the windows designer code initialization window , but wasn't able to locate it, if you dont mind could you mention how to find it..

i will keep looking , and hopefully find it soon.

thanks for the help.

narasimha

simha at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 14

I solved this issue on my VS.2005

What happened was that I by mistake changed the "Build action" on the property of the Form from "Compile" to "Content"

Change it back to "Conpile" and it should go away.

Regards.
Thomas Mathiesen
www.tma.dk

ThomasMathiesen at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...