SecurityException With CH_MainForm when deployed on server.

Last post 08-09-2006, 12:06 PM by Adam. 8 replies.
Sort Posts: Previous Next
  •  07-12-2006, 11:17 AM 20928

    SecurityException With CH_MainForm when deployed on server.

     
    I have downloaded cutechat integration package and integrated with our website successfully within Visual studio2005.
    It works fine on my local machine. If I upload these files to my temperary server. I am getting the following exception.
     
    I am using CHMainForm.aspx with params Lobby and locationId as it is used on demo site.
     
    Any suggestions or help would be greatly appreciated.
     
     
     
    SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
       CuteSoft.Chat.ChatWebUtility.GetUserAdapter() +0
       CuteSoft.Chat.ChatWebUtility.get_CurrentIdentity() +76
       CuteSoft.Chat.Impl.ResourceContext.LoadResources(CultureInfo ci) +9
       CuteSoft.Chat.UI.ChatPageBase.Render(HtmlTextWriter writer) +42
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6953
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154
       System.Web.UI.Page.ProcessRequest() +86
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
       System.Web.UI.Page.ProcessRequest(HttpContext context) +49
       ASP.cutesoft_client_cutechat_ch_mainform_aspx.ProcessRequest(HttpContext context) in App_Web_kn2ncies.16.cs:0
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
  •  07-12-2006, 11:36 AM 20930 in reply to 20928

    Re: SecurityException With CH_MainForm when deployed on server.

    Try Modify web.config file and Set code access security trust level to "Full".

    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

  •  07-12-2006, 11:57 AM 20936 in reply to 20930

    Re: SecurityException With CH_MainForm when deployed on server.

    Thanks Adam.
    I have tried as you mentioned I got the following error. I could not overide the trust level to Ful.
     
    So you are suggesting that we should go to Full trust environment. Do you know why we are getting this error? Rest of the application except cutechat works with default trust level, i think it is medium.
     
     
     
    ++++++++++ ERROR =++++
     
     
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: This configuration section cannot be used at this path.  This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

    Source Error:

    Line 39:         -->
    Line 40: 
    Line 41:     <trust level="Full"/>
    Line 42:     <!--authentication mode="Windows"/-->
    Line 43: 		<authentication mode="Forms">

    Source File: D:\inetpub\DomainID125636\web.config    Line: 41

  •  07-12-2006, 12:04 PM 20938 in reply to 20936

    Re: SecurityException With CH_MainForm when deployed on server.

    Adam, It would be great if you can pass any example code.
  •  07-12-2006, 12:14 PM 20940 in reply to 20938

    Re: SecurityException With CH_MainForm when deployed on server.

    Dear Customer:
     
    Some server limit the <trust /> section in web.config . So you can't change it .
     
    We will publish a new version to fix the bugs of CuteChat3 next week .
     
    Regards , Terry .
  •  07-12-2006, 12:23 PM 20942 in reply to 20940

    Re: SecurityException With CH_MainForm when deployed on server.

    Thanks Terry  for the quick response. I guess when you make a new release, CuteChat3 Integration package will run in Medium trust environment(?).
  •  07-12-2006, 1:03 PM 20943 in reply to 20942

    Re: SecurityException With CH_MainForm when deployed on server.

    >>I guess when you make a new release, CuteChat3 Integration package will run in Medium trust environment(?).
     
    Medium trust will be supported in the next week.
     
     

    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-2006, 8:54 AM 21694 in reply to 20943

    Re: SecurityException With CH_MainForm when deployed on server.

    Is it available now (which runs in a medium trust environment)?
  •  08-09-2006, 12:06 PM 21695 in reply to 21694

    Re: SecurityException With CH_MainForm when deployed on server.

View as RSS news feed in XML