running in partial trust

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
5/25/2012 10:40:51 AM
Gravatar
Total Posts 16

running in partial trust

This is my system:

Informazioni di sistema

mojoPortal Versione 2.3.5.4 MSSQL
Sistema Operativo Microsoft Windows NT 5.2.3790 Service Pack 2
Versione ASP.NET v2.0.50727 Esecuzione in 'Partial Trust'
Fuso Orario Server: W. Europe Daylight Time
Ora locale del Server (GMT 2) 25/05/2012 17.37.57
Ora corrente a Greenwich (GMT o UTC): 25/05/2012 15.37.57

Versioni Funzionalita' Aiuto

Funzionalita' Versione Schema blog 0.0.1.9 contactform 0.0.0.5 eventcalendar 0.0.0.5 feed-manager 0.0.0.9 forums 0.0.1.7 imagegallery 0.0.0.7 linksmodule 0.0.0.7 pollfeature-byChristianFredh 0.0.0.5 sharedfiles 0.0.0.9 surveyfeature 0.0.1.7 webstore 0.0.6.9

when I try to send a picture

[SecurityException: Richiesta di autorizzazione di tipo 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' non soddisfatta.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +58
   System.IO.Path.GetTempPath() +54
   Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.GetDefaultTempDirectory() +326
   Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.GetTempDirectory(NameValueCollection attrs) +631
   Brettle.Web.NeatUpload.FilesystemUploadedFile.Initialize(FilesystemUploadStorageProvider provider, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig) +77
   Brettle.Web.NeatUpload.FilesystemUploadedFile..ctor(FilesystemUploadStorageProvider provider, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig) +69
   Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.CreateUploadedFile(UploadContext context, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig) +68
   Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.CreateUploadedFile(UploadContext context, String controlUniqueID, String fileName, String contentType) +53
   Brettle.Web.NeatUpload.UploadStorage.CreateUploadedFile(UploadContext context, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig) +128
   Brettle.Web.NeatUpload.UploadStorage.ConvertToUploadedFile(String controlUniqueID, HttpPostedFile file) +462
   Brettle.Web.NeatUpload.UploadModule.ConvertToUploadedFile(String controlUniqueID, HttpPostedFile file) +138
   Brettle.Web.NeatUpload.FileControl.InitializeFiles() +623
   Brettle.Web.NeatUpload.FileControl.get_Files() +37
   Brettle.Web.NeatUpload.FileControl.OnUnload(EventArgs e) +56
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +252
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +188
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +188
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +188
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +188
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +188
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +188
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +188
   System.Web.UI.Page.UnloadRecursive(Boolean dispose) +23
   System.Web.UI.Page.ProcessRequestCleanup() +43
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.imagegallery_editimage_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 

it off?

thanks Fabio :-)

5/25/2012 10:52:24 AM
Gravatar
Total Posts 18439

Re: running in partial trust

Hi,

The problem is that NeatUpload does not work in Medium Trust hosting, so you need to comment out every place in Web.config that references NeatUpload. Be careful, if you make any typos or mistakes editing web.config it will cause other errors.

That is a very old version of mojoPortal.

Hope that helps,

Joe

5/25/2012 11:48:58 AM
Gravatar
Total Posts 16

Re: running in partial trust

"so you need to comment out every place in Web.config that references NeatUpload" 

this is my webconfig:

"<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <configSections>
    <!-- Comment this out in Medium Trust
    <section name="neatUpload" type="Brettle.Web.NeatUpload.ConfigSectionHandler, Brettle.Web.NeatUpload" allowLocation="true" />
    -->
    <!-- 3.5 .NET -->
    <sectionGroup name="system.web"></sectionGroup>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
   
  </configSections>

  <!-- application specific settings -->"
Where should I fix for example?

5/25/2012 12:09:28 PM
Gravatar
Total Posts 16

Re: running in partial trust

this is my webconfig:

"<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <configSections>
    <!-- Comment this out in Medium Trust
    <section name="neatUpload" type="Brettle.Web.NeatUpload.ConfigSectionHandler, Brettle.Web.NeatUpload" allowLocation="true" />
    -->
    <!-- 3.5 .NET -->
    <sectionGroup name="system.web"></sectionGroup>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
   
  </configSections>

  <!-- application specific settings -->

  <!--
  More information about config settings here: http://www.mojoportal.com/webconfig.aspx
  Ideally, any settings from the appSettings section that you customise should go into user.config
  if you create a user.config file and put it in the root
of the web, you can put custom app settings like connections strings there
and they won't be overwritten by updating from the repository or by upgrades. user.config is not under source control
there is a sample user.config.sample you can use as a basis but don't raname this file,
create your own
user.config and copy from the sample
 
settings in user.config will take precedence over settings in web.config
but changes to user.config will not be detected automatically or cause app to restart
so if you make a change there, enter a space in web.config and save to make it pickup
your change in user.config
  -->
  <appSettings file="user.config">
    <!-- after initial installation its a good idea to set this to true. If you sign in as admin before doing upgrades you can leave this as false.-->
    <add key="DisableSetup" value="false" />
    <add key="ShowConnectionErrorOnSetup" value="true" />

    <add key="AlwaysUrlEncode" value="false" />
    <!-- <add key="UseClosestAsciiCharsForUrls" value="true" /> can help for languages that use similar alphabets to English -->
    <add key="UseClosestAsciiCharsForUrls" value="false" />

    <!-- ******* Database Settings *********************************** -->
    <!-- Note that each db platform  has its own connection string, but the database used depends on which data dlls are in the bin folder
          it is not determined by configuration settings.
    -->

    <!-- MS SQL Database Settings *************************************** -->
<add key="MSSQLConnectionString" value="server=;UID=MSSql64001;PWD=b592b82f;database=MSSql64001;" />

    <!--
  For using MS SQL set this to true for best performance but if running the web on mono you may need to set this to false. -->
    <add key="CacheMSSQLParameters" value="true" />
    <!-- do not change this unless you understand the workings of the code
     and have a reason to change it. -->
    <add key="MSSQLOwnerPrefix" value="[MSSql64001]." />
    <!-- end MS SQL Database Settings *************************************** -->

    <add key="PostgreSQLConnectionString" value="Server=localhost;Port=5432;Encoding=unicode;User Id=mojouser;Password=mojo123;Database=mojoportal;Pooling=false;CommandTimeout=120;" />
    <add key="MySqlConnectionString" value="Data Source=localhost;Database=mojoportal;User ID=mojouser;Password=mojo123;Charset=utf8;" />
    <add key="FirebirdConnectionString" value="Data Source=localhost;Server Type=0;Port Number=3050;Database=C:\Users\JoeAudette\devprojects\mojoportal\mojoportal.fdb;Dialect=3;Charset=UTF8;Pooling=True;Min Pool Size=0;Max Pool Size=200;Connection Timeout=10;Connection Lifetime=60;Fetch Size=200;User Id=SYSDBA;Password=masterkey" />
    <add key="SqliteConnectionString" value="defaultdblocation" />
    <!--
   you can use a fully qualified file path as shown below
   or if you are using the default db at /Data/sqlitedb/mojo.db.config
   just leave this set to "defaultdblocation"
  <add key="SqliteConnectionString" value="version=3,URI=file:C:\\Projects\mojoportal\Web\Data\sqlitedb\mojoportal.db" />
  -->
    <!-- ******* End Database Settings *********************************** -->

    <!-- ******* global security settings -->
    <add key="EnableOpenIDAuthentication" value="true" />
    <!-- these settings can override sitesettings -->
    <add key="UseOpenIdRpxSettingsFromWebConfig" value="false" />
    <add key="OpenIdRpxApiKey" value="" />
    <add key="OpenIdRpxApplicationName" value="" />
    <add key="OpenIdRpxUseMappings" value="true" />
    <!--
    this file contains the RSA key used for our CryptoHelper
    for best security you should generate your own RSA key in a different file
    and then set the path to the file here
    you should do this before encrypting any data because if you change the key you won't be able to decrypt
    anything that was encrypted with the prvious key
    -->
    <add key="mojoCryptoHelperKeyFile" value="~/mojoEncryption.config"/>

    <!--
    if true then when using email for sign in, on the registration page new users don't have to choose a username
    less form fields to fill out may be more user friendly
    -->
    <add key="AutoGenerateAndHideUserNamesWhenUsingEmailForLogin" value="false" />
    <!-- you can specify a regular expression to constrain what characters may be used for the User ID
    which is also used for the Display Name when a user registers. If you leave it balnk no validation will occur.
    If you wanted to limit it to alpha numerci characters and underscore you could use an expression like ^[a-zA-Z0-9_]{5,20}$
    this requires a user id with minumum length 5 and max length 20 that can only use alpha numerci characters and underscore.
    Make sure you do not enter an invalid regular expression or it can cause an error. Also make sure the UserNameValidationWarning has
    a message that can help the user correct the problemif they enter something invalid.
    -->
    <add key="UserNameValidationExpression" value="" />
    <add key="UserNameValidationWarning" value="User ID must use only alpha numeric characters and underscores" />
    <add key="EnableWindowsLiveAuthentication" value="true" />
    <add key="GloballyDisableMemberUseOfWindowsLiveMessenger" value="false" />

    <add key="AllowPersistentLoginCookie" value="true" />
    <add key="AllowPasswordFormatChange" value="true" />
    <add key="SSLIsAvailable" value="false" />
    <add key="MaskPasswordsInUserAdmin" value="true" />
    <!-- these characters will be used when generating random passwords -->
    <add key="PasswordGeneratorChars" value="abcdefgijkmnopqrstwxyzABCDEFGHJKLMNPQRSTWXYZ23456789*$"/>
   
    <!-- Default to All Users role, i.e public pages by default -->
    <add key="DefaultPageRoles" value="All Users;" />
    <add key="AllowUserProfilePage" value="true" />
    <add key="AllowUserThreadBrowsing" value="true" />
    <add key="NotifyAdminsOnNewUserRegistration" value="false" />
    <add key="EnforceContentVersioningGlobally" value="false" />
    <add key="HideModuleSettingsGeneralAndSecurityTabsFromNonAdmins" value="false" />

    <!-- a comma separated list of email addresses to exclude when sending
    administrative emails including registration notifications and content workflow submissions
    this is for when you have admin user accounts that you do not want to receive these emails
    -->
    <add key="EmailAddressesToExcludeFromAdminNotifications" value="" />
    <add key="DisableWorkflowNotification" value="false" />
   
    <add key="EnableLogViewer" value="true" />
   
    <add key="ShowForumPostsInMemberList" value="true" />
    <!-- this should generally be false on public sites but on an intranet you may wish to show the user email -->
    <add key="ShowEmailInMemberList" value="false" />
    <add key="ShowLoginNameInMemberList" value="false" />
    <add key="ShowUserIDInMemberList" value="false" />

    <add key="DisableFileManager" value="false" />
    <add key="AllowFileManagerInChildSites" value="true" />
   
    <add key="AllowedMediaFileExtensions" value=".flv|.swf|.wmv|.mp3|.mp4|.asf|.asx|.avi|.mov|.mpeg|.mpg" />
    <add key="AllowedUploadFileExtensions" value=".gif|.jpg|.jpeg|.png|.flv|.swf|.wmv|.mp3|.mp4|.tif|.asf|.asx|.avi|.mov|.mpeg|.mpg|.zip|.pdf|.doc|.docx|.xls|.xlsx|.ppt|.pptx|.csv|.txt" />
    <add key="ForceLowerCaseForFolderCreation" value="true" />
    <add key="ForceLowerCaseForUploadedFiles" value="true" />
    <add key="ResizeImageDefaultMaxWidth" value="550" />
    <add key="ResizeImageDefaultMaxHeight" value="550" />
    <add key="AllowAdminsToUseDataFolder" value="false" />
    <add key="ForceAdminsToUseMediaFolder" value="false" />
    <add key="UserFolderDiskQuotaInMegaBytes" value="300" />
    <add key="MediaFolderDiskQuotaInMegaBytes" value="6000" />
    <add key="AdminDiskQuotaInMegaBytes" value="12000" />
    <add key="UserFolderMaxSizePerFileInMegaBytes" value="10" />
    <add key="MediaFolderMaxSizePerFileInMegaBytes" value="30" />
    <add key="AdminMaxSizePerFileInMegaBytes" value="2000" />
    <add key="UserFolderMaxNumberOfFiles" value="1000" />
    <add key="MediaFolderMaxNumberOfFiles" value="10000" />
    <add key="AdminMaxNumberOfFiles" value="100000" />
    <add key="UserFolderMaxNumberOfFolders" value="50" />
    <add key="MediaFolderMaxNumberOfFolders" value="500" />
    <add key="AdminMaxNumberOfFolders" value="1000" />
    <!-- if a user is in a role that allows both uploading and deleting then they will have access to the main file manager
    in some cases you may want to allow users who can only upload to user specific folders to delete files from the editor file browser
    without giving them access to the general File Manager, to do that you could set this to true
    -->
    <add key="AllowDeletingFilesFromUserFolderWithoutDeleteRole" value="false" />

    <!--
    <add key="ImageGalleryUseMediaFolder" value="false" />
    this is false for backward compatibility with existing galleries located at
    /Data/Sites/[SiteID]/GalleryImages
    the preferred setting for new installations is true and this stores the images under
    /Data/Sites/[SiteID]/media/GalleryImages which is better for making the images available for borwsing in the editor
    you can change this to true in user.config and copy files from the old location to make an existing site use the new preferred location
    -->
    <add key="ImageGalleryUseMediaFolder" value="false" />

    <add key="EnableDeveloperMenuInAdminMenu" value="false" />
    <add key="EnableQueryTool" value="false" />
   
    <!-- you should not change this unless you implemented your own custom login page -->
    <add key="LoginPageRelativeUrl" value="/Secure/Login.aspx" />
    <!--
    Set Enable ForceSingleSessionPerUser to true only if it is a security requirement of your app to prevent
    a user having multiple browser sessions with the same user.
    This uses session variables and therefore uses more server memory so it is disabled by default.
    -->
    <add key="ForceSingleSessionPerUser" value="false" />
    <!--
    Generally you should leave this blank and let mojoportal handle the redirecting after a user signs in.
    However if you want to force redirecting to some specific page you can force it with this setting:
    <add key="PageToRedirectToAfterSignIn" value="/yourcustompage.aspx" />
    Warning! Do not use this in a multi site installation. This is a global setting and will affect all sites.
    -->
    <add key="PageToRedirectToAfterSignIn" value="" />
    <!--
    Generally you should leave this blank and let mojoportal handle the redirecting after a user registers.
    However if you want to force redirecting to some specific page you can force it with this setting:
    <add key="PageToRedirectToAfterRegistration" value="/yourcustompage.aspx" />
    Warning! Do not use this in a multi site installation. This is a global setting and will affect all sites.
    -->
    <add key="PageToRedirectToAfterRegistration" value="" />
    <!--
    if set to true query parser errors in the search engine will trigger banning of ip
    address of the host causing the error. These are usually spambots posting a lot of
    garbage into the search form, only real concern
    about setting this to true is if the spambots are spoofing ip addresses then we are
    banning the wrong address.
    -->
    <add key="AutoBanSpambotsOnSearchErrors" value="false" />
   

    <add key="DisableSearchIndex" value="false" />
    <!-- if there are any searchable fetures installed that you don't want to appear in the filter list you can
    enter comma separated featureGuids here.
    -->
    <add key="SearchableFeatureGuidsToExclude" value="" />
    <!-- these next 3 settings have defaults that are backward compatible so the search will still work correctly on
    upgraded sites
    <add key="EnableSearchResultsHighlighting" value="false" />
    <add key="DisableSearchFeatureFilters" value="true" />
    <add key="SearchUseBackwardCompatibilityMode" value="true" />
   
    for new installations or if you rebuild the search index, then you can change to these settings:
    <add key="EnableSearchResultsHighlighting" value="true" />
    <add key="DisableSearchFeatureFilters" value="false" />
    <add key="SearchUseBackwardCompatibilityMode" value="false" />
   
    keep in mind that if you EnableSearchResultsHighlighting, then it stores a copy of all content in the search index
    which makes it much larger on disk but is the only way to be able to supp0ort results highlighting
   
    -->
    <add key="EnableSearchResultsHighlighting" value="false" />
    <add key="DisableSearchFeatureFilters" value="true" />
    <add key="SearchUseBackwardCompatibilityMode" value="true" />
    <add key="SearchResultsFragmentSize" value="300" />
    <add key="ShowRebuildSearchIndexButtonToAdmins" value="false" />
    <add key="ShowModuleTitleInSearchResultLink" value="false" />
   
    <!-- DisableTaskQueue - if you are running multiple sites from different physical installations but using the same database
    it can cause problems because each installation is trying to process the task queue.
    In this case you should disable it in all except 1 of the installations.
    -->
    <add key="DisableTaskQueue" value="false" />
    <!--
    You can change this setting to customize the message body for the password recovery email.
    <add key="PasswordRecoveryEmailTemplateFileNamePattern" value="PasswordEmailMessage.config" />
    Your actual file must exist in the /Data/MessageTemplates folder and the actual file must
    be named with the default culture as a prefix to this setting. So for the default setting
    PasswordEmailMessage.config, the actual file name will be en-US-PasswordEmailMessage.config
    if the default cutlure is en-US
    Whenever you upgrade mojoportal this file will be overwritten so if you customize it, you should
    use a custom file name. So for example you could set the setting like this:
    <add key="PasswordRecoveryEmailTemplateFileNamePattern" value="MyCustomPasswordEmailMessage.config" />
    and the actual file name would be en-US-MyCustomPasswordEmailMessage.config, assuming you are using
    en-US for the default site culture.
  
    -->
    <add key="PasswordRecoveryEmailTemplateFileNamePattern" value="PasswordEmailMessage.config" />
    <!--
   If true will update user lastactivity time at the end of each authenticated request.
   The default is true, but if you are seeking max performance you can disable it.
  -->
    <add key="TrackAuthenticatedRequests" value="true" />
    <add key="TrackIPForAuthenticatedRequests" value="false" />
    <!-- silverlight settings
    SilverlightClientKey is a token used to identify the silverlight app to the server, for logging and other purposes.
    We don't want other people's copy of the app to be able to log to our server.
    Best to generate your own new guid and put it in user.config
    -->
    <add key="SilverlightClientKey" value="7863555f-18a2-49a9-be62-464367010895" />
    <add key="UseNeatHtmlForXSSPrevention" value="true" />
    <add key="UseClientSideNeatHtml" value="true" />

    <!-- ******* end global security settings -->

    <!-- ******* multi site installation settings -->
    <add key="AllowMultipleSites" value="true" />
    <add key="AllowDeletingChildSites" value="false" />
    <add key="DeleteSiteFolderWhenDeletingSites" value="false" />
    <!--     
    UseRelatedSiteMode means all sites in a multi site installation use the same users
    all users must have a site id so in this mode we use the same site id for all users
    -->
    <add key="UseRelatedSiteMode" value="false" />
    <add key="RelatedSiteID" value="1" />
    <add key="RelatedSiteModeHideRoleManagerInChildSites" value="true" />
    <add key="AllowPasswordFormatChangeInChildSites" value="false" />
    <add key="ShowSystemInformationInChildSiteAdminMenu" value="true" />
    <add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="false" />
    <add key="DisallowedVirtualFolderNames" value="Admin;ClientScript;Controls;Data;FCKeditor;Modules;NeatHtml;NeatUpload;Secure;Services;Setup;SiteOffice;WebStore" />
    <add key="EnableSSLInChildSites" value="false" />
    <!--  
    if you want to have different smtp settings per site, set EnableSiteSettingsSmtpSettings to true
    and smtp settings will appear in SiteSettings. otherwise use the smtp settings below
    -->
    <add key="EnableSiteSettingsSmtpSettings" value="false" />
    <add key="MaskSmtpPasswordInSiteSettings" value="true" />
    <add key="ShowSmtpEncodingOption" value="false" />


    <!-- ******* end multi site installation settings -->

    <!-- ******* email settings
    Note you also need to specify smtp settings further below in system.net section the settings here appply to features but
    the settings in the system.net.mailsettigns section are used by site registration and password recovery -->

    <add key="DisableDotNetOpenMail" value="true" />
    <add key="SMTPServer" value="localhost" />
    <add key="SMTPRequiresAuthentication" value="false" />
    <add key="SMTPUseSsl" value="false" />
    <add key="SMTPPort" value="25" />
    <add key="SMTPUser" value="UserName" />
    <add key="SMTPPassword" value="UPassword" />
    <add key="SMTPTimeoutInMilliseconds" value="30000" />
    <!-- leave this blank for ascii encoding -->
    <add key="SmtpPreferredEncoding" value="" />
    <!-- example for Russian encoding
    <add key="SmtpPreferredEncoding" value="koi8-r" />
    -->

    <!-- ******* end email settings -->


    <!-- ******* general global settings -->

    <add key="RunningInMediumTrust" value="false" />
    <!-- Clock Hours = 12 or 24 affects only the jsCalendar DatePicker -->
    <add key="ClockHours" value="12" />
    <!-- this should be the preferred timezone offset to display for unauthenticated users -->
    <add key="PreferredGreenwichMeantimeOffset" value="-5.00" />
    <!-- this setting allows you to force specific cultures for specific sites
     I recommend that you don't do this unless you have a specific reason to.
   You would also need to know the siteid of each site and specify it here like this:
    <add key="site1culture" value="en-US" />
    <add key="site2culture" value="nl-NL" />
     -->
    <add key="UseCultureOverride" value="false" />
    <add key="UseCustomHandlingForPersianCulture" value="false"/>
    <add key="DefaultCountry" value="US"/>
    <add key="EnableNewsletter" value="true" />
    <!-- if true shows a button instead of immediately opting out when the user clics the unsubscribe link in newsletter -->
    <add key="PromptBeforeUnsubscribeNewsletter" value="false" />

    <!-- if you don't have the forum installed you can/should set this to false -->
    <add key="ShowForumUnsubscribeLinkInUserManagement" value="true" />

    <add key="MemberListPageSize" value="15" />
    <add key="SearchResultsPageSize" value="10" />
    <add key="FolderGalleryPreviewWidth" value="500" />
    <!-- only named colors like White, Black, Blue etc can be used here -->
    <add key="FolderGalleryImageBackColor" value="Black" />
    <add key="FolderGalleryImageBorderColor" value="Black" />
   
    <add key="UseSiteNameForRootBreadcrumb" value="false" />

    <add key="HideMenusOnLoginPage" value="true" />
    <add key="HideMenusOnRegisterPage" value="true" />
    <add key="HideMenusOnPasswordRecoveryPage" value="true" />
    <add key="HideMenusOnChangePasswordPage" value="true" />
    <add key="HideAllMenusOnProfilePage" value="false" />
    <add key="HidePageMenuOnProfilePage" value="true" />
    <add key="HideAllMenusOnMyPage" value="false" />
    <add key="HideMenusOnSiteMap" value="true" />
    <add key="HidePageMenusOnSiteMap" value="true" />
   

    <!-- format for page titles, valid options: TitleOnly, SitePlusTitle, TitlePlusSite  -->
    <add key="PageTitleFormatName" value="TitlePlusSite" />
    <add key="PageTitleSeparatorString" value=" - " />
    <add key="ModuleTitleTag" value="h2" />

    <!-- showing css validation link makes people think there are important errors
    because we use some vendor specific and some CSS 3 (which is not yet finalized but is supported to extent in browsers) -->
    <add key="DisableCssValidatorLink" value="false" />
    <add key="DisableHtmlValidatorLink" value="false" />

    <!--
    If you route/rewrite requests for robots.txt to robots.ashx, then you can have a different robots file for ssl
    by default it wil block indexing of all secure pages assuming it is respected by the crawler and the crawler
    actually requests robots.txt for https separately from http
    -->
    <add key="RobotsConfigFile" value="~/robots.config" />
    <add key="RobotsSslConfigFile" value="~/robots.ssl.config" />


    <!-- 
    Set AutoSetContentType to false if you would rather add the meta ContentType yourself in layout.master file of your skin
    if true the MetaContentControl will render it according to the ContentMimeType and ContentEncoding settings
    Changed the default from application/xhtml+xml to text/html as of mojoportal version 2.3.1.3 Html 5 now seems the future rather than Xhtml
    -->
    <add key="AutoSetContentType" value="true" />
    <add key="ContentMimeType" value="text/html" />
    <add key="ContentEncoding" value="utf-8" />

    <!-- if you would like to append the date to your blog post urls in format yyyy-mm-dd
    set this to true. This can also be useful if you are hsoting alot of blogs because it can help
    avoid url collisions if more than one blog uses the same post title (unless they post it on the same day too)
    -->
    <add key="AppendDateToBlogUrls" value="false" />


    <!--
    if enabled supporting ecommerce features (like WebStore and Event Calendar Pro) may display a button that allows
    rebuilding the data in the mp_CommerceReport table for the given module instance.
    it will only be visible to admin users.
    Generally this table should stay in sync and not need rebuilding.
    This table also provides the data for the user order history in MyAccount, so use this button judiciously.
    If data is not correctly rebuilt the user may no longer be able to download or see purchase history.
    The main reason for the existence of the button at all is for upgrading from previous versions when you already have order history
    that occurred before the mp_CommerceReport feature was added to mojoportal core.
    -->
    <add key="ShowRebuildReportsButton" value="false" />


    <!--
    if set to true, users in the siteSettings.CommerceReportRoles will be able to see user revenue total in forums
    next to a user's posts
    -->
    <add key="ShowRevenueInForums" value="false" />

    <!--
    woopra has to approve your account before you should add the woopra code to the page
    you can enable woopra in site settings. enabling it here supercedes the site settings setting
    -->
    <add key="EnableWoopraGlobally" value="false" />
    <add key="DisableWoopraGlobally" value="false" />

    <!--
    Setting these to true will make it possible to edit additional meta and pageencoding.
    WARNING
    I recommend you leave this hidden and do not change these settings.
    If a user enters something wrong in these settings it can
    break the site and the only way to fix it will be removing the bad data directly from the db.
    Also I don't recommend changing the page encoding from what have as the default.
    If you do change it then you may experience skinning problems or
    javascript problems or captchas not working.
    -->
    <add key="ShowAdditionalMeta" value="false" />
    <add key="ShowPageEncoding" value="false" />

    <!-- Gravatars
    http://www.gravatar.com/ is a service that allows users to have the same Avatar across different sites.
    I implemented support for this in mojoPortal 2008-08-13
    I added this setting as a kill switch so that Gravatars can be disabled installation wide
    in case there is ever a security or performance problem due to using this external service.
    I don't expect any problems but just in case you can disable it here.
    RatingType { G, PG, R, X } determine what rating is acceptable. Users rate their Avatars like movies.
    -->
    <add key="GravatarMaxAllowedRating" value="G" />

    <add key="AvatarsCanOnlyBeUploadedByAdmin" value="false" />
    <add key="ForceSquareAvatars" value="true" />
    <add key="AvatarMaxWidth" value="90" />
    <add key="AvatarMaxHeight" value="90" />
    <!--
    original images uploaded for avatars
    larger than the maxoriginal settings will be resized even before cropping to avoid mega large images being stored
    -->
    <add key="AvatarMaxOriginalWidth" value="800" />
    <add key="AvatarMaxOriginalHeight" value="800" />
  
    <add key="DefaultBlogPageSize" value="10" />
    <add key="DefaultInitialSkin" value="styleshout-refresh" />
    <add key="UseGreyBoxProgressForNeatUpload" value="false" />

    <!---
    You can oveeride the configuration of Vertigo Silverlight slideshow, used in the Image Gallery and Flikr module
    by specifying the name of a config file that exists in the /ClientBin folder, we have an example file there.
    <add key="VertigoSlideShowOverrideXmlConfigFile" value="VertigoConfiguration.xml"/>
    note that if you do override it here it is global and this trumps the theme setting which would normally control the configuration
    leave this blank to be able to use one of the 3 pre-existing themes.
    -->
    <add key="VertigoSlideShowOverrideXmlConfigFile" value=""/>

    <!--
    <add key="mojoProfileConfigFileName" value="mojoProfile.config" />
        
    This file needs tobe in the root of the web folder, but you can use an
    alternate file with your own profile options or edit the mojoProfile.config file
   to use your own custom options. See http://www.mojoportal.com/userprofileconfiguration.aspx
        
   There is also a setting below in the system.web section for
   <mojoProfile configSource="mojoProfile.config"></mojoProfile>
   if you set that to the same value as the setting immediately below
   then the web application will recycle automatically if you edit the
   specified file. This will ensure your customizations are used right away.
     
      for multi site installations if you need different profile customizations per site.
      create settings like this:
     
      <add key="mojoProfileConfigFileName-2" value="mojoProfile2.config"/>
      where the -2 means for siteid 2, put the site id of the one you want to customize
      you can create settngs for each site
     
    -->
    <add key="mojoProfileConfigFileName" value="mojoProfile.config" />
    <!--
    In general practice english letters are used for urls
   and domain names must be in english letters.
   For cultures that do no use english letters you
   may wish to disable the friendly url autosuggestion
   feature by setting this variable to false.
    -->
    <add key="AutoSuggestFriendlyUrls" value="true" />
    <add key="ForceFriendlyUrlsToLowerCase" value="true" />

    <add key="RedirectHomeFromSetupPagesWhenSystemIsUpToDate" value="true" />

    <!-- When page level skinning is enabled, if this is true, then pages created
     beneath a page that has a specific skin assigned
     will use the same skin by default
     -->
    <add key="AssignNewPagesParentPageSkinByDefault" value="true" />

    <!--
   Disabling viewstate at the page level can reduce the size of the page
   which improves performance. Modules that do postback usually need
   ViewState Enabled so in the Page_Load event of modules that postback
   I add a line of code like this
   Page.EnableViewState = true;
   This works fine for all the built in modules but I've had at least one
   developer tell me it did not work for his custom modules so I added this
   setting here which you can set to false if you find it breaks any functionality
   in your custom modules. If it doesn't break anything I recommend leaving this
   set to true
  -->
    <add key="DisablePageViewStateByDefault" value="true" />
    <add key="DisableHelpSystem" value="false" />

    <!--
   AllowChangingFriendlyUrlPattern should almost always be false
   which means friendly urls will end with .aspx which is required in
   most configuration under IIS 6. The only time this would ever be changed to true is
      when using IIS 7.x with integrated pipeline mode http://www.mojoportal.com/extensionless-urls.aspx
   or when running on Mono if Mono is set to handle all requests then page names don't
   have to end with .aspx
  -->
    <add key="AllowChangingFriendlyUrlPattern" value="false" />
    <add key="RSSCSS" value="/Data/style/rss1.css" />
    <add key="RSSXsl" value="/Data/xsl/rss1.xsl" />

    <!-- leave this true as we really don't have moderation implemented yet -->
    <add key="PostsApprovedByDefault" value="True" />
    <add key="UseUrlReWriting" value="true" />
    <add key="UseShortcutKeys" value="false" />
    <add key="UseIconsForAdminLinks" value="true" />
    <add key="UsePageImagesInSiteMap" value="false" />
    <add key="UseTextLinksForFeatureSettings" value="true" />
   
    <add key="NumberOfWebPartsToShowInMiniCatalog" value="15" />
    <add key ="AssembliesNotSearchedForWebParts" value="AjaxControlToolkit.dll Argotic.Common.dll Argotic.Core.dll Argotic.Extensions.dll Blacklight.Silverlight.Controls.dll Brettle.Web.NeatHtml.dll Brettle.Web.NeatHtmlTools.dll Brettle.Web.NeatUpload.dll Brettle.Web.NeatUpload.GreyBoxProgressBar.dll CookComputing.XmlRpcV2.dll CSSFriendly.dll DayPilot.dll DotNetOpenAuth.dll DotNetOpenMail.dll GCheckout.dll Jayrock.dll Jayrock.Json.dll log4net.dll Lucene.Net.dll MetaDataExtractor.dll Microsoft.Web.Preview.dll mojoPortal.Business.dll mojoPortal.Business.WebHelpers.dll mojoPortal.Data.dll mojoPortal.Net.dll mojoPortal.Web.Controls.dll mojoPortal.Web.dll mojoPortal.Web.Editor.dll mojoPortal.Web.Framework.dll MySql.Data.dll Newtonsoft.Json.dll Novell.Directory.Ldap.dll OpenPOP.dll Org.Mentalis.Security.dll mojoPortal.Features.Business.dll mojoPortal.Features.Data.dll mojoPortal.Features.UI.dll Recaptcha.dll RSS.NET.dll SharpMimeTools.dll SiteOffice.Business.dll SiteOffice.Data.dll SiteOffice.ExternalMail.dll SiteOffice.UI.dll sqlite3.dll Subkismet.dll System.Web.Extensions.dll WebStore.Business.dll WebStore.Data.dll WebStore.UI.dll FirebirdSql.Data.FirebirdClient.dll Mono.Data.Sqlite.dll Mono.Security.dll Npgsql.dll TimelineNet.dll ZedGraph.dll ZedGraph.Web.dll"/>
    <add key="SiteStatistics_ShowMemberStatistics_Default" value="true" />
    <add key="SiteStatistics_ShowOnlineStatistics_Default" value="true" />
    <add key="SiteStatistics_ShowOnlineMembers_Default" value="true" />
    <!--  
    if you have a low traffic site (if 20 minutes may go by between requests for pages)
    then what happens is the application pool shuts down the web application after 20 minutes
    goes by with no request for any pages.
    Then when you get a new request all the JIT compilation must happen again
    and this causes a slow response.
    You can mitigate this for a slow site by setting this to true. A background thread will be spawned that
    makes a request to the site often enough to keep the application pool from shutting down the application
    due to lack of traffic.
    For sites that are getting enough traffic its best to leave this as false.
    If using IIS 7 with Integrated Pipeline mode then you must specify the url to the root of your site in
    AppKeepAliveUrl like http://yoursiteroot/Default.aspx
    -->
    <add key="UseAppKeepAlive" value="false" />
    <add key="AppKeepAliveUrl" value="" />
    <add key="GetAlphaPagerCharsFromResourceFile" value="false" />
    <add key="AlphaPagerChars" value="ABCDEFGHIJKLMNOPQRSTUVWXYZ" />
    <add key="CombineCSS" value="true" />
    <add key="MinifyCSS" value="true" />
    <add key="CacheCssOnServer" value="true" />
    <add key="CacheCssInBrowser" value="true" />
   
    <add key="UseGoogleCDN" value="true" />
    <add key="GoogleCDNYUIVersion" value="2.6.0" />
    <add key="GoogleCDNjQueryVersion" value="1.4.2" />
    <add key="GoogleCDNjQueryUIVersion" value="1.8.5" />
    <add key="DisableASPThemes" value="false" />

    <add key="YUIDefaultSkinFolder" value="sam"/>
    <add key="YUIDefaultSkinClass" value="yui-skin-sam"/>
    <add key="DisableYUI" value="false"/>
    <add key="jQueryBasePath" value="~/ClientScript/jquery132/" />
    <add key="jQueryUIBasePath" value="~/ClientScript/jqueryui16b/" />
    <add key="SwfObjectUrl" value="~/ClientScript/SwfObject/2.2/swfobject.js" />
    <add key="jQueryUIAvailableThemes" value="base,black-tie,blitzer,cupertino,dark-hive,dot-luv,eggplant,excite-bike,flick,hot-sneaks,humanity,le-frog,mint-choc,overcast,pepper-grinder,redmond,smoothness,south-street,start,sunny,swanky-purse,trontastic,ui-darkness,ui-lightness,vader"/>
    <add key="CSSFriendly-JavaScript-Path" value="~/ClientScript/CSSFriendly" />
    <add key="FCKeditor:Debug" value="false" />
    <add key="FCKeditor:CustomConfigPath" value="~/ClientScript/mojofckconfig.js" />
    <add key="FCKeditor:StylesXmlPath" value="/Services/EditorStyles.ashx" />
    <add key="FCKeditor:BasePath" value="~/ClientScript/fckeditor266/" />
    <!-- valid options for FCKeditor:Skin are default, office2003, silver -->
    <add key="FCKeditor:Skin" value="default" />
   
    <add key="CKEditor:BasePath" value="~/ClientScript/ckeditor341/" />
    <add key="CKEditor:ConfigPath" value="~/ClientScript/ckeditor-mojoconfig.js" />
    <!-- valid options for CKeditor:Skin are kama, v2, office2003-->
    <add key="CKEditor:Skin" value="v2" />
   
    <add key="EditAreaBasePath" value="~/ClientScript/edit_area082/" />
   
    <add key="TinyMCE:BasePath" value="~/ClientScript/tiny_mce3392/" />
    <!--- valid options for the TinyMCE skin are: default, o2k7default, o2k7silver, o2k7black -->
    <add key="TinyMCE:Skin" value="default" />
    <add key="TinyMCE:ConfigFile" value="mojoTinyMCE.config" />

    <!--- valid options for the RAD Editor skin are: Default, Black, Forest, Hay, Office2007, Outlook, Simple, Sitefinity, Sunset, Telerik, Vista, Web20, WebBlue, Windows7 -->
    <add key="RadEditorSkin" value="Default"/>

    <!-- leave this blank to use the skin css in the editor which is generally the best approach
    but if you need to you can specify a different url for css to use in the editor
    -->
    <add key="EditorCssUrlOverride" value="" />


    <add key="GoogleAnalyticsMemberLabel" value="member-type" />
    <add key="GoogleAnalyticsMemberTypeAnonymous" value="anonymous" />
    <add key="GoogleAnalyticsMemberTypeAuthenticated" value="member" />
    <add key="GoogleAnalyticsMemberTypeCustomer" value="customer" />
    <add key="GoogleAnalyticsMemberTypeAdmin" value="admin" />

    <add key="mojoEditorConfigFileName" value="mojoEditor.config" />
    <add key="SiteOfficeConfigFolder" value="~/SiteOffice/Config/" />
    <add key="SetupHeaderConfigPath" value="~/Setup/SetupHeader.config" />
    <!--
   Valid values for RecatchaTheme are red, white, blackglass
     -->
    <add key="RecaptchaTheme" value="white" />
    <!--  
  2007-12-04 this is global so it doesn't work for multi site installations of mojoPortal.
  On my to do list is to add a site setting for this so it can be used in multi site installations easily.
  If you want to be able to use google maps in your site uing the LocationMap control, you need to get
  a google maps api key for your site from here:
  http://code.google.com/apis/maps/signup.html
  
  -->
    <add key="GoogleMapsAPIKey" value="" />

    <!-- ******* end general global settings -->

    <!-- ******* Begin WebStore Settings
     Settings are site specific and prefixed per site with 'Site' + SiteID.ToString() + '-' ie Site1-, Site2-, Site3-
    -->

    <!-- set to false for production use -->
    <add key="Site1-PaymentGatewayUseTestMode" value="false" />
    <!-- options: Authorize.NET, PlugNPay, PayPalDirect, PayPalStandard, GoogleCheckout-->
    <add key="Site1-PrimaryPaymentGateway" value="" />
    <add key="Site1-PayPalUsePayPalStandard" value="true" />
    <!-- sandbox -->
    <add key="Site1-AuthorizeNetSandboxAPILogin" value="" />
    <add key="Site1-AuthorizeNetSandboxAPITransactionKey" value="" />
    <add key="Site1-PlugNPaySandboxAPIPublisherName" value="" />
    <add key="Site1-PlugNPaySandboxAPIPublisherPassword" value="" />
    <add key="Site1-PayPalSandboxAPIUsername" value="" />
    <add key="Site1-PayPalSandboxAPIPassword" value="" />
    <add key="Site1-PayPalSandboxAPISignature" value="" />
    <add key="Site1-PayPalStandardSandboxEmail" value="" />
    <add key="Site1-PayPalStandardSandboxPDTId" value="" />
    <add key="Site1-GoogleSandboxMerchantID" value="" />
    <add key="Site1-GoogleSandboxMerchantKey" value="" />
    <!-- end sandbox -->
    <!-- Production -->
    <add key="Site1-AuthorizeNetProductionAPILogin" value="" />
    <add key="Site1-AuthorizeNetProductionAPITransactionKey" value="" />
    <add key="Site1-PlugNPayProductionAPIPublisherName" value="" />
    <add key="Site1-PlugNPayProductionAPIPublisherPassword" value="" />
    <add key="Site1-PayPalProductionAPIUsername" value="" />
    <add key="Site1-PayPalProductionAPIPassword" value="" />
    <add key="Site1-PayPalProductionAPISignature" value="" />
    <add key="Site1-PayPalStandardProductionEmail" value="" />
    <add key="Site1-PayPalStandardProductionPDTId" value="" />
    <add key="Site1-GoogleProductionMerchantID" value="" />
    <add key="Site1-GoogleProductionMerchantKey" value="" />
    <!-- end production -->


    <!--
  This is temprary until I implement something better. The file must be located at
  /Data/MessageTemplates and must be prefixed with a culture like en-US- even though that part is not
  specifiied here. So even though we have entered DefaultOrderConfirmationPlainTextEmailTemplate.config, the
  actual file must be named en-US-DefaultOrderConfirmationPlainTextEmailTemplate.config where en-US is the default
  culture for the site as specified in Web.config globalization element
  -->
    <add key="Site1-ConfirmationEmailPlainTextTemplate" value="DefaultOrderConfirmationPlainTextEmailTemplate.config" />
    <add key="Site1-ConfirmationEmailSubjectTemplate" value="DefaultOrderConfirmationEmailSubjectTemplate.config" />
    <!-- these are used when the order has been receivedby PayPal or Google Checkout but paymet has not cleared yet -->
    <add key="Site1-OrderReceivedEmailPlainTextTemplate" value="DefaultOrderReceivedPlainTextEmailTemplate.config" />
    <add key="Site1-OrderReceivedEmailSubjectTemplate" value="DefaultOrderReceivedEmailSubjectTemplate.config" />

    <!-- ******* end WebStore Settings -->


    <!-- ******* general web configuration -->
    <add key="Custom404Page" value="/PageNotFound.aspx" />
    <add key="EnableGoogle404Enhancement" value="true" />
    <add key="SuppressMenuOnBuiltIn404Page" value="true" />
    <!--
   if users will be accessing your site on a port other
   than port 80
   set MapAlternatePort to true so that links will
   include the port.
   set MapAlternatePort to false if you are using a proxy server
   that doesn't add X-Forwarded-Host headers (most do).
   This setting has no effect if you are using port 80,
   the standard web port.
   this must also be true for debugging with the VS Web server
   as it uses alternate ports   
        -->
    <add key="MapAlternatePort" value="true" />
    <add key="MapAlternateSSLPort" value="true" />
    <add key="AlternateSSLPort" value="443" />
    <!-- if using a proxy and it prevents detection of ssl
        it can cause an infinite loop in the SiteUtils.ForceSSL function
        set this to true to prevent that if you encounter this problem
        -->
    <add key="ProxyPreventsSSLDetection" value="false" />
    <!--
    AllowForcingPreferredHostName, if set to true a new Site Setting appears (only in root site or IsServerAdminSite)
    for entering a preferred host name. The reason this is disabled by default and only available from within the
    server admin site is because putting an invalid host name in this site setting can make the site inaccessible
    as it will keep redirecting to an incorrect host name. So this is only for expert use, but is useful in cases where
    you may have a site that responds to multiple host names like mojoportal.org, mojoportal.com, www.mojoportal.com
    and you want to always force a specific one. For example, my ssl certificate only matches www.mojoportal.com
    so I want to force the sue of that host name by redirecting to it if a request comes in for a different host name.
    -->
    <add key="AllowForcingPreferredHostName" value="false" />
    <add key="SiteSettingsCacheDurationInSeconds" value="360" />
    <add key="MenuCacheDurationInSeconds" value="360" />
    <add key="DefaultModuleCacheDurationInSeconds" value="360" />
    <add key="WebPageInfoCacheMinutes" value="20" />

    <!-- ******* end general web configuration -->

    <!-- ******* settings you should leave alone -->
    <add key="FolderGalleryRequiredPath" value="FolderGalleries" />
    <add key="FolderGalleryCachePath" value="~/Data/systemfiles" />

    <!-- these settings may not be used in future versions -->
    <add key="EditContentImage" value="pencil.gif" />
    <add key="DeleteLinkImage" value="delete.gif" />
    <add key="EditPropertiesImage" value="edit.gif" />
    <add key="NewPageImage" value="page_add.gif" />
    <add key="CancelUploadImage" value="cancel.png" />
    <add key="RefreshImage" value="refresh.png" />
    <add key="StopRefreshImage" value="stop_refresh.png" />
    <add key="RSSImageFileName" value="xml.gif" />
    <add key="ForumThreadImage" value="thread.gif" />

    <!--
    this tells mono to leave out these files from JIT compilation
    we need this because WebParts are not implemented in Mono
    -->
    <add key="MonoAspnetBatchCompileIgnorePaths" value="~/MyPage.aspx,~/Modules/WebPartModule.ascx,~/Admin/WebPartAdmin.aspx,~/Admin/WebPartEdit.aspx,~/Admin/WebPartModuleEdit.aspx" />
    <!-- ******* end settings you should leave alone -->
  </appSettings>

 
    <system.web>
      <!--
   It is extremely important that you replace this machine key with one you generate.
  If you use encrypted passwords, don't change the machine key after that or you will not
  be able to decrypt passwords.
  To generate your own, you can use this nice online utility:
  http://www.aspnetresources.com/tools/keycreator.aspx
  or this newer one which is more up to date as of 1/4/2007:
  http://www.developmentnow.com/articles/machinekey_generator.aspx

  -->
     

     
  <machineKey
validationKey="1FD557CE8F5C052CFA38E245A0DAEAC9C5106CE4EF81B3715AFD25E28BDCCDD6EDA181C579090F30736F11A3425F2BBE06E3A7ED1C90D273CAC3D65A5E20B30D"
decryptionKey="0872573E73BFA158A52953134746C649CB64CE74DC949198C4CDD03B9A0D17F0"
validation="SHA1" decryption="AES"
/>   
     
      <xhtmlConformance mode="Strict" />
      <!--
        example culture settings
        
        af-ZA Africaans South Africa
        bg-BG Bulgarian Bulgaria - need to fix the datepicker .js file
        zh-CN Chinese China - need to fix the datepicker .js file
  zh-CHS Simplified Chinese
        cs-CZ Czech
        en-US English US
        en-GB English United Kingdom
        es-ES Spanish Spain
        es-MX Spanish Mexico
        el-GR Greek Greece
        da-DK Danish Denmark
        de-DE German Germany
        fi-FI Finnish Finland
        fr-FR French France
        fr-CA French Canada
        he-IL Hebrew Israel - need to fix the datepicker .js file
        it-IT Italian Italy
        ko-KR Korean Korea - need to fix the datepicker .js file
        nl-NL Dutch Netherlands
        nl-BG Dutch Belgium
        pt-BR Portuguese Brazil
        pl-PL Polish Poland
        sv-SE Swedish Sweden
        sv-FI Swedish Finland
        ru-RU Russian Russia
  tr-TR Turkish Turkey
  
        more complete list here
        http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx
        
  auto:en-US causes asp.net to try and find resources for the prefered language
  in the browser settings with fallback to the default culture, en-US in this example
    the default culture must not have any missing keys in the resource files
    en-US is the only language with no missing keys in the resource files so you should
    leave the default as en-US
        -->
      <globalization culture="it-IT" uiCulture="it-IT" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="iso-8859-15" />

      <siteMap configSource="mojoSiteMap.config" />
      <webParts>
        <personalization defaultProvider="mojoPersonalizationProvider">
          <providers>
            <clear />
            <add name="mojoPersonalizationProvider" type="mojoPortal.Web.mojoPersonalizationProvider" />
          </providers>
          <authorization>
            <allow roles="Admins" verbs="enterSharedScope" />
          </authorization>
        </personalization>
      </webParts>
      <membership defaultProvider="mojoMembershipProvider" userIsOnlineTimeWindow="20">
        <providers>
          <clear />
          <add name="mojoMembershipProvider" type="mojoPortal.Web.mojoMembershipProvider" />
        </providers>
      </membership>
      <roleManager enabled="true" defaultProvider="mojoRoleProvider">
        <providers>
          <clear />
          <add name="mojoRoleProvider" type="mojoPortal.Web.mojoRoleProvider" />
        </providers>
      </roleManager>
      <pages validateRequest="false" enableViewStateMac="false" viewStateEncryptionMode="Auto" maxPageStateFieldLength="100">
        <namespaces>
          <add namespace="System.Globalization" />
          <add namespace="mojoPortal.Business" />
          <add namespace="mojoPortal.Business.WebHelpers" />
          <add namespace="mojoPortal.Web" />
          <add namespace="mojoPortal.Web.Controls" />
          <add namespace="mojoPortal.Web.Framework" />
          <add namespace="mojoPortal.Web.UI" />
        </namespaces>
        <controls>
          <add tagPrefix="portal" namespace="mojoPortal.Web.UI" assembly="mojoPortal.Web" />
          <add tagPrefix="portal" namespace="mojoPortal.Web.Editor" assembly="mojoPortal.Web"/>
          <add tagPrefix="mp" namespace="mojoPortal.Web.Controls" assembly="mojoPortal.Web.Controls" />
          <add tagPrefix="mpe" namespace="mojoPortal.Web.Editor" assembly="mojoPortal.Web.Editor" />
          <add tagPrefix="ext" namespace="mojoPortal.Web.Controls.ExtJs" assembly="mojoPortal.Web.Controls" />
          <add tagPrefix="goog" namespace="mojoPortal.Web.Controls.google" assembly="mojoPortal.Web.Controls" />
          <add tagPrefix="portal" tagName="ChildPageMenu" src="~/Controls/ChildPageMenu.ascx" />
          <add tagPrefix="portal" tagName="Breadcrumbs" src="~/Controls/BreadcrumbsControl.ascx" />
          <add tagPrefix="portal" tagName="SearchInput" src="~/Controls/SearchInput.ascx" />
          <add tagPrefix="portal" tagName="SiteMenu" src="~/Controls/SiteMenu.ascx" />
          <add tagPrefix="portal" tagName="StyleSheet" src="~/Controls/StyleSheet.ascx" />
          <add tagPrefix="portal" tagName="StyleSheetCombiner" src="~/Controls/StyleSheetCombiner.ascx" />
          <add tagPrefix="portal" tagName="MetaContent" src="~/Controls/MetaContent.ascx" />
          <add tagPrefix="portal" tagName="PageMenu" src="~/Controls/PageMenu.ascx" />
          <add tagPrefix="portal" tagName="MembershipStatistics" src="~/Controls/MembershipStatisticsControl.ascx" />
          <add tagPrefix="portal" tagName="OnlineStatistics" src="~/Controls/OnlineStatisticsControl.ascx" />
          <add tagPrefix="portal" tagName="OnlineMemberList" src="~/Controls/OnlineMemberListControl.ascx" />
          <add tagPrefix="portal" tagName="ModuleWrapper" src="~/Controls/ModuleWrapper.ascx" />
          <add tagPrefix="portal" tagName="OpenIDLoginControl" src="~/Controls/OpenIDLoginControl.ascx" />
          <add tagPrefix="portal" tagName="WindowsLiveLoginControl" src="~/Controls/WindowsLiveLoginControl.ascx" />
          <add tagPrefix="portal" tagName="SubscriberPreferences" src="~/Controls/SubscriberPreferencesControl.ascx" />
          <add tagPrefix="portal" tagName="GCheckoutLogList" src="~/Controls/GCheckoutLogList.ascx" />
          <add tagPrefix="portal" tagName="OrderStatusSetting" src="~/Controls/OrderStatusSetting.ascx" />
          <add tagPrefix="portal" tagName="PaymentAcceptanceMark" src="~/Controls/PaymentAcceptanceMark.ascx" />
          <add tagPrefix="portal" tagName="SignInOrRegisterPrompt" src="~/Controls/SignInOrRegisterPrompt.ascx" />
          <add tagPrefix="portal" tagName="PageLastModified" src="~/Controls/PageLastModified.ascx" />
          <add tagPrefix="portal" tagName="mojoRating" src="~/Controls/mojoRating.ascx" />
          <add tagPrefix="portal" tagName="ColorSetting" src="~/Controls/ColorSetting.ascx" />
          <add tagPrefix="portal" tagName="GMapTypeSetting" src="~/Controls/GMapTypeSetting.ascx" />
          <add tagPrefix="portal" tagName="GMapZoomLevelSetting" src="~/Controls/GMapZoomLevelSetting.ascx" />
          <add tagPrefix="portal" tagName="Woopra" src="~/Controls/WoopraScript.ascx" />
          <add tagPrefix="portal" tagName="ImageCropper" src="~/Controls/ImageCropper.ascx" />
          <add tagPrefix="portal" tagName="Subscribe" src="~/Controls/Subscribe.ascx" />
          <add tagPrefix="portal" tagName="BingSearchControl" src="~/Controls/Microsoft/BingSearchControl.ascx"/>
          <add namespace="Brettle.Web.NeatUpload" assembly="Brettle.Web.NeatUpload" tagPrefix="NeatUpload" />
          <add namespace="Brettle.Web.NeatUpload" assembly="Brettle.Web.NeatUpload.GreyBoxProgressBar" tagPrefix="GreyBoxUpload" />
          <add namespace="Brettle.Web.NeatHtml" assembly="Brettle.Web.NeatHtml" tagPrefix="NeatHtml" />
          <add namespace="DayPilot.Web.Ui" assembly="DayPilot" tagPrefix="dp" />
          <add namespace="TimelineNet" assembly="TimelineNet" tagPrefix="tl" />
          <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit" />
          <add namespace="AjaxControlToolkit.HTMLEditor" assembly="AjaxControlToolkit" tagPrefix="HTMLEditor" />

          <add namespace="ZedGraph.Web" assembly="ZedGraph.Web" tagPrefix="zgw" />

          <!-- AJAX Extensions support -->
          <!-- 3.5 .NET -->
          <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add tagPrefix="asp" namespace="Microsoft.Web.Preview.UI" assembly="Microsoft.Web.Preview" />
          <add tagPrefix="asp" namespace="Microsoft.Web.Preview.UI.Controls" assembly="Microsoft.Web.Preview" />
          <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        </controls>
        <tagMapping>
          <!-- this tag mapping is only needed under .NET 3.5 to use the 3.5 version of the AjaxControlToolkit
        Pages using controls from AJAX Control Tookit .NET 3.5 must use the ToolkitScriptManager, rather than the ASP.NET ScriptManager.
        -->
          <add tagType="System.Web.UI.ScriptManager" mappedTagType="AjaxControlToolkit.ToolkitScriptManager" />
          <add tagType="System.Web.UI.WebControls.WebParts.WebPartManager" mappedTagType="Microsoft.Web.Preview.UI.Controls.WebParts.WebPartManager" />
          <add tagType="System.Web.UI.WebControls.WebParts.WebPartZone" mappedTagType="Microsoft.Web.Preview.UI.Controls.WebParts.WebPartZone" />
        </tagMapping>
      </pages>
      <!-- for testing purposes only
  Some hosted environments enforce Medium trust
  this setting in the machine.config will override any setting made here
   <trust level="Medium" originUrl="" />
     For server side web requests to work we need the origin url like this:
     <trust level="Medium" originUrl=".*" />
      
  -->


      <!-- Handlers for IIS 6.0 and IIS 7.0 Classic mode -->
      <httpHandlers>
        <!-- AJAX Extensions support -->
        <remove verb="*" path="*.asmx" />
        <!-- 3.5 .NET -->
        <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

        <add verb="*" path="TinyMCEHandler.ashx" type="mojoPortal.Web.Editor.TinyMceHttpHandler, mojoPortal.Web" validate="false" />
        <add verb="*" path="*CaptchaImage.ashx" type="Subkismet.Captcha.CaptchaImageHandler, Subkismet" />
        <add verb="*" path="*thumbnailservice.ashx" type="mojoPortal.Web.Controls.Album, mojoPortal.Web.Controls" />
        <add verb="*" path="*scripthandler.ashx" type="mojoPortal.Web.Framework.ScriptHandler, mojoPortal.Web.Framework" />
        <add verb="*" path="*csshandler.ashx" type="mojoPortal.Web.UI.CssHandler, mojoPortal.Web" />
        <add verb="*" path="*.mml.ashx" type="mojoPortal.Web.Services.MathMLHandler, mojoPortal.Web" />
        <add verb="GET" path="TimelineData.ashx" type="TimelineNet.TimelineAjaxHandler, TimelineNet" />
        <add verb="*" path="*metaweblogapi.ashx" type="mojoPortal.Web.Services.Metaweblog.MetaWeblogger, mojoPortal.Features.UI" />

        <!-- for use with Telerik RAD Editor
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>
      <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>
      -->

      </httpHandlers>
      <!-- Modules for IIS 6.0 and IIS 7.0 Classic mode -->
      <httpModules>
        <!-- Comment the this out if running in Medium Trust
      <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" />
      -->

        <!-- if using Medium trust and you can install NeatUpload in the GAC then un-comment this and comment out the one above -->
        <!--
   <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload, Version=1.3.3520.16252, Culture=neutral, PublicKeyToken=c95290d92c5893c8" />
   -->

        <add name="GCheckoutBasicAuthenticationModule" type="mojoPortal.Web.GCheckoutBasicAuthenticationModule, mojoPortal.Web" />
        <add name="BannedIPBlockingHttpModule" type="mojoPortal.Web.BannedIPBlockingHttpModule, mojoPortal.Web" />
        <add name="UrlRewriter" type="mojoPortal.Web.UrlRewriter, mojoPortal.Web" />
        <add name="AuthHandlerHttpModule" type="mojoPortal.Web.AuthHandlerHttpModule, mojoPortal.Web"  />
        <add name="PageNotFoundHandler" type="mojoPortal.Web.PageNotFoundHttpModule, mojoPortal.Web" />
        <!-- comment this out out if running in Medium Trust -->
        <add name="CultureHelperHttpModule" type="mojoPortal.Web.CultureHelperHttpModule, mojoPortal.Web" />

        <!-- AJAX Extensions support -->
        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        <!-- for use with Telerik RAD Editor
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
      -->

      </httpModules>

      <!-- set debugmode to false for production -->
      <compilation debug="false" defaultLanguage="C#">
        <assemblies>
          <!-- if using Medium trust install NeatUpload in the GAC and un-comment this  -->
          <!--
    <add assembly="Brettle.Web.NeatUpload, Version=1.3.3520.16252, Culture=neutral, PublicKeyToken=c95290d92c5893c8"/>
    -->
          <!-- AJAX Extensions suport -->
          <!-- comment this out for Mono -->
          <add assembly="Microsoft.Web.Preview, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

          <!-- 3.5 .NET -->
          <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

        </assemblies>

      </compilation>
      <!--mojoPortal supports either Forms authentication (Internet)
            or Windows authentication (for intranets).  Forms Authentication is
            the default.  To change to Windows authentication, comment the
            <authentication mode="Forms"> section below, and uncomment the
            <authentication mode="Windows"> section.
  
   For using Active Directory or OpenLDAP use Forms authentication
     
      <authentication mode="Forms">
      <forms
    name=".mojochangeme"
    protection="All"
    timeout="50000000"
    path="/"
   
    />
    </authentication>
   
    
    <authentication mode="Windows" />
        <authorization>
            <deny users="?" />
        </authorization>
  
     <authentication mode="Forms">
   <forms loginUrl="Secure/Login.aspx" name=".mojochangeme" protection="All" timeout="50000000" path="/" cookieless="UseCookies" />
  </authentication>
    <authorization>
      <deny users="?" />
    </authorization>
   
    
   -->


      <authentication mode="Forms">
        <forms name=".mojochangeme" protection="All" timeout="50000000" path="/" cookieless="UseCookies" />
      </authentication>
      <!--
  <identity impersonate="false" />
    -->
      <anonymousIdentification enabled="false" cookieName=".ASPXANONYMOUS" cookieTimeout="43200" cookieSlidingExpiration="true" cookieless="UseCookies" cookieProtection="All" />

      <!--  CUSTOM ERROR MESSAGES
          Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.
          Add <error> tags for each of the errors you want to handle.

          "On" Always display custom (friendly) messages.
          "Off" Always display detailed ASP.NET error information.
          "RemoteOnly" Display custom (friendly) messages only to users not running
           on the local Web server. This setting is recommended for security purposes, so
           that you do not display application detail information to remote clients.
   
     
  -->
      <customErrors mode="Off" />
       
      <!-- set enabled to true if you want to trace -->
      <trace enabled="false" writeToDiagnosticsTrace="true" requestLimit="50" pageOutput="true" traceMode="SortByTime" localOnly="false" />

      <!--
   this sets the max size of an upload if the
   UploadHttpModule is not being used (ie commented out because it can't work in mediumtrust).  In that case, the
   entire request is stored in memory so large uploads
   could be used as a Denial of Service attack.
   use you own judgement in determining the max size of
   a request you want to allow.
      <httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />
  -->
      <httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />
    </system.web>
   

 

  <!--
  limit file upload size
  maxRequestLength="up to 2097151 in KBytes, defaults to 2097151
  // non upload requests should leave the defaultalone
  maxNormalRequestLength="up to 2097151 in KBytes, defaults to 4096"
  maxUploadRate="300"
  -->
  <!-- this is if you want to throttle upload speed set the kb/sec
  maxUploadRate="100"
  -->
  <!-- Comment this out in Mediumt Trust
<neatUpload xmlns="http://www.brettle.com/neatupload/config/2008"
  useHttpModule="true"
  maxNormalRequestLength="4096"
  maxRequestLength="2097151"
  multiRequestUploadHandlerUrl="~/NeatUpload/MultiRequestUploadHandler.ashx"
maxUploadRate="300"
  >
</neatUpload>
-->

  <system.webServer>
    <!-- disable runtime rejection of Integrated mode applications that have legacy ASP.NET settings -->
    <validation validateIntegratedModeConfiguration="false" />


    <defaultDocument>
      <files>
        <remove value="Default.aspx" />
        <add value="Default.aspx" />
      </files>
    </defaultDocument>


    <!--
    info about custom error configuration
    http://msdn.microsoft.com/en-us/library/ms690497.aspx
    its commented out below because by default IIS7 has this locked down at a parent config file, probably machine.config
    -->
    <!--
     <httpErrors errorMode="DetailedLocalOnly" defaultResponseMode="ExecuteURL" defaultPath="Error.htm">
     
    </httpErrors>
     
      -->


    <!-- Modules for IIS 7.0 Integrated mode -->
    <!-- to use extensionless urls you need to add the runAllManagedModulesForAllRequests="true"
  <modules runAllManagedModulesForAllRequests="true">
    -->
    <modules>
      <remove name="ScriptModule" />

      <add name="BannedIPBlockingHttpModule" type="mojoPortal.Web.BannedIPBlockingHttpModule, mojoPortal.Web"  />
      <add name="GCheckoutBasicAuthenticationModule" type="mojoPortal.Web.GCheckoutBasicAuthenticationModule, mojoPortal.Web" />
      <add name="UrlRewriter" type="mojoPortal.Web.UrlRewriter, mojoPortal.Web" preCondition="" />
      <add name="AuthHandlerHttpModule" type="mojoPortal.Web.AuthHandlerHttpModule, mojoPortal.Web" preCondition="" />

      <!-- Comment this out in Medium Trust
      <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" preCondition="managedHandler" />
      -->

      <!-- if using Medium trust and you can install NeatUpload in the GAC then un-comment this and comment out the one above
      you will also need to set the type according to the version of NeatUpload installed in the GAC
      http://www.brettle.com/NeatUpload-1.3/dotnet/docs/Manual.html#MediumTrust
      -->
      <!--
   <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule,Brettle.Web.NeatUpload,Version=1.3.3520.16252,Culture=neutral,PublicKeyToken=C95290D92C5893C8" preCondition="managedHandler" />
   -->

      <add name="PageNotFoundHandler" type="mojoPortal.Web.PageNotFoundHttpModule, mojoPortal.Web" />

      <!-- comment this out out if running in Medium Trust -->
      <add name="CultureHelperHttpModule" type="mojoPortal.Web.CultureHelperHttpModule, mojoPortal.Web" />
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="managedHandler" />
      <!-- For use with Telerik RAD Editor
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler"/>
      -->
    </modules>
    <!-- Handlers for IIS 7.0 Integrated mode -->
    <handlers>

      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <!-- this is causing errors on some Win 2008 installations
            <add name="svc-ISAPI-2.0" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
            <add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" resourceType="Unspecified" preCondition="integratedMode" />
   -->
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

      <add name="TinyMceHttpHandler" verb="*" path="TinyMCEHandler.ashx" type="mojoPortal.Web.Editor.TinyMceHttpHandler, mojoPortal.Web" preCondition="integratedMode"  />
      <add name="SubkismetCaptchaHandler" verb="*" path="*CaptchaImage.ashx" type="Subkismet.Captcha.CaptchaImageHandler, Subkismet" preCondition="integratedMode" />
      <add name="ThumbnailServiceHandler" verb="*" path="*thumbnailservice.ashx" type="mojoPortal.Web.Controls.Album, mojoPortal.Web.Controls" preCondition="integratedMode" />
      <add name="ScriptCombinerHandler" verb="*" path="*scripthandler.ashx" type="mojoPortal.Web.Framework.ScriptHandler, mojoPortal.Web.Framework" preCondition="integratedMode" />
      <add name="CssHandler" verb="*" path="*csshandler.ashx" type="mojoPortal.Web.UI.CssHandler, mojoPortal.Web" preCondition="integratedMode" />
      <add name="MathMLHandler" verb="*" path="*.mml.ashx" type="mojoPortal.Web.Services.MathMLHandler, mojoPortal.Web" preCondition="integratedMode" />
      <add name="TimelineAjaxHandler" verb="GET" path="TimelineData.ashx" type="TimelineNet.TimelineAjaxHandler, TimelineNet" preCondition="integratedMode" />
      <add name="MetaWeblogAPIHandler" verb="*" path="*metaweblogapi.ashx" type="mojoPortal.Web.Services.Metaweblog.MetaWeblogger, mojoPortal.Features.UI" preCondition="integratedMode" />

      <!-- for use with Telerik RAD Editor
      <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
      <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
      <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode"/>
     
      -->

    </handlers>
    <!--
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="3000000000" />
      </requestFiltering>
    </security>
    -->
    <!--
    <staticContent>
      <clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" />
    </staticContent>
    -->

  </system.webServer>

  <system.web.extensions>
    <scripting>
      <scriptResourceHandler enableCompression="true" enableCaching="true"/>
      <webServices>
        <authenticationService enabled="true" requireSSL="false" />
        <roleService enabled="true" />
      </webServices>
    </scripting>
  </system.web.extensions>

  <system.serviceModel>
    <services>
      <service name="System.Web.ApplicationServices.AuthenticationService" behaviorConfiguration="AuthenticationServiceTypeBehaviors">
        <endpoint
          contract="System.Web.ApplicationServices.AuthenticationService"
          binding="basicHttpBinding"
          bindingConfiguration="userHttp"
          bindingNamespace="http://asp.net/ApplicationServices/v200" />
      </service>
      <service name="System.Web.ApplicationServices.RoleService" behaviorConfiguration="RoleServiceTypeBehaviors">
        <endpoint contract="System.Web.ApplicationServices.RoleService" binding="basicHttpBinding" bindingConfiguration="userHttp" bindingNamespace="http://asp.net/ApplicationServices/v200" />
      </service>

    </services>
    <bindings>
      <basicHttpBinding>
        <binding name="userHttp">
          <!-- if you have an ssl certificate set this to Transport -->
          <security mode="None" />
        </binding>
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="AuthenticationServiceTypeBehaviors">
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
        <behavior name="RoleServiceTypeBehaviors">
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <!-- comment this out for Mono -->
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

  </system.serviceModel>

  <system.net>
    <mailSettings>
      <smtp from="noreply@yourdomain.com">
        <network host="localhost" port="25" password="" userName="noreply@yourdomain.com" />
      </smtp>
    </mailSettings>
  </system.net>

  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
        <providerOption name="CompilerVersion" value="v3.5" />
        <providerOption name="WarnAsError" value="false" />
      </compiler>
    </compilers>
  </system.codedom>

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

</configuration>
 

"

5/25/2012 12:16:40 PM
Gravatar
Total Posts 18439

Re: running in partial trust

Also make sure the /App_Data folder exists and is writable by the user that is the identity on the application pool.

5/25/2012 12:35:47 PM
Gravatar
Total Posts 16

Re: running in partial trust

This is the list of folders that I see from the file manager:

    FolderGalleries
        GalleryImages
        htmlfragments
        htmltemplateimages
        index
        logos
        media
            GalleryImages
                37
                    FullSizeImages
                    Thumbnails
                    WebImages
                50
                    FullSizeImages
                    Thumbnails
                    WebImages
                56
                    FullSizeImages
                    Thumbnails
                    WebImages
                58
                    FullSizeImages
                    Thumbnails
                    WebImages
                61
                    FullSizeImages
                    Thumbnails
                    WebImages
                63
                    FullSizeImages
                    Thumbnails
                    WebImages
        SharedFiles
            History
        skins
            andreasviklund-02
            andreasviklund-02-alt1
            andreasviklund-04
            artisteer-24flashclouds
                images
            artisteer-24headermenu
                images
            artisteer-24topmenu
                images
            artisteer-24verticalmenu1
                images
            artisteer-24verticalmenu2
                images
            artisteer-24verticalmenu3
                images
            artisteer-greenlagoon
                images
            artisteer-swirly1
                images
            dcarter-bluedesert
            dcarter-bluespring
            dcarter-businessone
            dcarter-orangesunset
            dcarter-sq2
            dcarter-ticktockpro
            freecsstemplates-level2
            graformix-orange
            i7media-2horizontalmenus
            jqueryui-1
            jsavard-mojoportal
            mitchinson-business3
            mitchinson-earthy
            mitchinson-earthy-alt1
            mitchinson-golden
            printerfriendly
            ramblingsoul-5contentpanes
            ramblingsoul-tabular1
            snop-plasticboy-reflection
            styleshout-citrusisland
            styleshout-coolwater
            styleshout-envision
            styleshout-refresh
            styleshout-techmania
            viktorpersson-thehobbit-alt1
        systemfiles
        userfiles
        webstoreproductfiles
        webstoreproductpreviewfiles
        xml
        xsl

I then create the folder /App_Data ?

merry thanks Fabio

5/25/2012 12:40:57 PM
Gravatar
Total Posts 18439

Re: running in partial trust

You will not be able to see it from file manager, /App_Data is a folder directly beneath the root of the web site

File Manager only shows folders beginning under /Data/Sites/[SiteID]

5/25/2012 2:38:53 PM
Gravatar
Total Posts 16

Re: running in partial trust

Ok thanks, I changed the permissions and now it only works when I load a picture asks me user and password ftp is no way to put them by default?

Thanks ....

5/25/2012 3:06:50 PM
Gravatar
Total Posts 16

Re: running in partial trust

a problem! I removed the image gallery then put it back now if I try to upload the image it gives me:

[DirectoryNotFoundException: Impossibile trovare una parte del percorso.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7718597
   System.IO.__Error.WinIOError() +33
   System.IO.FileInfo.MoveTo(String destFileName) +214
   Brettle.Web.NeatUpload.FilesystemUploadedFile.MoveTo(String path, MoveToOptions opts) +124
   mojoPortal.Web.GalleryUI.BulkUploadPage.btnUpload_Click(Object sender, EventArgs e) +853
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

mmmmm..

You must sign in to post in the forums. This thread is closed to new posts.