Visualizzazione dei risultati da 1 a 5 su 5
  1. #1

    Niubbo .NET & Dreamweaver MX 2004

    Salve

    Ho già esperienza di ASP 3.0, utilizzo questa piattaforma assieme a Dreamweaver, quest'ultimo soprattutto per la grande comodità nel realizzare le pagine, anche se poi il codice che genera deve essere spesso ripassato "a mano".

    Sto provando a passare alla piattaforma .NET e sto facendo alcuni test tanto per provare.

    Ho vito che DW, solo per realizzare la connessione ad un DB, mette nella pagina un sacco di codice che, francamente, per adesso non capisco.

    Ad esempio, ho fatto una pagina MOOOLTO semplice che prevede unicamente di stampare a video il campo CODICE del primo record di una tabella di un piccolo database.

    Di codice non ce n'è molto, questo il contenuto della pagina index.aspx

    codice:
    <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
    <%@ Register Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
    <MM:DataSet 
    id="Catalogo"
    runat="Server"
    IsStoredProcedure="false"
    ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_Feliac") %>'
    DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_Feliac") %>'
    CommandText='<%# "SELECT * FROM Catalogo_Visitatori" %>'
    Debug="true"
    ></MM:DataSet>
    <MM:PageBind runat="server" PostBackBind="true" />
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Documento senza titolo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <%# Catalogo.FieldValue("Codice", Container) %></body>
    </html>
    DW ha generato pure un file dal nome web.config con il seguente contenuto:

    codice:
    <configuration>
    	<appSettings>
    		<add key="MM_CONNECTION_HANDLER_Feliac" value="default_oledb.htm" />
    		<add key="MM_CONNECTION_STRING_Feliac" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=g:\andrea\database\feliac.mdb;" />
    		<add key="MM_CONNECTION_DATABASETYPE_Feliac" value="OleDb" />
    		<add key="MM_CONNECTION_SCHEMA_Feliac" value="" />
    		<add key="MM_CONNECTION_CATALOG_Feliac" value="" />
    	</appSettings>
    </configuration>
    L'errore che si genera è il seguente:


    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Parser Error
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: File or assembly name DreamweaverCtrls, or one of its dependencies, was not found.

    Source Error:


    Line 1: <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
    Line 2: <%@ Register Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral" %>
    Line 3: <MM:DataSet
    Line 4: id="Catalogo"


    Source File: G:\andrea\index.aspx Line: 2

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'DreamweaverCtrls' could not be loaded.


    === Pre-bind state information ===
    LOG: DisplayName = DreamweaverCtrls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=836f606ede05d46a
    (Fully-specified)
    LOG: Appbase = file:///G:
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===

    LOG: Publisher policy file is not found.
    LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\aspn et.config).
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\confi g\machine.config.
    LOG: Post-policy reference: DreamweaverCtrls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=836f606ede05d46a
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/73228314/69d3cc90/DreamweaverCtrls.DLL.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/73228314/69d3cc90/DreamweaverCtrls/DreamweaverCtrls.DLL.
    LOG: Attempting download of new URL file:///G:/bin/DreamweaverCtrls.DLL.
    LOG: Attempting download of new URL file:///G:/bin/DreamweaverCtrls/DreamweaverCtrls.DLL.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/73228314/69d3cc90/DreamweaverCtrls.EXE.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/73228314/69d3cc90/DreamweaverCtrls/DreamweaverCtrls.EXE.
    LOG: Attempting download of new URL file:///G:/bin/DreamweaverCtrls.EXE.
    LOG: Attempting download of new URL file:///G:/bin/DreamweaverCtrls/DreamweaverCtrls.EXE.




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288


    Cos'è che genera l'errore nella riga 2 ?

    vi chiedo solo un favore, prima di sentenziare "DW è uno schifo di qui, leggiti un libro di là..." so bene che quella è la strada, l'ho imparato con l'ASP 3.0, ma ho imparato molto anche leggendo il codice generato da DW e mettendo mano a quello per farlo funzionare.

    Quindi: in cosa sbaglia DW ?

    Grazie per la pazienza.

  2. #2
    Utente di HTML.it
    Registrato dal
    Sep 2002
    Messaggi
    4,127
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'DreamweaverCtrls' could not be loaded.
    devi mettere sul server nella cartella /bin la dll ..
    cmq nn usare dw .. o per lo meno nn fare generare a lui il codice

  3. #3
    Si, lo so, DW incasina un pò il codice ma di solito lo "ripulisco" dal ciarpame.
    Con .NET devo sempre ambientarmi.
    Posso tranquillamente caricare dll sul server ?
    Si può fare senza problemi o devono essere "installate" come succede per ASP 3.0 ?

  4. #4
    Originariamente inviato da Gonzo75
    Si, lo so, DW incasina un pò il codice ma di solito lo "ripulisco" dal ciarpame.
    Con .NET devo sempre ambientarmi.
    Posso tranquillamente caricare dll sul server ?
    Si può fare senza problemi o devono essere "installate" come succede per ASP 3.0 ?
    Le dll puoi caricarle senza registrarle, l'importante è che siano nella sottodirectory BIN dell'applicazione. Se le metti in un'altra directory ti tocca registrarle.

  5. #5
    Ottimo. Grazie per l'info !

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 © 2026 vBulletin Solutions, Inc. All rights reserved.