Creating Ajax Web Application in VS 2005

W

Wannabe

I am using Visual Studio SP1 and just created an Ajax web application. I went
to the default.aspx page and changed it to design view and the scriptmanager
control says:

scriptmanager1:Failed to create designer
'System.Windows.Forms.Design.ComponentDocumentDesigner, System.Design,
Version=2.0.0.0

I have AjaxToolkit installed and copied System.Web.Extensions.dll to the BIN
folder. Since VS 2005 was not created with Ajax support, Is there something
that I could missing that I need to add?
 
W

Wannabe

For the problem I submitted earlier, I have that figured out. I needed to
change the prefix from "asp" to something else, which I chose "ajaxToolkit".

Now, I get an error:

Error 32 scriptmanager1:Duplicate component name 'scriptmanager1'.
Component names must be unique and case-insensitive.

This is the only control on the page at this time. Any help here?

____________________________________________________________
 
B

Balagopal N. Nair

Hi,
For using the AJAX toolkit, some additional entries has to be made in the
Web.Config. This is automatically done when u create a website using the
VS2005 template - 'AJAX Enabled Website'.



Thank you.
 
W

Wannabe

True...I have gotten that far, but now when I add a scriptmanager to my page,
I am getting the following error and am not sure how to fix it.

Error 32 scriptmanager1:Duplicate component name 'scriptmanager1'.
Component names must be unique and case-insensitive.
 
B

Balagopal N. Nair

Are you using master pages?
If you have a script manager in the master page with the same name, then
this might happen.

Besides, if you had chosen the ajax enabled website template, adding a new
page would automatically add a script manager to the page.

Here's something you can try,
Change the name of your script manager to something else.
If the problem is either of the ones i mentioned above, then it will show an
error saying that only one script manager is allowed per page.

Thank you,
Bala.
http://code.msdn.microsoft.com
 
W

Wannabe

I am using Master Pages. I only have a master page in my project so far. If I
try to rename the control back to scriptmanager1, it says "The scriptmanager1
is already in use by another component". But if I search for scriptmanager1,
the search returns nothing.

Renaming the control fixed the problem, as long as I rename it to something
other than scriptmanager1, which I cannot find anyway, as there are no other
pages created yet and I deleted the original default.aspx.
 
B

Balagopal N. Nair

Please look for scriptmanager1 in your master page markup.

Can you clarify as to whether you are trying to add a script manager to the
content page of the master page you are using?

If you dont mind, and if the project is not too large, feel free to mail it
to me.

Thank you,
regards,
Bala
http://code.msdn.microsoft.com/nbalagopal
 
W

Wannabe

You know...I deleted the scriptmanager1 control in my master page and
recreated it, which it was named scriptmanager1, and the error went away.

So, renaming the control earlier fixed the problem, but if I wanted it to be
named scriptmanager1, deleting and readding it fixed it.

Thanks a lot for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top