Salve
Stò continuando le lezioni però vedo che mano a mano che vado avanti ci sono sempre più problemi..
Dunque ora stò cercando di far funzionare un semplicissimo codice che dovrebbe caricare un file dll trasformato tramite il prompt dei comandi...
La trasformazione è avvenuta correttamente ma non capisco perchè mi appare il seguente messaggio d'errore: Impossibile caricare il file o l'assembly 'CustomControls' o una delle relative dipendenze. Impossibile trovare il file specificato.
Questo è il codice completo:codice:Riga 1: <%@ Page Language="VB" %> Riga 2: <%@ Register TagPrefix="ACME" Namespace="MyCustomControls" Assembly="CustomControls"%> Riga 3: Riga 4: <html><body>
Questo è il codice del file trasformato:codice:<%@ Page language="VB" %> <%@ Register TagPrefix="ACME" Namespace="MyCustomControls" Assembly="CustomControls" %> <html><body> <form runat="server"> The custom control produces the following output: <ACME:CustomControl1 id="MyControl" runat=server/> </form> </body></html>
Thankscodice:Imports System Imports System.Web Imports System.Web.UI Namespace MyCustomControls Public Class CustomControl1 : Inherits Control Protected Overrides Sub Render(Output as HtmlTextWriter) Output.Write("This is my custom control! The time is now " & DateTime.Now.ToString) End Sub End Class End Namespace![]()

Rispondi quotando