Bug 324034 (MONO81354) - VB compiler doesn't get called properly from ASP.NET
Summary: VB compiler doesn't get called properly from ASP.NET
Status: RESOLVED MOVED
Alias: MONO81354
Product: Mono: Compilers
Classification: Mono
Component: Basic (show other bugs)
Version: 1.2
Hardware: Other Linux
: P3 - Medium : Blocker
Target Milestone: ---
Assignee: Rolf Kvinge
QA Contact: Rolf Kvinge
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-11 20:04 UTC by Niko
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:35:14 UTC


---- Reported by nicorac@yahoo.com 2007-04-11 13:04:53 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:

VB compiler doesn't get called properly from ASP.NET pages, and the xsp2
server complains about missing dll:

---------------
Server Error in '/' Application
File not found: 5fc530b9.dll

Description: Error processing request.
Error Message: HTTP 404. File not found: 5fc530b9.dll
---------------

Steps to reproduce the problem:

1. 
Create a simple web application (the one with the /bin subfolder) with
Visual Studio, containing only one page.

This is the .aspx file:
---------------------------------------------------
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb"
Inherits="WebApplication1._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        <asp:Button ID="Button1" runat="server" Text="Button" />    
    </div>
    </form>
</body>
</html>

and this is the .vb code behind:
-----------------------------------------
Partial Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
        Button1_Click(Nothing, Nothing)
    End Sub

    Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
        Label1.Text = Now.ToString
    End Sub
End Class

2.
Upload the project to Linux server, including the bin folder.
Run it with xsp2.

3. Call the page

Actual Results:
---------------
Server Error in '/' Application
File not found: 5fc530b9.dll

Description: Error processing request.
Error Message: HTTP 404. File not found: 5fc530b9.dll
---------------

Expected Results:
The page with actual time shown

How often does this happen? 
Always

Additional Information:
If you remove Language="vb" from aspx file everything works, maybe because
asp.net doesn't know how to compile the page and uses the assembly compiled
under windows.



---- Additional Comments From nicorac@yahoo.com 2007-04-11 13:08:44 MST ----

I compiled mono/mcs/xsp from CVS, updated today.



---- Additional Comments From rolfkvinge@ya.com 2007-04-16 07:17:46 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO81162 ***


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Ubuntu 6.10</cf_op_sys_details>
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"