Compilerfehlermeldung: CS0012: Der Typ 'CoreLab.MySql.MySqlDataTable' ist in einer nicht referenzierten Assembly definie

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
mydac4std
Posts: 13
Joined: Mon 20 Feb 2006 19:05

Compilerfehlermeldung: CS0012: Der Typ 'CoreLab.MySql.MySqlDataTable' ist in einer nicht referenzierten Assembly definie

Post by mydac4std » Wed 20 Sep 2006 12:35

Does someone knows, what do do?

Serverfehler in der Anwendung '/WebApplication5'.
--------------------------------------------------------------------------------

Kompilierungsfehler
Beschreibung: Beim Kompilieren einer Resource, die für diese Anforderung erforderlich ist, ist ein Fehler aufgetreten. Überprüfen Sie folgende Fehlerinformationen und ändern Sie die Quelldatei entsprechend.

Compilerfehlermeldung: CS0012: Der Typ 'CoreLab.MySql.MySqlDataTable' ist in einer nicht referenzierten Assembly definiert. Fügen Sie einen Verweis zur Assembly 'CoreLab.MySql' hinzu.

Quellfehler:



Zeile 10:
Zeile 11:
Zeile 12: " dbdatasource="" tablename="rechner">
Zeile 13:
Zeile 14:


Quelldatei: WebForm1.aspx Zeile: 12



Detaillierte Compilerausgaben anzeigen:


C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /t:library /utf8output /R:"c:\windows\assembly\gac\borland.dbkasp\10.0.0.0__b0524c541232aae7\borland.dbkasp.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /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\microsoft.net\framework\v1.1.4322\temporary asp.net files\webapplication5\caa28e35\4cb0cdd6\x0ay9vio.dll" /R:"c:\windows\assembly\gac\borland.data.web\2.0.0.0__91d62ebb5b0d1b1b\borland.data.web.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\webapplication5\caa28e35\4cb0cdd6\assembly\dl2\b09e2bb4\006c8442_afdcc601\webapplication5.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.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication5\caa28e35\4cb0cdd6\lwth7tct.dll" /D:DEBUG /debug+ /optimize- /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication5\caa28e35\4cb0cdd6\lwth7tct.0.cs"


Microsoft (R) Visual C# .NET-Compilerversion 7.10.6001.4
für Microsoft (R) .NET Framework, Version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. Alle Rechte vorbehalten.

WebForm1.aspx(12,13): error CS0012: Der Typ 'CoreLab.MySql.MySqlDataTable' ist in einer nicht referenzierten Assembly definiert. Fügen Sie einen Verweis zur Assembly 'CoreLab.MySql' hinzu.
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication5\caa28e35\4cb0cdd6\assembly\dl2\b09e2bb4\006c8442_afdcc601\WebApplication5.DLL: (Position des Symbols im Verhältnis zum vorherigen Fehler)





Vollständige Kompilierungsquelle anzeigen:


Zeile 1: //------------------------------------------------------------------------------
Zeile 2: //
Zeile 3: // This code was generated by a tool.
Zeile 4: // Runtime Version: 1.1.4322.2032
Zeile 5: //
Zeile 6: // Changes to this file may cause incorrect behavior and will be lost if
Zeile 7: // the code is regenerated.
Zeile 8: //
Zeile 9: //------------------------------------------------------------------------------
Zeile 10:
Zeile 11: namespace ASP {
Zeile 12: using System;
Zeile 13: using System.Collections;
Zeile 14: using System.Collections.Specialized;
Zeile 15: using System.Configuration;
Zeile 16: using System.Text;
Zeile 17: using System.Text.RegularExpressions;
Zeile 18: using System.Web;
Zeile 19: using System.Web.Caching;
Zeile 20: using System.Web.SessionState;
Zeile 21: using System.Web.Security;
Zeile 22: using System.Web.UI;
Zeile 23: using System.Web.UI.WebControls;
Zeile 24: using System.Web.UI.HtmlControls;
Zeile 25: using ASP;
Zeile 26:
Zeile 27: #line 2 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 28: using Borland.Data.Web;
Zeile 29:
Zeile 30: #line default
Zeile 31: #line hidden
Zeile 32:
Zeile 33:
Zeile 34: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Zeile 35: public class WebForm1_aspx : WebForm1.TWebForm1, System.Web.SessionState.IRequiresSessionState {
Zeile 36:
Zeile 37:
Zeile 38: #line 11 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 39: private System.Web.UI.HtmlControls.HtmlForm __control2;
Zeile 40:
Zeile 41: #line default
Zeile 42: #line hidden
Zeile 43:
Zeile 44: private static bool __initialized = false;
Zeile 45:
Zeile 46: private static System.Collections.ArrayList __fileDependencies;
Zeile 47:
Zeile 48: public WebForm1_aspx() {
Zeile 49: System.Collections.ArrayList dependencies;
Zeile 50: if ((ASP.WebForm1_aspx.__initialized == false)) {
Zeile 51: dependencies = new System.Collections.ArrayList();
Zeile 52: dependencies.Add("C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebAppl" +
Zeile 53: "ication5\WebForm1.aspx");
Zeile 54: ASP.WebForm1_aspx.__fileDependencies = dependencies;
Zeile 55: ASP.WebForm1_aspx.__initialized = true;
Zeile 56: }
Zeile 57: this.Server.ScriptTimeout = 30000000;
Zeile 58: }
Zeile 59:
Zeile 60: protected override bool SupportAutoEvents {
Zeile 61: get {
Zeile 62: return false;
Zeile 63: }
Zeile 64: }
Zeile 65:
Zeile 66: protected ASP.Global_asax ApplicationInstance {
Zeile 67: get {
Zeile 68: return ((ASP.Global_asax)(this.Context.ApplicationInstance));
Zeile 69: }
Zeile 70: }
Zeile 71:
Zeile 72: public override string TemplateSourceDirectory {
Zeile 73: get {
Zeile 74: return "/WebApplication5";
Zeile 75: }
Zeile 76: }
Zeile 77:
Zeile 78: private System.Web.UI.Control __BuildControlDBWebGrid1() {
Zeile 79: Borland.Data.Web.DBWebGrid __ctrl;
Zeile 80:
Zeile 81: #line 12 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 82: __ctrl = new Borland.Data.Web.DBWebGrid();
Zeile 83:
Zeile 84: #line default
Zeile 85: #line hidden
Zeile 86: this.DBWebGrid1 = __ctrl;
Zeile 87:
Zeile 88: #line 12 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 89: __ctrl.ID = "DBWebGrid1";
Zeile 90:
Zeile 91: #line default
Zeile 92: #line hidden
Zeile 93:
Zeile 94: #line 12 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 95: __ctrl.TableName = "rechner";
Zeile 96:
Zeile 97: #line default
Zeile 98: #line hidden
Zeile 99:
Zeile 100: #line 12 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 101: __ctrl.DataBinding += new System.EventHandler(this.__DataBindDBWebGrid1);
Zeile 102:
Zeile 103: #line default
Zeile 104: #line hidden
Zeile 105: return __ctrl;
Zeile 106: }
Zeile 107:
Zeile 108: public void __DataBindDBWebGrid1(object sender, System.EventArgs e) {
Zeile 109: System.Web.UI.Control Container;
Zeile 110: Borland.Data.Web.DBWebGrid target;
Zeile 111:
Zeile 112: #line 12 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 113: target = ((Borland.Data.Web.DBWebGrid)(sender));
Zeile 114:
Zeile 115: #line default
Zeile 116: #line hidden
Zeile 117:
Zeile 118: #line 12 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 119: Container = ((System.Web.UI.Control)(target.BindingContainer));
Zeile 120:
Zeile 121: #line default
Zeile 122: #line hidden
Zeile 123:
Zeile 124: #line 12 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 125: target.DataSource = ((object)(MySqlDataTable1));
Zeile 126:
Zeile 127: #line default
Zeile 128: #line hidden
Zeile 129:
Zeile 130: #line 12 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 131: target.DBDataSource = ((Borland.Data.Web.IDBDataSource)(DBWebDataSource1));
Zeile 132:
Zeile 133: #line default
Zeile 134: #line hidden
Zeile 135: }
Zeile 136:
Zeile 137: private System.Web.UI.Control __BuildControl__control2() {
Zeile 138: System.Web.UI.HtmlControls.HtmlForm __ctrl;
Zeile 139:
Zeile 140: #line 11 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 141: __ctrl = new System.Web.UI.HtmlControls.HtmlForm();
Zeile 142:
Zeile 143: #line default
Zeile 144: #line hidden
Zeile 145: this.__control2 = __ctrl;
Zeile 146: System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));
Zeile 147:
Zeile 148: #line 11 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 149: __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));
Zeile 150:
Zeile 151: #line default
Zeile 152: #line hidden
Zeile 153:
Zeile 154: #line 11 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 155: this.__BuildControlDBWebGrid1();
Zeile 156:
Zeile 157: #line default
Zeile 158: #line hidden
Zeile 159:
Zeile 160: #line 11 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 161: __parser.AddParsedSubObject(this.DBWebGrid1);
Zeile 162:
Zeile 163: #line default
Zeile 164: #line hidden
Zeile 165:
Zeile 166: #line 11 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 167: __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n "));
Zeile 168:
Zeile 169: #line default
Zeile 170: #line hidden
Zeile 171: return __ctrl;
Zeile 172: }
Zeile 173:
Zeile 174: private void __BuildControlTree(System.Web.UI.Control __ctrl) {
Zeile 175: System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));
Zeile 176:
Zeile 177: #line 1 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 178: __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n\r\n\r\n\r\n \r\n \r\n \r\n\r\n \r\n "));
Zeile 180:
Zeile 181: #line default
Zeile 182: #line hidden
Zeile 183:
Zeile 184: #line 1 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 185: this.__BuildControl__control2();
Zeile 186:
Zeile 187: #line default
Zeile 188: #line hidden
Zeile 189:
Zeile 190: #line 1 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 191: __parser.AddParsedSubObject(this.__control2);
Zeile 192:
Zeile 193: #line default
Zeile 194: #line hidden
Zeile 195:
Zeile 196: #line 1 "C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\WebForm1.aspx"
Zeile 197: __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n \r\n\r\n"));
Zeile 198:
Zeile 199: #line default
Zeile 200: #line hidden
Zeile 201: }
Zeile 202:
Zeile 203: protected override void FrameworkInitialize() {
Zeile 204: this.__BuildControlTree(this);
Zeile 205: this.FileDependencies = ASP.WebForm1_aspx.__fileDependencies;
Zeile 206: this.EnableViewStateMac = true;
Zeile 207: this.Request.ValidateInput();
Zeile 208: }
Zeile 209:
Zeile 210: public override int GetTypeHashCode() {
Zeile 211: return 1244099495;
Zeile 212: }
Zeile 213: }
Zeile 214: }
Zeile 215:





--------------------------------------------------------------------------------
Versionsinformationen: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET-Version:1.1.4322.2032

Kai Korla
Posts: 19
Joined: Tue 19 Sep 2006 16:44

Post by Kai Korla » Wed 20 Sep 2006 12:40

Add following into your Web.config in the section:

Code: Select all





Watch the correctness of Version and PublicKeyToken of the CoreLab.Mysql Version you use.
In normal case you might add a reference to CoreLab.Mysql in your project and the entrys would be added by VS automaticly.

regards
Kai Korla
INDEV

mydac4std
Posts: 13
Joined: Mon 20 Feb 2006 19:05

Following Error:Parser-Fehlermeldung: Datei- oder Assemblyname 'CoreLab.MySql.Web' oder eine Abhänigkeit davon wurde nic

Post by mydac4std » Wed 20 Sep 2006 12:56

Serverfehler in der Anwendung '/WebApplication5'.
--------------------------------------------------------------------------------

Konfigurationsfehler
Beschreibung: Beim Verarbeiten einer Konfigurationsdatei, die für diese Anforderung erforderlich ist, ist ein Fehler aufgetreten. Überprüfen Sie die unten angegebenen Fehlerinformationen und ändern Sie die Konfigurationsdatei entsprechend.

Parser-Fehlermeldung: Datei- oder Assemblyname 'CoreLab.MySql.Web' oder eine Abhänigkeit davon wurde nicht gefunden.

Quellfehler:


Zeile 15: defaultLanguage="c#"
Zeile 16: debug="true">
Zeile 17:
Zeile 18:
Zeile 19:


Quelldatei: C:\Dokumente und Einstellungen\lux\Eigene Dateien\Borland Studio-Projekte\WebApplication5\web.config Zeile: 17

Überwachung beim Laden der Assembly: Mit folgenden Informationen kann bestimmt werden, warum die Assembly 'CoreLab.MySql.Web' nicht geladen werden konnte.


=== Pre-bind state information ===
LOG: DisplayName = CoreLab.MySql.Web, Version=3.50.12.0, Culture=neutral, PublicKeyToken=09af7300eec23701
(Fully-specified)
LOG: Appbase = file:///C:/Dokumente und Einstellungen/lux/Eigene Dateien/Borland Studio-Projekte/WebApplication5
LOG: Initial PrivatePath = bin
Calling assembly : System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===

LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: CoreLab.MySql.Web, Version=3.50.12.0, Culture=neutral, PublicKeyToken=09af7300eec23701
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/webapplication5/caa28e35/4cb0cdd6/CoreLab.MySql.Web.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/webapplication5/caa28e35/4cb0cdd6/CoreLab.MySql.Web/CoreLab.MySql.Web.DLL.
LOG: Attempting download of new URL file:///C:/Dokumente und Einstellungen/lux/Eigene Dateien/Borland Studio-Projekte/WebApplication5/bin/CoreLab.MySql.Web.DLL.
LOG: Attempting download of new URL file:///C:/Dokumente und Einstellungen/lux/Eigene Dateien/Borland Studio-Projekte/WebApplication5/bin/CoreLab.MySql.Web/CoreLab.MySql.Web.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/webapplication5/caa28e35/4cb0cdd6/CoreLab.MySql.Web.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/webapplication5/caa28e35/4cb0cdd6/CoreLab.MySql.Web/CoreLab.MySql.Web.EXE.
LOG: Attempting download of new URL file:///C:/Dokumente und Einstellungen/lux/Eigene Dateien/Borland Studio-Projekte/WebApplication5/bin/CoreLab.MySql.Web.EXE.
LOG: Attempting download of new URL file:///C:/Dokumente und Einstellungen/lux/Eigene Dateien/Borland Studio-Projekte/WebApplication5/bin/CoreLab.MySql.Web/CoreLab.MySql.Web.EXE.




--------------------------------------------------------------------------------
Versionsinformationen: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET-Version:1.1.4322.2032

Kai Korla
Posts: 19
Joined: Tue 19 Sep 2006 16:44

Post by Kai Korla » Wed 20 Sep 2006 13:18

hi,

add a reference to CoreLab.MySql to your project using your IDE.

regards
Kai Korla
INDEV

mydac4std
Posts: 13
Joined: Mon 20 Feb 2006 19:05

Post by mydac4std » Wed 20 Sep 2006 14:30

Hi,
thank you.
You know why i can't find the CoreLab.MySQL.Web assembly??

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 20 Sep 2006 15:04

Dear mydac4std, please use English when communicating with Core Lab support team.

Post Reply