Cannot load application.Designer.vb what to do?
Asked Answered
L

1

9

I got this error:

Error   1   Unable to open module file 'D:\business\shared\Dropbox\badgers\vb\vb.net\My Project\Application.Designer.vb': The system cannot find the path specified.    D:\business\shared\Dropbox\badgers\vb\vb.net\My Project\Application.Designer.vb 1   1   traverseweb4

Application.designer.vb is a generated file. I simply deleted that. How do I get that regenerated?

If I open the .vbproj file directly with notepad ++ I saw:

<Compile Include="My Project\Application.Designer.vb">
  <AutoGen>True</AutoGen>
  <DependentUpon>Application.myapp</DependentUpon>
</Compile>

So it clearly is autogenerated, so why vb.net blame me for not having that stupid file?

By the way removing those stupid lines in notepad ++ works. Now things work perfectly. But this pissed me off a lot.

Anyone can explain why it happen in the first place? Why hacking into a .vbproj file is necessary to get this fixed?

Loquacity answered 20/2, 2013 at 4:14 Comment(0)
M
3

When I've had problems like this in the past I usually clean the project (right click solution - clean) and then rebuild from the same menu - which usually fixes errors like this.

Murcia answered 26/4, 2013 at 13:9 Comment(3)
Thank you very much, your method was the way to go, I was having the exact same problem.Dight
I had to use the asker's method of commenting out lines in the project file. This is nutty. Are there any other ways to resolve this?Glarum
my solution was -> edit the vbproj file and delete the section. then to clean and rebuild. The source issue was not having the 'My Project' files in my source control before my laptop died.Between

© 2022 - 2024 — McMap. All rights reserved.