Sunday, March 11, 2012

Error: Building and deploying an existing site that now has an AjaxControlToolkit control

OK I was able to add the AjaxControlToolkit.dll and pdb to source control. I've checked them in, and kicked off a Team Build... resulting in this new error:

Solution: Deploy.WwwRoot.wdproj, Project: wwwroot, Compilation errors and warnings
ASPNETCOMPILER(0,0): error ASPCONFIG: Could not load file or assembly 'AjaxControlToolkit, Version=1.0.10618.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

Any suggestions?


Implemented the ratingcontrol on my XP Pro machine, deployed to a 2003 Server machine finally after figuring out the dll.refresh issue (here'sthe reference that helped)... now getting a javascript error from the resulting javascript associated with the Rating Control:

Line: 1478

Char: 5

Error: 'AjaxControlToolkit' is undefined

Code: 0

And in firebug...

AjaxControlToolkit is not defined

(no name)() (line 1486)

createCallback(Object _disposableObjects=[0] _components=Object,Object)ScriptResource.ax... (line 5)

createCallback()ScriptResource.ax... (line 5)

createCallback()ScriptResource.ax... (line 5)

$create(AjaxControlToolkit.RatingBehavior, {"AutoPostBack":false,"CallbackID...

here is the compiled javascript with the line numbers included.

<script type="text/javascript">
1482<!--
1483
1484WebForm_InitCallback();Sys.Application.initialize();
1485Sys.Application.add_init(function() {
1486 $create(AjaxControlToolkit.RatingBehavior, {"AutoPostBack":false,"CallbackID":"ctl00$wcMainContent$Rating1","ClientStateFieldID":"ctl00_wcMainContent_Rating1_RatingExtender_ClientState","EmptyStarCssClass":"emptyRatingStar","FilledStarCssClass":"filledRatingStar","StarCssClass":"ratingStar","WaitingStarCssClass":"savedRatingStar","id":"ctl00_wcMainContent_Rating1_RatingExtender"}, null, null, $get("ctl00_wcMainContent_Rating1"));
1487});
1488// -->1489</script>


Hi,

Please refer to this post that has the same issue: http://forums.asp.net/p/1105602/1707478.aspx

Hope this helps.

No comments:

Post a Comment