?
Solved

Error creating control - Scriptmanager1

Posted on 2008-10-25
4
Medium Priority
?
2,138 Views
Last Modified: 2013-11-08
I have just installed VS2008. I then got the 3.5 SP1 update installed. Then I installed the AJAX 3.5 Toolkit. I then go into VS, select File/New AJAX Control Toolkit Web Site (VB) and as expected, the Scriptmanager1 is installed by default in the default.aspx code page. When I switch to Design View, VS can not display the Scriptmanager and shows the error: Error creating control - Scriptmanager1. Unable to create type...blah, blah.
I can at this point, delete the Scriptmanager, go into my AJAX Toolbox on the Tools panel and drag a Scriptmanager onto the form. When I do, I get a popup that reads: Destination File Exists - A file with the name 'Bin/AjaxControlToolkit.dll' already exists. Do you want to replace - for each control that I drop on the form? If I say yes to all, all is well and I can continue to code.
My question is, why is all of this happening? The default Scriptmanager on the page should work, and I shouldn't be prompted about existing files.
What, where, and how do I fix this problem?
Thanks,
Eric
0
Comment
Question by:phc_dev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
NerdsOfTech earned 1500 total points
ID: 22805355
http://forums.asp.net/p/1268079/2388841.aspx#2388841

OR Try

' source/library/components/framework/Ajax.vb
 
' Line #148
        Public Shared Sub RegisterScriptManager()
            If Not IsEnabled() Then
                AddScriptManager(m_Page)
            End If
        End Sub
 
'ADDED THE FOLLOWING FOR THE FIX
        Public Shared Sub RegisterScriptManager(ByVal objPage As Page)
            If Not IsEnabled() Then
                AddScriptManager(objPage)
            End If
        End Sub

Open in new window

0
 
LVL 19

Assisted Solution

by:NerdsOfTech
NerdsOfTech earned 1500 total points
ID: 22805357

        Public Shared Sub RegisterScriptManager(ByVal objPage As Page)
            If Not IsEnabled() Then
                AddScriptManager(objPage)
            End If
        End Sub

Open in new window

0
 

Author Comment

by:phc_dev
ID: 22807750
Couple of questions?

Is this a known bug?

Where is this path located:
' source/library/components/framework/Ajax.vb

once I put that code in place, will i have to also make sure our servers are setup that way too?

also, after I put that code in place, will it correct the second part of my question:
"I can at this point, delete the Scriptmanager, go into my AJAX Toolbox on the Tools panel and drag a Scriptmanager onto the form. When I do, I get a popup that reads: Destination File Exists - A file with the name 'Bin/AjaxControlToolkit.dll' already exists. Do you want to replace - for each control that I drop on the form? If I say yes to all, all is well and I can continue to code."

Thanks.
0
 

Author Comment

by:phc_dev
ID: 22809840
The above fix is for dotnetnuke which I do not have. I have read several articles since my original posting which say that 2008 + ajax 3.5 = flakey at best and to stick to the older version, which I am reverting to.
Eric
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question