.Net 4.0 Support

Last post 08-09-2010, 1:40 PM by Adam. 9 replies.
Sort Posts: Previous Next
  •  07-26-2010, 3:41 PM 62718

    .Net 4.0 Support

    Hello
     
    I was wondering if there are any known issues with CuteLiveSupport in .net 4.0?
     
    We have been using it without issue with previous versions of the framewokr for some time but are experiencing problems after attempting to upgrade the rest of our website to .net 4.0.
     
    Thanks for any information you can provide.
  •  07-27-2010, 12:48 AM 62726 in reply to 62718

    Re: .Net 4.0 Support

    Hi mikeconfer,
     
    Try do the setting below in web.config after you upgrade to asp.net 4.0
     
    <httpRuntime requestValidationMode=″2.0″ />
     
    Regards,
     
    ken
  •  07-27-2010, 12:43 PM 62746 in reply to 62726

    Re: .Net 4.0 Support

    Thanks Ken
     
    Unfortunately that did not help. The error we have been seeing since the 4.0 upgrade is:
     
    Attempt by security transparent method 'CuteChat.RemoteDataProvider.GetPortalInfo(System.String)' to access security critical method 'CuteChat.ServiceClientInterface.RemoteChatServiceFactory.Create()' failed.

    Assembly 'CuteChat.AppCode, Version=5.0.0.0, Culture=neutral, PublicKeyToken=caec02264daa66c8' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model.  Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception
  •  07-27-2010, 12:49 PM 62747 in reply to 62746

    Re: .Net 4.0 Support

    Sorry for the double-post-
     
    Based on researching that error, we also attempted to add this to the web.config:
     
    <trust       legacyCasModel = "True"       level="Full" />
     
    with similar failure.
  •  07-27-2010, 3:28 PM 62748 in reply to 62747

    Re: .Net 4.0 Support

    Okay, I think I have determined how to work around the Security error.
     
    I am now seeing the following:
     
    System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]: Invalid object name 'CuteChat4_Portal'.
     
       System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +9464367
       System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +345
       CuteChat.ServiceClientInterface.ChatService.IRemoteChat.GetPortalInfo(String portalname) +0
       CuteChat.RemoteDataProvider.GetPortalInfo(String portalname) +86
       CuteChat.ChatDataManager.GetPortalInfo() +73
       CuteChat.ChatPortal.get_Info() +45
       CuteChat.ChatApi.GetCurrentPortalProperty(String propname) +155
     
  •  07-27-2010, 3:51 PM 62749 in reply to 62748

    Re: .Net 4.0 Support

    This latest error turns out to be a configuration issue on my side.
     
    In order to work around the Security MethodAccessExceptions I was seeing earlier,
    I had to put the following assembly attributes on all of the assemblies that called into
    your code:
     
    [assembly: SecurityRules(SecurityRuleSet.Level1)]
    [assembly: AllowPartiallyTrustedCallersAttribute()]
     
    Everything seems to be working now!
  •  07-28-2010, 10:03 AM 62777 in reply to 62749

    Re: .Net 4.0 Support

    Glad  to know it is working now.
     
    Regards,
    Eric
  •  08-05-2010, 8:21 AM 63124 in reply to 62777

    Re: .Net 4.0 Support

    Eric
     
    It appears I was too quick in celebrating victory.
     
    What is occuring now under .net 4.0 is the chat window will display, it will provide visual indications to both the agent and the end user when the other party is typing, but no chat messages appear on screen.
  •  08-06-2010, 10:38 AM 63184 in reply to 63124

    Re: .Net 4.0 Support

    mikeconfer:
    Eric
     
    It appears I was too quick in celebrating victory.
     
    What is occuring now under .net 4.0 is the chat window will display, it will provide visual indications to both the agent and the end user when the other party is typing, but no chat messages appear on screen.
     
    mikeconfer,
     
    We are able to reproduce this issue.
     
    We are working on a solution and will get back to you as soon as possible.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-09-2010, 1:40 PM 63279 in reply to 62718

    Re: .Net 4.0 Support

    mikeconfer:
    Hello
     
    I was wondering if there are any known issues with CuteLiveSupport in .net 4.0?
     
    We have been using it without issue with previous versions of the framewokr for some time but are experiencing problems after attempting to upgrade the rest of our website to .net 4.0.
     
    Thanks for any information you can provide.
     
    We have resolved the .NET 4.0 support issue.
     
    Please download the latest build then try again.
     
    Keep me posted
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML