Tailor

Hi,

I added a standard windows form to my project, and had most of the code done. When I tried to open the form itself in design mode I got the above error. I tried rebuilding, cleaning and a few other things, and sometimes when I closed and reopened my project, it would work OK, other times I got the error.

In desperation, I deleted the form and the underlying code, and started afresh.

I closed my project, and later restated it, and once again, got the same error. I haven't even added one line of code, so am completely confused. The message given is that rebuilding the project may fix the problem, or it may need some code changes. As I haven't written any code, I'm presuming it's in the Designer.vb

I think the relevent parts of the error message are:

at System.I.O.Path Normalize PathFast(String Path, Boolean FullCheck)

ar Sysrtem.I.O.Path GetFullPathInternal(String Path)

What really confuses me is why it has happened twice. I've been using VS2005 for 18 months without this happening before.

Any thoughts will be welcomed.

Tailor



Re: Visual Basic General Different "Path is not of a legal form" error

Tailor

This error gets more stupid by the day, either that or I do.

My third complete re doing of this section of my project is driving me nuts.

I have a form, with the underlying code, which happens to compile without error, and runs properly in Debug.

The Stored procedure correctly writes the data to the Sql database

The data prints out to both an Excel file and a printer the way its intended.

HOWEVER, when I try to open the form in designer, I still get the same message.

I have finally found a work around. If I open the Designer Code first, then open the form, it comes on screen, and I don't get the error. Failing to open the designer code nearly always produces the error message.

Can anyone come up with a logical explanatiopn, and hopefully a fix.

Tailor





Re: Visual Basic General Different "Path is not of a legal form" error

tkerns

Maybe a dumb question, but what's the name of the form and the file

Tony





Re: Visual Basic General Different "Path is not of a legal form" error

Tailor

Hi Tony,

The Form is called frmQuote_BillOfQuantities.

I can replicate the error just about any time I try to open the form in designer, but avoid the message if I open the Designer code in the IDE first. It's reasonably consistent, which is an improvement, as I did get a couple of other errors.

What really has me baffled is this part of the application otherwise works perfectly. The Stored procedure adds the data to the Sql tables, it creates and fills an excel file, then will print it out correctly.

If I can't find an answer soon, I'm ready to reinstall VS in the hope that will fix the problem.

John





Re: Visual Basic General Different "Path is not of a legal form" error


Re: Visual Basic General Different "Path is not of a legal form" error

Tailor

Hi Tony,

Thank you very much for that link. It reinforces what I have discovered in my application.

I had two UserControl textboxes on the form. removed them and replaced with normal textboxes, and the problem vanished.

As soon as I get some spare time, I'll have a closer look at the answers in that link.

Thanks again,

John