Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'.Parameter name: instance

I am getting the error; MVC Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'.Parameter name: instance

I am getting this error in my MVC application and I am wondering if it is to do with the upgrade to ie8? I do not get the problem in FF. The debugger locates the error in the MicrosoftAjax.debug.js file when I am doing a post.

Because I am working in MVC, the usual solution; set ScriptMode to Release does not apply.

like image 921
arame3333 Avatar asked Feb 15 '12 10:02

arame3333


1 Answers

This might be what you were looking for. I've spent this entire afternoon trying to find a solution and every other article I read suggested either setting ScriptMode to Release in the asp:ScriptManager or disabling SmartNavigation. This article suggests changing the following line in your web.config to false:

<compilation debug="false">

That worked for me, with any luck it will work for you too.

like image 62
Mykroft Avatar answered Oct 20 '22 17:10

Mykroft