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

  •  08-03-2006, 3:35 PM

    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>
View Complete Thread