Mono Support AMZ S3 Blog File Attachment Error (Closed)

Viewed 26836 time(s), 8 post(s), 4/19/2012 4:37:32 PM - by David
4/19/2012 4:37:32 PM
174 Reputation 22 Total posts


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?




1
4/19/2012 4:45:29 PM
174 Reputation 22 Total posts

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)

2
4/20/2012 1:43:06 AM
174 Reputation 22 Total posts

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>

3
4/20/2012 9:05:10 AM
629 Reputation 83 Total posts

Hi David,

There is issue with thumbnails in latest build, it'll be fixed in the next unofficial release.

4
4/21/2012 1:11:26 AM
174 Reputation 22 Total posts

Thank you.

5
5/3/2012 9:40:41 PM
15993 Reputation 2214 Total posts

Hi,

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

Regards

6
5/4/2012 3:48:24 AM
174 Reputation 22 Total posts

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.

7
5/4/2012 6:28:55 AM
15993 Reputation 2214 Total posts

Hi,

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

Regards

8
This is a demo site for MonoX. Please visit Mono Software for more info.