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 18409

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

The content that belongs here is too complex to display securely.
5/25/2012 12:09:28 PM
Gravatar
Total Posts 16

Re: running in partial trust

The content that belongs here is too complex to display securely.
5/25/2012 12:16:40 PM
Gravatar
Total Posts 18409

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 18409

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.