Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Creating Control on a Web Form 1

Status
Not open for further replies.

Tom2

Programmer
Mar 3, 2002
11
AU
Hi,

I've just installed the Gold release of Visual Studio .NET on a clean install of Windows XP.

I've got some code from beta 2 and have imported it from sourcesafe. It all compiles fine but when I open a web form, all the controls (server side) come up with the message saying "Error Creating Control" on them.

I've tried making a new web form and adding it to the solution but I've tried adding a few controls (DropDownList and CrystalReportViewer) and both come up with the same error on them.

Anyone have any ideas as to what the problem is?

Thanks in advance.
 
Hey Tom,

hmmm...so even if you create a brand new web form, and add brand new controls to it, you still get an error saying that they can't be created?

When you up-graded to the Gold vs.net, you upgraded to the newer version of the .net framework too, right?

Anothr thing to try might be creating a new project and adding the old web forms to that, and see if it works (instead of creating a new webform for the old project).

I'm guessing that the controls from Beta 2 are different than the release of vs.net, so you might be having some problems there as well. I ran into a similar problem, and ehre's what I did to fix it:

1. Delte the problem control from the web form, but not the code for it in the code behind.
2. Create a new control on the form, and re-name it to the control that you just deleted.

That worked for me (still accessed the same control-calls, but it just had an updated version of hte control that it liked.

A few things to look at anyway. Let me know if I can help further.
:)

Jack
 
Hi,

I made a new project (new solution as well) and when I made a new web form in the new project, everything worked fine.

I was even able to "Add an Exisiting File" (one of the ones that didn't work in the project I imported from Visual Source Safe) and the old web form working fine as well.

I guess it's just going to take some time to add each existing file to a new project/solution.

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top