GetBigThumbnail not working in fresh Umbraco 6->7 upgrade
I seem to have managed to get the system working post upgrade (after one dry test run), and I have backups of everything.
The one problem I see so far is that this is throwing error 500, so I can't see any images in the "media" liberary, where I'd expect to see big thumbnails.
I think the premissions are right... anyone seen this before/ know the reason?
Ok, now I have a detailed crash dump... as below, it's a permission issue. This is on Rackspace, so either I have the file permissions wrong, or they are not letting me have "full trust". I will see...
{"Message":"An error has occurred.","ExceptionMessage":"Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.","ExceptionType":"System.Security.SecurityException","StackTrace":" at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)\r\n at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)\r\n at System.Security.CodeAccessPermission.Demand()\r\n at System.IO.FileInfo.Init(String fileName, Boolean checkHost)\r\n at System.IO.FileInfo..ctor(String fileName)\r\n at Umbraco.Core.IO.PhysicalFileSystem.GetLastModified(String path)\r\n at Umbraco.Web.Editors.ImagesController.GetResized(String imagePath, Int32 width, String suffix)\r\n at Umbraco.Web.Editors.ImagesController.GetBigThumbnail(String originalImagePath)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4()\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}
GetBigThumbnail not working in fresh Umbraco 6->7 upgrade
I seem to have managed to get the system working post upgrade (after one dry test run), and I have backups of everything.
The one problem I see so far is that this is throwing error 500, so I can't see any images in the "media" liberary, where I'd expect to see big thumbnails.
I think the premissions are right... anyone seen this before/ know the reason?
http://......./umbraco/backoffice/UmbracoApi/Images/GetBigThumbnail?originalImagePath=%2Fmedia%2F1001%2FimageName.jpg
Ok, now I have a detailed crash dump... as below, it's a permission issue. This is on Rackspace, so either I have the file permissions wrong, or they are not letting me have "full trust". I will see...
{"Message":"An error has occurred.","ExceptionMessage":"Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.","ExceptionType":"System.Security.SecurityException","StackTrace":" at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)\r\n at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)\r\n at System.Security.CodeAccessPermission.Demand()\r\n at System.IO.FileInfo.Init(String fileName, Boolean checkHost)\r\n at System.IO.FileInfo..ctor(String fileName)\r\n at Umbraco.Core.IO.PhysicalFileSystem.GetLastModified(String path)\r\n at Umbraco.Web.Editors.ImagesController.GetResized(String imagePath, Int32 width, String suffix)\r\n at Umbraco.Web.Editors.ImagesController.GetBigThumbnail(String originalImagePath)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4()\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}
Solution:
is working on a reply...