For me the error is still there. I tried ScriptMode="Release" also.
But still the error arises.
The error is "Message: Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'.
Parameter name: instance"
Just for the record. We went thru a similar situation some time ago.
The issue was actually related to session state persistence; we were using sessionState=SQLServer and one of the session variables was non-serializable -> BOOOM
Changing to sessionState = "inproc" or making the class serializable and keeping sessionState=SQLServer solved the issue.
This is very cool post. Thanks because I got my problem solved now. May be in debug mode thta instance was not accessible. I tried this in Ajax 4. Even then I got error. When changing the scriptmode to release I got the problem solved.
Inventisity
Member
635 Points
129 Posts
Sys._Application Error
Oct 31, 2006 02:39 PM|LINK
Hello,
I am getting alot of the following runtime errors:
Line: 496
Error: Sys.ArgumentTypeException: OBject of type 'Sys_Application' cannot be converted to type 'Sys._Application'/
Parameter name: instance
Is it a step that was missed during the migration process?
A simple recreation of the error involves having a simple button postback to the page, and pressing the refresh button.
I am using Master Pages if this complicates the matter.
Thanks all :)
richbaker
Member
132 Points
27 Posts
Re: Sys._Application Error
Jan 24, 2007 01:05 PM|LINK
I am also getting this error with the Released Version, any clues please?
Many thanks
Richard.
mychajlo
Member
20 Points
8 Posts
Re: Sys._Application Error
Apr 24, 2007 02:30 PM|LINK
After many days worth of head aches and much cursing I figured the reason why I receive this error...
I had smart navigation turned on for the page that I was posting back to... It seems like AJAX controls
and smart navigation do not agree with one another...
Check this out for a definition on how smart navigation works...
http://msdn.microsoft.com/msdnmag/issues/05/09/WebQA/default.aspx
Hope this alleviates some cursing that you may be experiencing.
Regards
Mychajlo
chetan.sarode
All-Star
53389 Points
9034 Posts
Re: Sys._Application Error
Apr 30, 2007 03:28 AM|LINK
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
mychajlo
Member
20 Points
8 Posts
Re: Sys._Application Error
May 04, 2007 08:47 AM|LINK
I posted a recreation of the dreaded Sys._Application error here :
http://forums.asp.net/4/1693337/ShowThread.aspx#1693337
Don't suppose anyone has found a way to use smart navigation with ajax when doing a postback to the same page?
This will come in handy when doing server side validation before a page redirect...
Thanks
Mychajlo
mychajlo
Member
20 Points
8 Posts
Re: Sys._Application Error
May 04, 2007 10:09 AM|LINK
This error is quite irritating...
I have now come to discover that setting the scriptmode of the scriptmanager to "Release" alleviates this error...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" smartNavigation="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release"> </asp:ScriptManager> <div> <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="False" UpdateMode="Conditional"> <ContentTemplate> <asp:Button ID="Button1" runat="server" Text="Button" /> </ContentTemplate> <Triggers> <asp:PostBackTrigger ControlID="Button1" /> </Triggers> </asp:UpdatePanel> </div> </form> </body> </html>
Why is it, when left on default("Auto"), the page throws this error and when set to "Release" it doesn't?!?!?!?chetan.sarode
All-Star
53389 Points
9034 Posts
Re: Sys._Application Error
May 05, 2007 03:33 AM|LINK
Thats Good, YOu have solved the problem..
But what is the raltion of ScriptMode="Release for that eroor
I also didn't understand..
If you find any answer psot it..
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
just22
Member
6 Points
7 Posts
Re: Sys._Application Error
Nov 30, 2008 08:53 AM|LINK
For me the error is still there. I tried ScriptMode="Release" also.
But still the error arises.
The error is "Message: Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'.
Parameter name: instance"
errors Sys_Application
alekz_09
Member
2 Points
1 Post
Re: Sys._Application Error
Jan 23, 2009 06:15 PM|LINK
Just for the record. We went thru a similar situation some time ago.
The issue was actually related to session state persistence; we were using sessionState=SQLServer and one of the session variables was non-serializable -> BOOOM
Changing to sessionState = "inproc" or making the class serializable and keeping sessionState=SQLServer solved the issue.
MisterFantastic
Participant
1119 Points
326 Posts
Re: Sys._Application Error
Jul 07, 2009 06:13 AM|LINK
Hi There,
This is very cool post. Thanks because I got my problem solved now. May be in debug mode thta instance was not accessible. I tried this in Ajax 4. Even then I got error. When changing the scriptmode to release I got the problem solved.
Thanks,
Thani