[Mono-list] Problem with color property in VB.NET aspx control

JE M. jmbltx1 at hotmail.com
Mon Jun 25 13:17:53 EDT 2007


Hello Adrien, thanks for your insight.  I just changed the namespace to <%@ 
import Namespace="System.Drawing" %> , and I got the error again:
"Description: Error parsing a resource required to service this request. 
Review your source file and modify it to fix this error.
Error message:
Color Blue is not a valid color.
<asp:Label id="lblTitulo" style="Z-INDEX: 100; LEFT: 269px; POSITION: 
absolute; TOP: 98px" runat="server" forecolor="Blue" font-size="X-Large" 
font-bold="True">Bienvenido
        a Clubinter.com</asp:Label> "

Then I proceeded with the directives:
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Reflection" %>

I'm using VB does that make a difference in reporting the assemblies because 
I keep getting similar error results either with XSP and XSP2 and got no 
assembly report like yours unfortunately for me:
Parser Error

Description: Error parsing a resource required to service this request. 
Review your source file and modify it to fix this error.

Error message:

Color Blue is not a valid color.

File name: /tmp/welcome.aspx

    Line: 16
Source Error:

</head>
<body>
    <form runat="server">
        <asp:Label id="lblTitulo" style="Z-INDEX: 100; LEFT: 269px; 
POSITION: absolute; TOP: 98px" runat="server" forecolor="Blue" 
font-size="X-Large" font-bold="True">Welcome
        to My Page</asp:Label>
        <!-- Insert content here -->
    </form>

>From: Adrien Dessemond <adrien.dessemond at softhome.net>
>To: jmbltx1 at hotmail.com
>CC: mono-list at lists.ximian.com
>Subject: Re: [Mono-list] Problem with color property in VB.NET aspx control
>Date: Sun, 24 Jun 2007 13:51:39 -0400
>
>Hello,
>
>
> > So I deleted the 'forecolor="Blue"' property and it worked.
> > I thought that by adding the <%@ import Namespace="System.Web"  missing?
> > and <%@ import Namespace="System.Drawing.Color" %>
>
>Your statement <%@ import Namespace="System.Drawing.Color" %>
>should be rewritten like <%@ import Namespace="System.Drawing" %>
>I tested with the exact ASPX below and I get a nice
>blue "Welcome to My Page" (used Mono 1.2.4+xsp and xsp2):
>
><html>
>   <body>
>      <form runat="server">
>          <asp:Label id="lblTitulo" style="Z-INDEX: 100; LEFT: 269px;
>POSITION: absolute; TOP: 98px" runat="server" forecolor="Blue"
>font-size="X-Large" font-bold="True">Welcome
>          to My Page</asp:Label>
>          <!-- Insert content here -->
>      </form>
>   </body>
></html>
>
>
>(no ASP directives at all).
>
>FYI, I just put in an aspx file in my /tmp then run xsp while in /tmp and
>opened the page with Firefox. If adjusting your import directive changes
>nothing, could please try this and drop us a note about what it
>reports ?
>
><%@ Page Language="C#" %>
><%@ Import Namespace="System.Web" %>
><%@ Import Namespace="System.Reflection" %>
><html>
>   <script runat="server">
>
>   void PrintAssemblies()
>   {
>       Assembly[] asms = AppDomain.CurrentDomain.GetAssemblies();
>
>       foreach(Assembly asm in asms)
>          Response.Write(String.Format("{0} <b>{1}</b><br/>", asm.FullName, 
>asm.Location));
>   }
>
>   </script>
>   <body>
>      <form runat="server">
>          <asp:Label id="lblTitulo" runat="server" font-size="X-Large" 
>font-bold="True">Welcome to My Page</asp:Label>
>          <!-- Insert content here -->
>
>          <br/>
>          Loaded assemblies :
>          <br/>
>          <% PrintAssemblies(); %>
>
>      </form>
>   </body>
></html>
>
>
>Kind regards,
>
>Adrien
>

_________________________________________________________________
Need a break? Find your escape route with Live Search Maps. 
http://maps.live.com/default.aspx?ss=Restaurants~Hotels~Amusement%20Park&cp=33.832922~-117.915659&style=r&lvl=13&tilt=-90&dir=0&alt=-1000&scene=1118863&encType=1&FORM=MGAC01



More information about the Mono-list mailing list