Jais
 New Member
 Posts:3

 |
| 10 Feb 2009 11:32 AM |
|
When i edit a form it get the following error when i click on Messaging->Form Heading or Messaging->Form Thank You
Error: Form Master Edit is
currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException:
Unable to cast object of type 'System.Web.UI.ScriptManager' to type
'System.Web.UI.ScriptManager'. ---> System.InvalidCastException: Unable to
cast object of type 'System.Web.UI.ScriptManager' to type
'System.Web.UI.ScriptManager'. at
Code5Systems.FormMaster.Utility.DisableAjax(Control control) at
Code5Systems.FormMaster.FormThankYouEdit.Page_Load(Object sender, EventArgs e)
--- End of inner exception stack trace ---
If i click on Messaging->Auto responder or Messaging->Custom Template i get shorter version:
Unable to cast object of type
'System.Web.UI.ScriptManager' to type 'System.Web.UI.ScriptManager'.
The rest of the menus seem to work fine.
My setup is:
FormMaster 2008 2.0.4
DNN 5.0.0
SQL 2008
SBS 2008
/Jais
|
|
|
|
|
Code 5 Moderator
 Advanced Member
 Posts:907

 |
| 10 Feb 2009 12:01 PM |
|
This is strainge since both the types involved in the Cast are the same types. As a workaround uncheck "Supports Partial Rendering" in the Host > Desktop Modules > Form Master > Dispatcher control page. Chances are we cannot reproduce the error since we cannot reproduce your environment but we will have a look. |
|
|
|
|
Jais
 New Member
 Posts:3

 |
| 10 Feb 2009 06:03 PM |
|
Yes it is a very strange error message.
I don't have "Desktop Modules" in my Host menu, but i have "Extensions", where i disabled "Supports Partial Rendering" for the dispatcher control. Is that the correct place? (I'm new to DNN). In any case it didn't solve the problem.
Is there anything else i can do to diagnose the problem?
/Jais
|
|
|
|
|
Code 5 Moderator
 Advanced Member
 Posts:907

 |
| 11 Feb 2009 12:13 AM |
|
Make sure the Applicaiton has been restarted after the Partial Rendering Change Are you using FireFox or IE? |
|
|
|
|
Jais
 New Member
 Posts:2

 |
| 11 Feb 2009 12:25 AM |
|
That did not help  The web server is 64 bit - can that have anything to do with it? /Jais |
|
|
|
|
Jais
 New Member
 Posts:2

 |
| 11 Feb 2009 12:26 AM |
|
I have tried both Firefox and IE. The error message comes more often in Firefox.
/Jais
|
|
|
|
|
Code 5 Moderator
 Advanced Member
 Posts:907

 |
| 11 Feb 2009 01:04 AM |
|
Form Master is Developed on 64 Bit Vista, that is probably not an issue. Do you get a full Stack Trace in Event Viewer? |
|
|
|
|
Jais
 New Member
 Posts:3

 |
| 13 Feb 2009 08:20 AM |
|
I have been unable to make server give me an full stack trace, but i found a solution here:
https://www.onyaktech.com/Members/MembersForums/tabid/67/forumid/134/postid/6746/view/topic/Default.aspx
I don't know why, but i works 
/Jais |
|
|
|
|
Code 5 Moderator
 Advanced Member
 Posts:907

 |
| 13 Feb 2009 11:54 AM |
|
Thanks for posting the fix :-) |
|
|
|
|
Eric Janzen
 New Member
 Posts:1

 |
| 27 Apr 2010 06:30 PM |
|
Can't see the link in this thread. I am having the same problem. What is the fix??? |
|
|
|
|
Code 5 Moderator
 Advanced Member
 Posts:907

 |
| 27 Apr 2010 09:26 PM |
|
this new forum version does strange things with URLs |
|
|
|
|
Code 5 Moderator
 Advanced Member
 Posts:907

 |
| 27 Apr 2010 09:30 PM |
|
You may have to private "message" Jais because I cannot see any thing at that link any longer |
|
|
|
|
Brad Murray
 New Member
 Posts:6

 |
| 10 Oct 2011 08:46 PM |
|
If anybody can post the fix to this it would be greatly appreciated, I ran into this for the first time today putting the latest version on 4.9.3.
I have source, so I can probably code around it, but if there was an easy fix I would rather do that than changing the source (I like to do that as little as possible so I can merge in if there is ever a new version).
Thanks.
|
|
|
|
|
Brad Murray
 New Member
 Posts:6

 |
| 10 Oct 2011 09:05 PM |
|
To solve my own problem, If you have source, \Components\Utility.vb, DisableAjax sub, change the first few lines to include the following:
Dim oScriptMgr As ScriptManager
Dim objScriptMgr As Object
objScriptMgr = control.Page.FindControl("scriptmanager")
If (Not IsNothing(objScriptMgr)) Then
If (TypeOf objScriptMgr Is ScriptManager) Then
oScriptMgr = CType(objScriptMgr, ScriptManager)
Else
Exit Sub
End If
Else
Exit Sub
End If
Seems to do the trick, code can probably be cleaned up/simplified, but I am in a hurry. :) |
|
|
|
|
Code 5 Moderator
 Advanced Member
 Posts:907

 |
| 10 Oct 2011 10:15 PM |
|
Did you install the PA inteded for DNN4x? |
|
|
|
|
Brad Murray
 New Member
 Posts:6

 |
| 10 Oct 2011 10:33 PM |
|
Well I was working form source originally, so I can't say since I compiled my version using the 4.9.3 DNN dll as the reference.
The code I included above made it purr like a kitten though. |
|
|
|
|