Bug 323734 (MONO81049) - Cannot use Visual Basic language in ASP.NET pages
Summary: Cannot use Visual Basic language in ASP.NET pages
Status: RESOLVED MOVED
Alias: MONO81049
Product: Mono: Compilers
Classification: Mono
Component: Basic (show other bugs)
Version: 1.2
Hardware: Other All
: P3 - Medium : Major
Target Milestone: ---
Assignee: Rolf Kvinge
QA Contact: Rolf Kvinge
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-06 13:44 UTC by Jan Bouwhuis
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:30:21 UTC


---- Reported by jan.bouwhuis@solcon.nl 2007-03-06 06:44:51 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
From version 1.2.3 VB-support is announced. And truely vbnc and is
included (runtimes even longer).
ASP.NET pages including VB inline code altough still don't work, but
this is not mentioned.


Steps to reproduce the problem:
1. Create a simple standalone webform file in a new folder and name it
'index.aspx':

<%@ Page Language="vb" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head><title>Test VB page</title></head>
  <body>
   <%
   Dim x As Integer
   For x = 1 To 10
     Response.Write(x & "<br>")
   Next
   %>
  </body>
</html>

2. In the directory where the file resists, enter 'xsp'.
3. Open a browser to open the corresponding webpage (e.g.
http://localhost:8080 when using port 8080 on the same machine)

Actual Results:
System.InvalidOperationException: Process has not been started.
  at System.Diagnostics.Process.get_ExitCode () [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Diagnostics.Process:get_ExitCode ()
  at Microsoft.VisualBasic.VBCodeCompiler.CompileFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames)
[0x00000] 
  at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames)
[0x00000] 
  at Microsoft.VisualBasic.VBCodeCompiler.CompileFromDomBatch
(System.CodeDom.Compiler.CompilerParameters options,
System.CodeDom.CodeCompileUnit[] ea) [0x00000] 
  at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromDomBatch
(System.CodeDom.Compiler.CompilerParameters options,
System.CodeDom.CodeCompileUnit[] ea) [0x00000] 
  at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromDom
(System.CodeDom.Compiler.CompilerParameters options,
System.CodeDom.CodeCompileUnit e) [0x00000] 
  at System.Web.Compilation.CachingCompiler.Compile
(System.Web.Compilation.BaseCompiler compiler) [0x00000] 
  at System.Web.Compilation.BaseCompiler.GetCompiledType () [0x00000] 
  at System.Web.Compilation.AspGenerator.GetCompiledType () [0x00000] 
  at System.Web.UI.PageParser.CompileIntoType () [0x00000] 
  at System.Web.UI.TemplateControlParser.GetCompiledInstance () [0x00000] 
  at System.Web.UI.PageParser.GetCompiledPageInstance (System.String
virtualPath,
System.String inputFile, System.Web.HttpContext context) [0x00000] 
  at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext
context,
System.String requestType, System.String url, System.String path) [0x00000] 
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context)
[0x00000] 
  at System.Web.HttpApplication+<>c__CompilerGenerated2.MoveNext () [0x00000] 


Expected Results:
1
2
3
4
5
6
7
8
9
10


How often does this happen? 
Always

Additional Information:
Tested on Windows and SuseLinux 10.1.
On windows the console log mentions it cannot find 'mbas', which is the old
VB-compiler. Can it be that there is a conflict with an older version of mono?



---- Additional Comments From rolfkvinge@ya.com 2007-03-06 07:58:53 MST ----

ASP.Net was updated on 20/2 to use vbnc instead of mbas (after the 
1.2.3 release), so do you have any chance of trying with the latest 
version from SVN?

Please note as well that you'll have to use xsp2, not xsp, since vbnc 
can only generate v2.0 assemblies for the moment.



---- Additional Comments From jan.bouwhuis@solcon.nl 2007-03-06 15:22:18 MST ----

Using xsp2 on Suse 10.1 and mono 1.2.3 about the same exception is
thrown. No CSV build is used. Is this bug solved in CSV?

Excepton thrown:

System.InvalidOperationException: Process has not been started.
  at System.Diagnostics.Process.get_ExitCode () [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Diagnostics.Process:get_ExitCode ()
  at Microsoft.VisualBasic.VBCodeCompiler.CompileFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000] 
  at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000] 
  at Microsoft.VisualBasic.VBCodeCompiler.CompileFromDomBatch
(System.CodeDom.Compiler.CompilerParameters options,
System.CodeDom.CodeCompileUnit[] ea) [0x00000] 
  at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromDomBatch
(System.CodeDom.Compiler.CompilerParameters options,
System.CodeDom.CodeCompileUnit[] ea) [0x00000] 
  at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromDom
(System.CodeDom.Compiler.CompilerParameters options,
System.CodeDom.CodeCompileUnit e) [0x00000] 
  at System.Web.Compilation.CachingCompiler.Compile
(System.Web.Compilation.BaseCompiler compiler) [0x00000] 
  at System.Web.Compilation.BaseCompiler.GetCompiledType () [0x00000] 
  at System.Web.Compilation.AspGenerator.GetCompiledType () [0x00000] 
  at System.Web.UI.PageParser.CompileIntoType () [0x00000] 
  at System.Web.UI.TemplateControlParser.GetCompiledInstance () [0x00000] 
  at System.Web.UI.PageParser.GetCompiledPageInstance (System.String
virtualPath, System.String inputFile, System.Web.HttpContext context)
[0x00000] 
  at System.Web.UI.PageHandlerFactory.GetHandler
(System.Web.HttpContext context, System.String requestType,
System.String url, System.String path) [0x00000] 
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext
context) [0x00000] 
  at System.Web.HttpApplication+<>c__CompilerGenerated3.MoveNext ()
[0x00000] 



---- Additional Comments From jan.bouwhuis@solcon.nl 2007-03-06 15:24:55 MST ----

Used versions:

Mono JIT compiler version 1.2.3.1, (C) 2002-2006 Novell, Inc and
Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Architecture:  x86
        Disabled:      none

Visual Basic.Net Compiler version 0.0.0.4805
Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved.



---- Additional Comments From rolfkvinge@ya.com 2007-03-06 15:26:10 MST ----

It should be solved in SVN.



---- Additional Comments From tobias@weidelt.de 2007-03-27 22:29:25 MST ----

Hello Rolf,

> It should be solved in SVN.

I'm sorry, but it seems that the problem persists. I've tried it with
a fresh build of vbnc and mono from SVN.

Visual Basic.Net Compiler version 0.0.0.4855

Used xsp2 under linux. Error message in the web browser: 

Server error in '/' application
File not found: 253bbac5.dll
Description: Error processing request.

Error Message: HTTP 404. File not found: 253bbac5.dll 

No debug message on the console.
Thank you very much for your work!

Tobias



---- Additional Comments From rolfkvinge@ya.com 2007-04-16 07:16:33 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>Suse Linux 10.1 / Windows XP</cf_op_sys_details>
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"