Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Errore Import

  1. #1

    Errore Import

    Ho le seguenti righe di codice

    <%@ import namespace="system.data"%>
    <%@ import namespace="system.data.ADO"%>
    <%@ Page Language="VB" %>
    <script runat="Server">


    Ma ricevo l'errore:

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

    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: BC30466: Namespace or type 'ADO' for the Imports 'system.data.ADO' cannot be found.

    Source Error:



    Line 18: Imports System.Configuration
    Line 19: Imports system.data
    Line 20: Imports system.data.ADO
    Line 21: Imports System.Text
    Line 22: Imports System.Text.RegularExpressions


    Source File: F:\WINNT\Microsoft.NET\Framework\v1.0.3705\Tempora ry ASP.NET Files\test\0f428530\7e4d4fe\np_zt_tm.0.vb Line: 20

    Cosa devo fare?Grazie anticipatamente
    zxfsdf

  2. #2
    Non credo esista quel namespace.
    Quelli che conosco io sono:

    System.Data
    System.Data.Common
    System.Data.OleDB
    System.Data.SQLClient
    System.Data.SqlTypes

    A seconda poi del tipo di connessione che utilizzi al db dovrai scegliere una di queste...

    Come mai utilizzi Data.ADO ?

    Posso tranquillamente sbagliare io...

  3. #3

  4. #4
    credo che il namespace data.ADO fosse presente nella beta 1. dalla beta 2 in poi i namespace sono quelli che ha indicato ZofM.
    SB

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.