[mono-vb] Server Error in '/demo' Application

A Rafael D Teixeira rafael.teixeirabr at terra.com.br
Mon Nov 28 13:29:22 EST 2005


Hi Valentina,

On Wed, 2005-11-23 at 20:35 +0100, beniniva at csr.unibo.it wrote:
> I try to run HelloVB.aspx page but I get this error:
> 
> Server Error in '/demo' Application:
> *****************************************
> 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: Cannot find type HelloVB.WebForm1
> 
> File name:/usr/lib/xsp/test/1.1/asp.net/HelloVB.aspx Line:1
> 
> Source Error:
> <%@ Page Language="vb" AutoEventWireup="false" Src="HelloVB.aspx.vb"
> Inherits="HelloVB.WebForm1"%>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html>
>    <head>
> *****************************************
> 
> Could anybody help me?
> thank's
> 
> Valentina.

It's a namespace mismatch. The codebehind class you are compiling is
WebForm1 inside no namespace, either change HelloVB.aspx.vb to have the
namespace/end namespace pair or change the HelloVB.aspx to have
something like this at the end of the last line.

 Inherits="WebForm1"%>

Either way you'll still find the mbas bug around calling subs without
the empty parenthesis pair, stops your page from working. We are working
on that bug, but we don't know when it will be gone.

Ciao,
-- 
Rafael "Monoman" Teixeira 
Mono Hacker since 16 Jul 2001 - http://www.mono-project.com/
Mono Brasil Founding Member - http://monobrasil.softwarelivre.org/
Simios Proud Member - http://www.simios.org/ 
English Blog: http://thespoke.net/blogs/monoman/default.aspx
Brazilian Portuguese Blog: http://www.simios.org/blog/monoman



More information about the Mono-vb mailing list