Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it L'avatar di Vailfox
    Registrato dal
    Feb 2005
    Messaggi
    320

    Mono e Asp.Net con VbNet

    Ciao

    ho installato mono e xsp2 sul mio ubuntu, e fin qui tutto bene.
    Ho provato ad eseguire le pagine scritte in c# e funzionano, ma nel momento in cui scrivo la stessa pagina in vbnet il browser mi dà il seguente errore

    Server Error in '/' Application
    Configuration error. Language not supported: VBNet

    il codice della pagina è il seguente:


    <%@ Page Language="VBNet" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
    <head>
    <title>vbnet</title>
    <script runat="server">

    </script>
    </head>
    <body>
    <form id="form1" runat="server">

    </form>
    </body>
    </html>



    Perchè con C# la pagina viene eseguita e con VbNet (il mio linguaggio) no???
    Le 2 pagine sono state create con MonoDevelop e dunque il codice mi sembra più che affidabile (l'ha creato il software di default, e non l'ho modificato io)

    Aspetto vostre n

  2. #2
    La direttiva corretta è
    codice:
    <%@ Page Language="VB" %>
    .
    Amaro C++, il gusto pieno dell'undefined behavior.

  3. #3
    Utente di HTML.it L'avatar di Vailfox
    Registrato dal
    Feb 2005
    Messaggi
    320
    ho già provato, e adesso l'errore che mi dà è il seguente:



    Server Error in '/' Application
    Process has not been started.

    Description: Error processing request.

    Error Message: HTTP 500. System.InvalidOperationException: Process has not been started.

    Stack Trace:

    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.CompileFromFi leBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000]
    at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemb lyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000]
    at Microsoft.VisualBasic.VBCodeCompiler.CompileFromDo mBatch (System.CodeDom.Compiler.CompilerParameters options, System.CodeDom.CodeCompileUnit[] ea) [0x00000]
    at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemb lyFromDomBatch (System.CodeDom.Compiler.CompilerParameters options, System.CodeDom.CodeCompileUnit[] ea) [0x00000]
    at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemb lyFromDom (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.GetCompiledTyp e () [0x00000]
    at System.Web.Compilation.AspGenerator.GetCompiledTyp e () [0x00000]
    at System.Web.UI.PageParser.CompileIntoType () [0x00000]
    at System.Web.UI.TemplateControlParser.GetCompiledIns tance () [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]


    Come potrei risolvere??
    Vi ringrazio per l'aiuto!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.