Welcome Guest Search | Active Topics | Members

Problem with viewing images in BitmapViewer Options
Stefan Haupt
Posted: Tuesday, October 30, 2007 10:14:12 AM
Rank: Member
Groups: Member

Joined: 10/24/2007
Posts: 11
Points: 3
On the development machines everything works just fine. When moving to the test sites we get the problem. Everything works but the image is not shown, i.e. the image can be manipulated and the BitmapViewer actually contains the image (as the save process works correctly).

The urls looking likes this E5A137A26E1B453D9CD7FF4F9D54D5EA.aspx?.... work fine on the dev. machines and show the expected image, on the test sites we get a status code 404....

Web.config is the same, IIS settings are the same....

What are we missing?

Regards
Sergey Peshekhonov
Posted: Tuesday, October 30, 2007 10:24:22 PM
Rank: Advanced Member
Groups: Member

Joined: 6/6/2007
Posts: 57
Points: 45
Hello, Stefan.

First of all you should check the following:

Whether does the user under which IIS is running have read and write permissions for App_Data\GraphicsMillAjaxCache\PublicCache and App_Data\GraphicsMillAjaxCache\PrivateCache folders? In these folders you may found temporary images which are loaded to the web page by BitmapViewer.

So, you just need to set read/write permissions for these folders.

Sincerely yours,
Sergey Peshekhonov.

Aurigma Technical Support Team.
Stefan Haupt
Posted: Wednesday, October 31, 2007 1:23:29 AM
Rank: Member
Groups: Member

Joined: 10/24/2007
Posts: 11
Points: 3
No, access rights do not seem to be the problem.

If i deny read access to the public folder on the dev. machine, I get an access violation like this:

Code:
System.UnauthorizedAccessException was unhandled by user code
  Message="Access to the path '......\GraphicsMillAjaxCache\\Public\\0dfb9df4-a59a-4a72-b800-a98fa27e7e0f.jpg' is denied."
  Source="mscorlib"
  StackTrace:
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.Web.HttpResponse.WriteFile(String filename, Boolean readIntoMemory)
       at System.Web.HttpResponse.WriteFile(String filename)
       at ASP.e5a137a26e1b453d9cd7ff4f9d54d5ea_aspx.Page_Load(Object sender, EventArgs e) in http://server//Dating2007/E5A137A26E1B453D9CD7FF4F9D54D5EA.aspx:line 20
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


but the image will still be shown, no red x's.

The problem seems to be with locating the aspx file in the iframe (urls like this E5A137A26E1B453D9CD7FF4F9D54D5EA.aspx)....

Looking those up will return a 404 and it seems as if this happens before the image is even touched. When I remove the parameter from the url and just call the aspx file, I still get a 404.

When I try the same thing on the development machines i get an nullreference exception like this:

Code:
System.NullReferenceException was unhandled by user code
  Message="Object reference not set to an instance of an object."
  Source="Aurigma.GraphicsMill.AjaxControls"
  StackTrace:
       at Aurigma.GraphicsMill.AjaxControls.FileCache.ValidateFileName(String fileName)
       at Aurigma.GraphicsMill.AjaxControls.FileCache.GetAbsolutePublicCachePath(String fileName)
       at ASP.e5a137a26e1b453d9cd7ff4f9d54d5ea_aspx.Page_Load(Object sender, EventArgs e) in http://server//Dating2007/E5A137A26E1B453D9CD7FF4F9D54D5EA.aspx:line 20
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)....



The main difference seem to be that the aspx file is not found in production....


Regards
<stefan>
Sergey Peshekhonov
Posted: Wednesday, October 31, 2007 6:00:47 AM
Rank: Advanced Member
Groups: Member

Joined: 6/6/2007
Posts: 57
Points: 45
Hello, Stefan.

We tried to reproduce your problem, but without any success. Could you submit case with code sample which reproduces the problem?

Sincerely yours,
Sergey Peshekhonov.

Aurigma Technical Support Team.
Stefan Haupt
Posted: Thursday, November 01, 2007 5:43:36 AM
Rank: Member
Groups: Member

Joined: 10/24/2007
Posts: 11
Points: 3
I don't believe this to be a code issue. I suspect a configuration problem. Is there a way to test the configuration, i.e.:
- ajax is installed and working
- aurigma is installed and working/licensed....
.....

Regards
Stefan Haupt
Posted: Friday, November 02, 2007 2:52:02 AM
Rank: Member
Groups: Member

Joined: 10/24/2007
Posts: 11
Points: 3
The problem is not access rights. We have given 'everyone' 'full control' til the public cache folder and the result is still a red x...

Best regards
Stefan Haupt
Posted: Friday, November 02, 2007 5:53:49 AM
Rank: Member
Groups: Member

Joined: 10/24/2007
Posts: 11
Points: 3
Further digging showns that all machines use E5A137A26E1B453D9CD7FF4F9D54D5EA.aspx as the content provider for the iframe.

This url works fine on the development machines but returns a 404 on the test and production machines. Why?

Regards
Dmitry
Posted: Thursday, November 08, 2007 6:59:29 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 586
Points: 588
Hello Stefan,

Have you tried to set public and private cache up as I advised you in the email?

Sincerely yours,
Dmitry Sevostyanov.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.