This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
kreid  
#1 Posted : Wednesday, June 13, 2007 6:19:32 PM(UTC)
kreid

Rank: Member

Groups: Guest
Joined: 6/13/2007(UTC)
Posts: 1

Hi,

My site uses ASP.NET with themes and a MasterPage. When using the demo pages on my computer they worked fine, but when I copied the code into my site, the image in Bitmap Viewer doesn't show up. The page on which I am using the BItmapViewer has Themes disabled in the header, so I think it may be an issue with web.config, but I am stumped. How can I fix this?

Thanks.

Alex Kon  
#2 Posted : Friday, June 15, 2007 4:23:58 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Guest
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello,

I have created small sample application which uses MasterPages & Themes. It works fine with BitmapViewer, no matter whether themes are turned on or off. Could you send us sample application which reproduces the problem?

Stefan Haupt  
#3 Posted : Tuesday, October 23, 2007 7:29:01 PM(UTC)
Stefan Haupt

Rank: Member

Groups: Guest
Joined: 10/23/2007(UTC)
Posts: 12

I can confirm that enabling themes in the web.config file produces the following error. No image is shown.

Code:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 10/24/2007 11:55:21 AM 
Event time (UTC): 10/24/2007 9:55:21 AM 
Event ID: 887eb1cc4a2943868e311ee41a17d8f6 
Event sequence: 220 
Event occurrence: 52 
Event detail code: 0 


Application information: 
Application domain: /LM/W3SVC/1/Root/-------------
Trust level: Full 
Application Virtual Path: /-------------
Application Path: -------------
Machine name: ------------- 

Process information: 
Process ID: 4132 
Process name: aspnet_wp.exe 
Account name: -------------\ASPNET 

Exception information: 
Exception type: InvalidOperationException 
Exception message: Using themed css files requires a header control on the page. (e.g. <head runat="server" />). 

Request information: 
Request URL: http://localhost/-------------/E5A137A26E1B453D9CD7FF4F9D54D5EA.aspx?id=af0653fb-d557-4c00-9457-4fc90a216df5.jpg 
Request path: /-------------/E5A137A26E1B453D9CD7FF4F9D54D5EA.aspx 
User host address: 127.0.0.1 
User: -------------
Is authenticated: True 
Authentication Type: Forms 
Thread account name: -------------\ASPNET 

Thread information: 
Thread ID: 6 
Thread account name: -------------\ASPNET 
Is impersonating: False 
Stack trace: at System.Web.UI.PageTheme.SetStyleSheet()
at System.Web.UI.Page.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details: 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Edited by user Monday, December 17, 2007 12:11:41 PM(UTC)  | Reason: Not specified

Sergey Peshekhonov  
#4 Posted : Wednesday, October 24, 2007 1:47:01 PM(UTC)
Sergey Peshekhonov

Rank: Advanced Member

Groups: Guest
Joined: 6/5/2007(UTC)
Posts: 57

Hello, Stefan.

To eliminate this exception (Using themed css files requires a header control on the page. (e.g. <head runat="server" />).) you should just add head tag to your master page.

For example, here you can see my MasterPage.master :

Code:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > 

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
        </asp:contentplaceholder>
    </div>
    </form>
</body>
</html>

Default.asxp:

Code:

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" Theme="Theme1" EnableTheming="false" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<%@ Register TagPrefix="aur" Namespace="Aurigma.GraphicsMill.WebControls" Assembly="Aurigma.GraphicsMill.WebControls" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<aur:BitmapViewer ID="BitmapViewer1" runat="server"></aur:BitmapViewer>
</asp:Content>

Default.aspx.cs:

Code:

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
	if (!IsPostBack)
	{
		BitmapViewer1.Bitmap.Load(MapPath("1.jpg"));
	}
    }
}

If this does not help, could you submit case with code sample which reproduces the problem?

Edited by user Thursday, May 22, 2008 3:15:06 PM(UTC)  | Reason: Not specified

Sincerely yours,

Sergey Peshekhonov.

Aurigma Technical Support Team.

Sergey Peshekhonov  
#5 Posted : Monday, October 29, 2007 8:05:17 PM(UTC)
Sergey Peshekhonov

Rank: Advanced Member

Groups: Guest
Joined: 6/5/2007(UTC)
Posts: 57

Hello,

We confirm the issue with BitmapViewer control while using Themes. This happens when theme attribute of pages node is set in the web.config. To workaround this problem you should add to configuration/configSections node of web.config the following section:

Code:

<section name="Aurigma.GraphicsMill.AjaxControls" type="System.Configuration.NameValueSectionHandler, 
     System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

And to configuration node you should add the following values:

Code:

<Aurigma.GraphicsMill.AjaxControls>
		<add key="RelativePublicCachePath" value="/YourProjectName/PublicCache/"/>
		<add key="RelativePrivateCachePath" value="/YourProjectName/PrivateCache/"/>
</Aurigma.GraphicsMill.AjaxControls>

And, of course, you should create corresponding folders: PublicCache and PrivateCache.

You can read more about caching in the Image Cache Management (AJAX Controls) article.

This issue will be fixed in the next release. If the suggested solution is not acceptable for you - please submit case and we will prepare update for you.

Edited by user Wednesday, October 29, 2008 1:49:39 PM(UTC)  | Reason: Not specified

Sincerely yours,

Sergey Peshekhonov.

Aurigma Technical Support Team.

Users browsing this topic
Guest (2)
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.