Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Encore probleme de connexon vers ORacle 8i

1 réponse
Avatar
fabrice
Re hello...


encore moi... je suis désolé mais je rame.
J'essaye toujours de connecter une base oracle 8i via le provider .net de
microsoft.

J'ai en autre créé un répertoire bin et j'ai collé le fichier
System.Data.OracleClient.dll dans le répertoire racine du projet.
Il s'agit pour l'instant du répertoire Inetpub de base à savoir :
C:\Inetpub\wwwroot donc pour le bin C:\Inetpub\wwwroot\bin.

Il semble se planter à la compilation et ne pas comprendre la directive
Imports System.Data.OracleClient.
Si vous aviez une explication, je souffre :-(

Je suis également preneur de méthode fonctionnelle d'une connexion qui
fonctionne vers Oracle 8i, en utilisant notamment Web MAtrix.
Merci de votre aide.


Le détail :

Voici l'erreur principal :

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: BC30035: Syntax error.


Line 9:
Line 10:
Line 11: Imports System.Data.OracleClient
Line 12:
Line 13: Dim oOracleConn As OracleConnection = New OracleConnection()

Source File: C:\Inetpub\wwwroot\stock.aspx Line: 11





Voici la visualisation ALL sous WebMatrix de ma page .aspx

---début

<%@ Page Language="VB" %>
<script runat="server">

Sub Page_Load (sender as Object, e As EventArgs)
titre1.Text = "test 1"

Imports System.Data.OracleClient

Dim oOracleConn As OracleConnection = New OracleConnection()
oOracleConn.ConnectionString = "user id=MEMOTEST;data
source=ORATEST;password=MEMOTEST";
oOracleConn.Open()

End Sub

</script>
<html>
<head>
</head>
<body>
<table height="150" width="300">
<tbody>
<tr>
<td>
<div align="center"><asp:Label id="titre1"
runat="server">Label</asp:Label>
</div>
</td>
</tr>
<tr>
<td>
<div align="center">
<asp:DataGrid id="Etat"
runat="server"></asp:DataGrid>
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</tbody>
</table>
</body>
</html>

--------- Fin

Mais, rien n'a faire. J'ai une erreur.
LA voici dans son détail..


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: BC30035: Syntax error.
Source Error:


Line 9:
Line 10:
Line 11: Imports System.Data.OracleClient
Line 12:
Line 13: Dim oOracleConn As OracleConnection = New OracleConnection()




C:\Inetpub\wwwroot> "c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe"
/t:library /utf8output
/R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll"
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll"
/R:"c:\windows\assembly\gac\system.data.oracleclient\1.0.3300.0__b77a5c561934e089\system.data.oracleclient.dll"
/R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll"
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\root\2e2a174d\2fa349ef\sd6o3myr.dll" /debug-
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\root\2e2a174d\2fa349ef\sd6o3myr.0.vb"


Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322.2032
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

C:\Inetpub\wwwroot\stock.aspx(11) : error BC30035: Syntax error.

Imports System.Data.OracleClient
~~~~~~~
C:\Inetpub\wwwroot\stock.aspx(13) : error BC30002: Type 'OracleConnection'
is not defined.

Dim oOracleConn As OracleConnection = New OracleConnection()
~~~~~~~~~~~~~~~~
C:\Inetpub\wwwroot\stock.aspx(14) : error BC30037: Character is not valid.

oOracleConn.ConnectionString = "user id=MEMOTEST;data
source=ORATEST;password=MEMOTEST";

1 réponse

Avatar
nicolas franchet
Le repertoire bin est a créé dans le repertoire de l'application
ASP.NET, pas dans le repertoire racine.

fabrice a écrit :
Re hello...


encore moi... je suis désolé mais je rame.
J'essaye toujours de connecter une base oracle 8i via le provider .net de
microsoft.

J'ai en autre créé un répertoire bin et j'ai collé le fichier
System.Data.OracleClient.dll dans le répertoire racine du projet.
Il s'agit pour l'instant du répertoire Inetpub de base à savoir :
C:Inetpubwwwroot donc pour le bin C:Inetpubwwwrootbin.

Il semble se planter à la compilation et ne pas comprendre la directive
Imports System.Data.OracleClient.
Si vous aviez une explication, je souffre :-(

Je suis également preneur de méthode fonctionnelle d'une connexion qui
fonctionne vers Oracle 8i, en utilisant notamment Web MAtrix.
Merci de votre aide.


Le détail :

Voici l'erreur principal :

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: BC30035: Syntax error.


Line 9:
Line 10:
Line 11: Imports System.Data.OracleClient
Line 12:
Line 13: Dim oOracleConn As OracleConnection = New OracleConnection()

Source File: C:Inetpubwwwrootstock.aspx Line: 11





Voici la visualisation ALL sous WebMatrix de ma page .aspx

---début

<%@ Page Language="VB" %>
<script runat="server">

Sub Page_Load (sender as Object, e As EventArgs)
titre1.Text = "test 1"

Imports System.Data.OracleClient

Dim oOracleConn As OracleConnection = New OracleConnection()
oOracleConn.ConnectionString = "user id=MEMOTEST;data
source=ORATEST;password=MEMOTEST";
oOracleConn.Open()

End Sub

</script>
<html>
<head>
</head>
<body>
<table height="150" width="300">
<tbody>
<tr>
<td>
<div align="center"><asp:Label id="titre1"
runat="server">Label</asp:Label>
</div>
</td>
</tr>
<tr>
<td>
<div align="center">
<asp:DataGrid id="Etat"
runat="server"></asp:DataGrid>
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</tbody>
</table>
</body>
</html>

--------- Fin

Mais, rien n'a faire. J'ai une erreur.
LA voici dans son détail..


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: BC30035: Syntax error.
Source Error:


Line 9:
Line 10:
Line 11: Imports System.Data.OracleClient
Line 12:
Line 13: Dim oOracleConn As OracleConnection = New OracleConnection()




C:Inetpubwwwroot> "c:windowsmicrosoft.netframeworkv1.1.4322vbc.exe"
/t:library /utf8output
/R:"c:windowsassemblygacsystem.web.services1.0.5000.0__b03f5f7f11d50a3asystem.web.services.dll"
/R:"c:windowsassemblygacsystem1.0.5000.0__b77a5c561934e089system.dll"
/R:"c:windowsassemblygacsystem.web1.0.5000.0__b03f5f7f11d50a3asystem.web.dll"
/R:"c:windowsassemblygacsystem.data.oracleclient1.0.3300.0__b77a5c561934e089system.data.oracleclient.dll"
/R:"c:windowsassemblygacsystem.enterpriseservices1.0.5000.0__b03f5f7f11d50a3asystem.enterpriseservices.dll"
/R:"c:windowsassemblygacsystem.data1.0.5000.0__b77a5c561934e089system.data.dll"
/R:"c:windowsassemblygacsystem.drawing1.0.5000.0__b03f5f7f11d50a3asystem.drawing.dll"
/R:"c:windowsassemblygacsystem.web.mobile1.0.5000.0__b03f5f7f11d50a3asystem.web.mobile.dll"
/R:"c:windowsassemblygacsystem.xml1.0.5000.0__b77a5c561934e089system.xml.dll"
/out:"C:WINDOWSMicrosoft.NETFrameworkv1.1.4322Temporary ASP.NET
Filesroot2e2a174d2fa349efsd6o3myr.dll" /debug-
"C:WINDOWSMicrosoft.NETFrameworkv1.1.4322Temporary ASP.NET
Filesroot2e2a174d2fa349efsd6o3myr.0.vb"


Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322.2032
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

C:Inetpubwwwrootstock.aspx(11) : error BC30035: Syntax error.

Imports System.Data.OracleClient
~~~~~~~
C:Inetpubwwwrootstock.aspx(13) : error BC30002: Type 'OracleConnection'
is not defined.

Dim oOracleConn As OracleConnection = New OracleConnection()
~~~~~~~~~~~~~~~~
C:Inetpubwwwrootstock.aspx(14) : error BC30037: Character is not valid.

oOracleConn.ConnectionString = "user id=MEMOTEST;data
source=ORATEST;password=MEMOTEST";