designer file

  • Thread starter Thread starter TS
  • Start date Start date
T

TS

how do i regenerate the designer file, mine got out of sync and i deleted
it - thought it would create new one.
thanks
 
Hi TS,

When you deleted the old designer files, try to right-click on your Web
Application Project and select "Convert to Web Application", this will help
you regenerate the designer files.

Please try this and let me know the result.

For more information, please see this:

http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
doing this wont create new file.

if i restore my file, i'm still left with it being out of sync. how do i get
it in sync?
 
Hi TS,

You're using Web Application Project, right? In my test, if I delete the
designer.cs file and use the "Convert To Web Application" function, the
designer.cs files will be re-generated.

You also mentioned that the file is also out of sync, I guess there might
be something wrong with the Web Application Project addin, if possible, I
suggest you to repair it by reinstalling it.

Also, I'm wondering if you could send me a reproducible project that has
this "out of sync" issue? I can test this on my side to see if it's related
to the project's settings.

By the way, you can also try to create a new simple Web Application Project
and test out by deleting the .designer.cs file and re-generate it.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
yes web app project. i ended up geting it to work - when i pasted some html
into the html view, it then fired .designer to sync up.

thansk
 
i deleted it and tried to generate and i get:
generation of designer file failed: unable to load one or more of the
requested types. retrieve the loaderexceptions property for more
information.

on a side note, clicking F7 doesnt' switch to code when in .aspx page html
view.

My page inherites from a base page that inherits from page.

thanks
 
Hi TS,

I tested it on my side by creating a class inheriting from Page and use
this class as the base class of the Web Form, but I still cannot reproduce
the issue. Have you tried testing with a simple web application project? I
suggest you create a copy of your project and remove some files at a time
to see if it still has the issue. When the project is small enough, maybe
you could send me a copy of it for further troubleshooting. Thank you for
the trouble.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
i'm afraid i couldn't get it to reproduce.

I found a solution though - delete current designer file, close VS and
delete Bin and obj folders, then re-open and convert to web application and
it works.
 
Hi TS,

Thank you for sharing your experience here. Although the issue is not
reproducible, I believe someone else might find this post useful.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top