Ajax Control Toolkit – JavaScript Runtime Error

So here I was on a Friday afternoon with another doozy of an error. I recently needed to make a modification to an existing web application we wrote. The original developer had left the company and I had to take this project over for the change. The forms make use of Ajax, so I duly went ahead and installed the Ajax Control Toolkit via NuGet. I then started seeing the following error: ‘JavaScript runtime error: Unable to get property ‘UI’ of undefined or null reference’. I saw that a modal popup caused this error. I wasn’t too surprised as I had expected some errors, but the solution however did surprise me.

JavaScript Runtime Error

Well there is not much to say about this solution. Here is the screen that pops up.

Some sources on the Internet said that one needs to set the CombineScripts property to False, but I didn’t think that would be a solution, but rather a workaround. Then there was a solution offered by masterw that worked like a charm.

Dirk is a Software Developer and Microsoft MVP from South Africa. He loves all things Technology and is slightly addicted to Twitter and Jimi Hendrix. Apart from writing code, he also enjoys writing human readable articles. "I love sharing knowledge and connecting with people from around the world. It's the diversity that makes life so beautiful." Dirk feels very strongly that pizza is simply not complete without Tabasco, that you can never have too much garlic, and that cooking the perfect steak is an art he has yet to master.