MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

AMZ S3 Blog File Attachment Error (Closed) (Mono Support )

Viewed 26940 time(s), 8 post(s) 19.04.2012 16:37:32by David
David

David

19.04.2012 16:37:32

I have S3 configured properly. When I upload images and/or attach files it properly saves them to the S3 server. However, when attaching an image to a blog post, the image is not availalbe in the icon (URL for example of this is http://familychefs.com/Blog/post/Desserts/13/My-new-recipe-test/)
After further investigation, the URL that it uses to display the attachment results in an error.

To see error: http://familychefs.com/MonoX/ModuleGallery/SocialNetworking/MonoSoftware.MonoX.GetImage.axd?git=SnFile&entityid=e4deb614-01e5-40fe-b252-a03800d02062&tstamp=634704313193330000

I have verified that the image is on S3. You can do so by linking directly there:
http://familychefs-media.s3.amazonaws.com/user/David/blog/eFbidcGUH06yp6AtAAAR3A/fYC1F_L4XUy-xPUYoxs-Mw4207202217.jpg

Any thoughts?




Dieser Inhalt wurde noch nicht bewertet. 
174 Reputation 22 Total posts
David

David

19.04.2012 16:45:29
Additional note - I noticed that prior to switching to the S3 storage, when I would attach an image to a blog it would create a few different sizes. Now, with the S3 as my storage, it no longer creates multiple versions. Why the change? Is something failing?

Here is log info:

2012-04-19 11:18:19,678 [11] ERROR MonoX [David] - System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Threading.Thread.AbortInternal()
   at System.Threading.Thread.Abort(Object stateInfo)
   at System.Web.HttpResponse.End()
   at MonoSoftware.MonoX.ModuleGallery.Blog.BlogContainer.#On(Object sender, EventArgs e)
   at MonoSoftware.MonoX.ModuleGallery.Blog.BlogPostEdit.btnSave_Click(Object sender, EventArgs e)
2012-04-19 11:18:25,569 [21] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpException (0x80004005): 'http:/familychefs-media.s3.amazonaws.com/user/David/blog/FkTFGOawKkyS-KAtALGW0A/wFmFl3mer0mDB-OLZi3D4g3738474910.jpg' is not a valid virtual path.
   at System.Web.Util.UrlPath.CheckValidVirtualPath(String path)
   at System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative)
   at System.Web.VirtualPath.Combine(VirtualPath relativePath)
   at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping)
   at System.Web.HttpServerUtility.MapPath(String path)
   at MonoSoftware.MonoX.GetImage.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-04-19 11:18:50,084 [3] ERROR MonoX [David] - System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Threading.Thread.AbortInternal()
   at System.Threading.Thread.Abort(Object stateInfo)
   at System.Web.HttpResponse.End()
   at MonoSoftware.MonoX.ModuleGallery.Blog.BlogContainer.#On(Object sender, EventArgs e)
   at MonoSoftware.MonoX.ModuleGallery.Blog.BlogPostEdit.btnSave_Click(Object sender, EventArgs e)
2012-04-19 11:22:06,944 [25] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpException (0x80004005): 'http:/familychefs-media.s3.amazonaws.com/user/David/blog/eFbidcGUH06yp6AtAAAR3A/fYC1F_L4XUy-xPUYoxs-Mw4207202217.jpg' is not a valid virtual path.
   at System.Web.Util.UrlPath.CheckValidVirtualPath(String path)
   at System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative)
   at System.Web.VirtualPath.Combine(VirtualPath relativePath)
   at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping)
   at System.Web.HttpServerUtility.MapPath(String path)
   at MonoSoftware.MonoX.GetImage.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-04-19 11:22:27,819 [26] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpException (0x80004005): 'http:/familychefs-media.s3.amazonaws.com/user/David/blog/eFbidcGUH06yp6AtAAAR3A/fYC1F_L4XUy-xPUYoxs-Mw4207202217.jpg' is not a valid virtual path.
   at System.Web.Util.UrlPath.CheckValidVirtualPath(String path)
   at System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative)
   at System.Web.VirtualPath.Combine(VirtualPath relativePath)
   at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping)
   at System.Web.HttpServerUtility.MapPath(String path)
   at MonoSoftware.MonoX.GetImage.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-04-19 11:25:01,053 [21] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpException (0x80004005): 'http:/familychefs-media.s3.amazonaws.com/user/David/blog/eFbidcGUH06yp6AtAAAR3A/fYC1F_L4XUy-xPUYoxs-Mw4207202217.jpg' is not a valid virtual path.
   at System.Web.Util.UrlPath.CheckValidVirtualPath(String path)
   at System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative)
   at System.Web.VirtualPath.Combine(VirtualPath relativePath)
   at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping)
   at System.Web.HttpServerUtility.MapPath(String path)
   at MonoSoftware.MonoX.GetImage.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-04-19 11:27:35,553 [14] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpException (0x80004005): The file '/About.aspx' does not exist.
   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-04-19 11:39:36,928 [16] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpException (0x80004005): 'http:/familychefs-media.s3.amazonaws.com/user/David/blog/eFbidcGUH06yp6AtAAAR3A/fYC1F_L4XUy-xPUYoxs-Mw4207202217.jpg' is not a valid virtual path.
   at System.Web.Util.UrlPath.CheckValidVirtualPath(String path)
   at System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative)
   at System.Web.VirtualPath.Combine(VirtualPath relativePath)
   at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping)
   at System.Web.HttpServerUtility.MapPath(String path)
   at MonoSoftware.MonoX.GetImage.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-04-19 11:42:45,850 [6] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpException (0x80004005): The file '/Contact.aspx' does not exist.
   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Dieser Inhalt wurde noch nicht bewertet. 
174 Reputation 22 Total posts
David

David

20.04.2012 01:43:06
Here are my s3 settings:

<!-- main upload path for file storage. For Amazon S3 it has the format /bucket/folder, eg value="/monox"   -->
    <add key="MonoXUploadPath" value="/familychefs-media"/>
    
 
   <!-- Temporary upload path, used as an intermediary storage for transferring uploaded files to Amazon S3 and similar services -->
    <add key="TmpUploadPath" value="/Upload/Tmp"/>
 
 
    <FileContent defaultProvider="AmazonS3FileSystemContentProvider">
      <providers>
        <add name="MonoXFileSystemContentProvider" type="MonoSoftware.MonoX.FileSystem.MonoXFileSystemContentProvider, MonoX"/>
        <!-- {0} in urlFormat parameter will be replaced by the bucket name. Can be used if you want to use custom domain names via DNS alias entries. -->
        <add name="AmazonS3FileSystemContentProvider" type="MonoSoftware.MonoX.FileSystem.AmazonS3FileSystemContentProvider, MonoX" bucketLocation="us" accessKeyId="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" secretAccessKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" urlFormat="{0}.s3.amazonaws.com"/>
      </providers>
    </FileContent>
Dieser Inhalt wurde noch nicht bewertet. 
174 Reputation 22 Total posts
pajo

pajo

20.04.2012 09:05:10
Hi David,

There is issue with thumbnails in latest build, it'll be fixed in the next unofficial release.
Dieser Inhalt wurde noch nicht bewertet. 
629 Reputation 83 Total posts
David

David

21.04.2012 01:11:26
Thank you.
Dieser Inhalt wurde noch nicht bewertet. 
174 Reputation 22 Total posts
khorvat

khorvat

03.05.2012 21:40:41
Hi,

I have sent you the link to latest MonoX version, let us know if you need anything.

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
David

David

04.05.2012 03:48:24
Khorvat, I have upgraded to the build that you just sent to me and this problem is fixed. Thank you for providing this support.

Dave.
Dieser Inhalt wurde noch nicht bewertet. 
174 Reputation 22 Total posts
khorvat

khorvat

04.05.2012 06:28:55
Hi,

I'm glad that this has been fixed, if you need anything else please open another topic.

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts