Wednesday, March 21, 2012

Why does my AJAX Toolkit Miss Stephen so Much?

Quick Description:  After adding an AJAX toolkit control to a c# web application in VS 2010, a debug run blows up with error

Locating source for 'C:\Users\Stephen\Documents\Repos\Superexpert\AjaxControlToolkit\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs'

There’s a good reason for that: no-one named Stephen has ever used my sandbox machine.

Embarrassing to admit, but rule this out:

In searching on this problem, I found lots of questions, but I didn’t find a solution…which is probably a fitting punishment for skipping a step in the very clear instructions on the Control Toolkit CodePlex page.  In my case (there may be other causes for the error), it was resolved after verifying I’d followed the instructions to add the ToolkitScriptManager to the page (spoiler alert: I hadn’t).

Error Examples:

image

Call Stack Location:

AjaxControlToolkit.DLL!AjaxControlToolkit.ExtenderControlBase.OnLoad(System.EventArgs e = {System.EventArgs}) Line 306

Source File Information:

Locating source for 'C:\Users\Stephen\Documents\Repos\Superexpert\AjaxControlToolkit\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs'. Checksum: MD5 {56 64 14 a8 4c 29 25 94 27 e0 35 10 f1 b4 60 f2}
<rest of stack trace snipped>

And:

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Exception Details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.

2 comments:

  1. Is there a work-around , solution for this problem.
    If you check the dll/pdb files you'll see the 'Stephen path' hardcoded in it...????

    That can't be right??

    ReplyDelete
  2. Great article. I wish they would fix this. It must be very embarassing for Stephen.

    ReplyDelete