"Operation could destabilize the runtime".. Medium Trust?

Last post 11-29-2006, 4:43 PM by EvilJohnius. 40 replies.
Page 1 of 3 (41 items)   1 2 3 Next >
Sort Posts: Previous Next
  •  07-31-2006, 3:44 PM 21418

    "Operation could destabilize the runtime".. Medium Trust?

    I would assume that CuteChat is designed to work under Medium Trust.. no?
     
    I'm getting error:
     
    Operation could destabilize the runtime.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [VerificationException: Operation could destabilize the runtime.] ICuteChatDataAccessImplementation.CuteSoft.Chat.ICuteChatDataAccess.LoadTable(String tablename) +57 CuteSoft.Chat.ChatDataManager.GetConfigs() +87 CuteSoft.Chat.ChatDataManager.GetConfig(String configname) +17 CuteSoft.Chat.ChatApiImpl.DoGetConfig(String name) +140 CuteSoft.Chat.ChatApiImpl.GetConfig(String name) +55 CuteSoft.Chat.ChatWebUtility.GetUserAdapter() +77 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) +1896

     
    any thoughts?
  •  07-31-2006, 4:19 PM 21421 in reply to 21418

    Re: "Operation could destabilize the runtime".. Medium Trust?

    aeromed,
     
    Please upgrade to the version 3.1.
     
    This issue has been resolved.
     
     

    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-31-2006, 4:23 PM 21427 in reply to 21421

    Re: "Operation could destabilize the runtime".. Medium Trust?

    I should have noted... That is with 3.1
  •  07-31-2006, 4:27 PM 21430 in reply to 21427

    Re: "Operation could destabilize the runtime".. Medium Trust?

    aeromed,
     
    In which page did you receive this error? when upgrading have you replaced all the client files and CuteSoft.chat.dll?
     
     

    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-31-2006, 4:34 PM 21432 in reply to 21430

    Re: "Operation could destabilize the runtime".. Medium Trust?

    Yes.. i have replaced the entire CuteSoft directory, .dll, lic files, and global.asax.  Actually, I hadn't even uploaded 3.0 to remote.
     
    I should note I'm trying the CS 2.0 download.
     
    on "/CuteSoft_Client/CuteChat/ch_MainForm.Aspx?Location=Lobby&LocationId=1".. i get:
     

    Operation could destabilize the runtime.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [VerificationException: Operation could destabilize the runtime.] ICuteChatDataAccessImplementation.CuteSoft.Chat.ICuteChatDataAccess.LoadTable(String tablename) +57 CuteSoft.Chat.ChatDataManager.GetConfigs() +87 CuteSoft.Chat.ChatDataManager.GetConfig(String configname) +17 CuteSoft.Chat.ChatApiImpl.DoGetConfig(String name) +140 CuteSoft.Chat.ChatApiImpl.GetConfig(String name) +55 CuteSoft.Chat.ChatWebUtility.GetUserAdapter() +77 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) +1896
     
     
     
    and on "/CuteSoft_Client/CuteChat/Admin/Lobbies.aspx" .. i get:  (prob same)
     

    Operation could destabilize the runtime.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [VerificationException: Operation could destabilize the runtime.]
       ICuteChatDataAccessImplementation.CuteSoft.Chat.ICuteChatDataAccess.LoadTable(String tablename) +57
       CuteSoft.Chat.ChatDataManager.GetConfigs() +87
       CuteSoft.Chat.ChatDataManager.GetConfig(String configname) +17
       CuteSoft.Chat.ChatApiImpl.DoGetConfig(String name) +140
       CuteSoft.Chat.ChatApiImpl.GetConfig(String name) +55
       CuteSoft.Chat.ChatWebUtility.GetUserAdapter() +77
       CuteSoft.Chat.ChatWebUtility.get_CurrentIdentity() +76
       CuteSoft.Chat.UI.ChatAdminPage.OnInit(EventArgs e) +67
       System.Web.UI.Control.InitRecursive(Control namingContainer) +321
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692
    
  •  08-01-2006, 10:34 AM 21446 in reply to 21432

    Re: "Operation could destabilize the runtime".. Medium Trust?

    any word on this? 
  •  08-01-2006, 2:47 PM 21452 in reply to 21446

    Re: "Operation could destabilize the runtime".. Medium Trust?

    aeromed,
     
    We are investigating this issue 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-01-2006, 3:41 PM 21459 in reply to 21452

    Re: "Operation could destabilize the runtime".. Medium Trust?

    Sounds great.. thanks!
  •  08-01-2006, 5:18 PM 21464 in reply to 21459

    Re: "Operation could destabilize the runtime".. Medium Trust?

    That because the assembly is compiled in vs2003 , and it may have problem in dotnet2.0 , medium-trust condition .
     
    We can modify the code to get rid of it .
     
    Regards , Terry .
     
  •  08-01-2006, 5:45 PM 21465 in reply to 21464

    Re: "Operation could destabilize the runtime".. Medium Trust?

    Yes, I am on asp.net 2.0-
     
    I look forward to the fix
  •  08-02-2006, 7:14 PM 21503 in reply to 21464

    Re: "Operation could destabilize the runtime".. Medium Trust?

    any chance that recompile may happen today? 
  •  08-03-2006, 2:44 PM 21523 in reply to 21503

    Re: "Operation could destabilize the runtime".. Medium Trust?

    Dear:
     
    I got such exception before , in another class-method , and I have fixed it by modifying the code .
     
    It's strange that , When I test again it in asp.net2.0 , medium trust level , I don't get such error any more .
     
    Could you tell me which kind of CuteChat3.1 you downloaded ?
     
    Regards , Terry .
  •  08-03-2006, 3:00 PM 21524 in reply to 21523

    Re: "Operation could destabilize the runtime".. Medium Trust?

    aeromed,
     
    Yeah, I can't reproducet this error either.
     
    Can you post your web.config file?
     
     

    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-03-2006, 3:35 PM 21527 in reply to 21524

    Re: "Operation could destabilize the runtime".. Medium Trust?

    Below is my web.config, less snipped stuff.  Prob nothing unusual there(?)
     
    I can't/havent added the Medium trust as my host doesn't "allow overrides" .. but there's is Medium.  If I add the trust/level item I can duplicate on localhost.
     
     
    <configuration>
     
      <connectionStrings>
        <add name="SiteSqlServer" connectionString ="snip" />
      </connectionStrings>
     
      <appSettings>
        <add key="SiteSqlServer" value="snip" />
        <add key="SiteSqlServerOwner" value="dbo" />
        <add key="MachineValidationKey" value="snip" />
        <add key="MachineDecryptionKey" value="snip" />
        <add key="MachineValidationMode" value="SHA1" />
        <add key="ComponentArt.Web.UI.ClientScriptLocation" value = "~/Utility/componentart_webui_client" />
      </appSettings>
     
      <system.web>
          <machineKey validationKey="snip" decryptionKey="snip" validation="SHA1" />
        <!-- Standard Application Settings -->
        <compilation defaultLanguage="c#" debug="true" />
        <pages validateRequest="false" autoEventWireup="true" pageBaseType="CommunityServer.Components.CSPage, CommunityServer.Components"  >
        </pages>
        <trace enabled="true" requestLimit="40" localOnly="true"/>
     
        <customErrors mode="Off" defaultRedirect = "error.htm" />
     
        <httpModules>
          <add name="CommunityServer" type="CommunityServer.CSHttpModule, CommunityServer.Components" />
        </httpModules>
     
        <httpHandlers>
          <add verb="GET" path="Utility/redirect.aspx" type="CommunityServer.Components.Redirect, CommunityServer.Components" />
          <add verb="GET" path="aggbug.aspx" type="CommunityServer.Components.HttpHandler.AggBugHandler, CommunityServer.Components" />
          <add verb="GET" path="avatar.aspx" type="CommunityServer.Components.HttpHandler.AvatarHttpHandler, CommunityServer.Components" />
          <add verb="GET" path="vcard.aspx" type="CommunityServer.Components.HttpHandler.VCardHttpHandler, CommunityServer.Components" />
          <add verb="POST" path = "rsscomments/*.aspx" type="CommunityServer.Blogs.Components.RssCommentHandler, CommunityServer.Blogs" />
          <add verb="GET" path="r.ashx" type="CommunityServer.Components.HttpHandler.TinyUrlHttpHandler, CommunityServer.Components" />
        </httpHandlers>
     
        <authentication mode="Forms">
     
          <forms name=".CommunityServer"  protection="All" timeout="60" loginUrl="login.aspx" slidingExpiration="true" domain=".mysite.com"  />
        </authentication>
      </system.web>
     
      <location path="EditPost.aspx">
        <system.web>
          <authorization>
            <deny users="?" />
          </authorization>
        </system.web>
      </location>
     
      <location path="PrivateMessage.aspx">
        <system.web>
          <authorization>
            <deny users="?" />
          </authorization>
        </system.web>
      </location>
     
      <location path="Download.aspx">
        <system.web>
          <authorization>
            <deny users="?" />
          </authorization>
        </system.web>
      </location>
     
      <location path="License.aspx">
        <system.web>
          <authorization>
            <deny users="?" />
          </authorization>
        </system.web>
      </location>
     
      <system.web>
        <membership userIsOnlineTimeWindow="15" defaultProvider="CommunityServerSqlProvider" >
          <providers>
            <clear />
            <add 
              name="CommunityServerSqlProvider"      
              type="CommunityServer.ASPNet20MemberRole.CSMembershipProvider, CommunityServer.ASPNet20MemberRole"
              connectionStringName="SiteSqlServer"
              enablePasswordRetrieval="false"
              enablePasswordReset="true"
              requiresQuestionAndAnswer="false"
              requiresUniqueEmail="true"
              passwordFormat="Hashed"
              applicationName="dev"
              description="Stores and retrieves membership data from the local Microsoft SQL Server database"
              maxInvalidPasswordAttempts = "999"
              passwordAttemptWindow = "999"
              minRequiredPasswordLength = "6"
              minRequiredNonalphanumericCharacters = "0"
            />
          </providers>
        </membership>
     
        <roleManager defaultProvider="CommunityServerSqlProvider" enabled="true"
          cacheRolesInCookie="true" cookieName=".CSRoles" cookieTimeout="90"
          cookiePath="/"  cookieRequireSSL="false" cookieSlidingExpiration="true" 
          createPersistentCookie="true" cookieProtection="All" maxCachedResults="1000" >
          <providers>
            <clear />
            <add
              name="CommunityServerSqlProvider"
              type="CommunityServer.ASPNet20MemberRole.CSRoleProvider, CommunityServer.ASPNet20MemberRole"
              connectionStringName="SiteSqlServer"
              applicationName="dev"
              description="Stores and retrieves roles data from the local Microsoft SQL Server database" 
            />
          </providers>
        </roleManager>
     
        <profile defaultProvider="CommunityServerSqlProvider" enabled="true" >
          <providers>
            <clear />
            <add  
              name="CommunityServerSqlProvider"  
              type="CommunityServer.ASPNet20MemberRole.CSProfileProvider, CommunityServer.ASPNet20MemberRole"
              connectionStringName="SiteSqlServer"
              applicationName="dev"
              description="Stores and retrieves profile data from the local Microsoft SQL Server database" 
            />
          </providers>
     
          <properties>
            <!--CommunityServerSqlProvider Properties-->
            <add name = "commonName" type = "string" />
            <add name = "birthdate" type = "DateTime" />
            <add name = "gender" type = "int" defaultValue = "0" />
            <add name = "dateFormat" type = "string" defaultValue="MM-dd-yyyy" />
            <add name = "publicEmail" type = "string" />
            <add name = "language" type = "string" />
            <add name = "webAddress" type = "string" />
            <add name = "webLog" type = "string" />
            <add name = "webGallery" type = "string" />
            <add name = "signature" type = "string" />
            <add name = "signatureFormatted" type = "string" />
            <add name = "location" type = "string" />
            <add name = "occupation" type = "string" />
            <add name = "interests" type = "string" />
            <add name = "msnIM" type = "string" />
            <add name = "yahooIM" type = "string" />
            <add name = "aolIM" type = "string" />
            <add name = "icqIM" type = "string" />
            <add name = "enablePostPreviewPopup" type = "System.Boolean" defaultValue = "false" />
            <add name = "enableEmoticons" type = "System.Boolean" defaultValue = "true" />
            <add name = "timezone" type = "System.Double" defaultValue="0" />
            <add name = "fontsize" type = "int" defaultValue = "0" />
            <add name = "bio" type = "string" />
     
          </properties>
        </profile>
     
     
        <anonymousIdentification 
    enabled="false" 
    cookieName=".ASPXANONYMOUS" 
    cookieTimeout="100000"
                cookiePath="/" 
    cookieRequireSSL="false" 
    cookieSlidingExpiration="true"
                cookieProtection="None" domain="" />
     
     
     
      </system.web>
    </configuration>
  •  08-04-2006, 3:13 PM 21549 in reply to 21527

    Re: "Operation could destabilize the runtime".. Medium Trust?

    aeromed,
     
    If you are using the 3.0, I know there is a bug with "medium trust".
     
    But we defitely fixed this bug in the version 3.1.
     
    Can you try the steps below:
     
    1. Download the latest build from http://cutesoft.net/Downloads/default.aspx
     
    2. Create a new CS site from scratch. And integrate Cute Chat with it.
     
    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

  •  08-04-2006, 4:04 PM 21555 in reply to 21549

    Re: "Operation could destabilize the runtime".. Medium Trust?

    This is with 3.1
     
    I hadn't even uploaded 3.0 to remote.. only 3.1 CuteSoft folder, dll/licenses, and global.asax.
     
    I'll recheck everything, again..
  •  08-04-2006, 4:30 PM 21558 in reply to 21555

    Re: "Operation could destabilize the runtime".. Medium Trust?

    Okay.. I did a fresh CS install, localhost..
     
    applied "Cute Chat and Web Messenger for Community Server 2.x" download goodies.. ran the sql script- successfully..
     
    and I cannot run it in Medium Trust.  Same errors as before.
     
    I wonder, this Demo has the messenger and live support included.. which is different from the purchase download?  Could that be why you guys aren't duplicating it?
     
    Actually, I only wish to test/purchase the chat .. can I download a chat demo without the live support/messenger?
     
    Thanks.. David
  •  08-04-2006, 5:22 PM 21562 in reply to 21558

    Re: "Operation could destabilize the runtime".. Medium Trust?

    David,
     
    I am working on the medium trust issue right now. Hope I can find the solution in the weekend.
     
    >>I wonder, this Demo has the messenger and live support included.. which is different from the purchase download?
     
    Both CuteChat, Web Messenger and Live Support share the same CuteSoft.Chat.dll and CuteSoft_clients/CuteChat client files.
     
    If you need chat only, just delete web messenger and live support license file.
     
     
     
     

    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-04-2006, 9:18 PM 21565 in reply to 21562

    Re: "Operation could destabilize the runtime".. Medium Trust?

  •  08-04-2006, 10:50 PM 21566 in reply to 21565

    Re: "Operation could destabilize the runtime".. Medium Trust?

    So far so good.. it seems to be working.  On local, with "Medium Trust" in web.config
     
    Will try remote and report back.
     
    Thanks! 
     
    (will my trial licenses continue to work on remote with this dll ? .. guess i'll find out )
Page 1 of 3 (41 items)   1 2 3 Next >
View as RSS news feed in XML