Thanks for the post but i still get errors.
But first i write down what i did.
In every thread you are talking about references. (it's the only thing i do wright now)
First of all: I build with succes 2 projects:
* MySqlDQE
* ORMSupportClasses
Now i build first the ORMSupportClasses because the MySQLDQE has 1 reference to it.
(In the ORMSupportClasses are no changes to make about references.)
After the first build i removed 3 references in the MySqlDQE project.
- CoreLab.Data
- CoreLab.MySql
- ORMSupportClasses
And I create 3 new one's:
1) CoreLab.Data ==> C:\Program Files\CoreLab\MyDirect.NET2\CoreLab.Data.dll
2) CoreLab.MySql ==> C:\Program Files\CoreLab\MyDirect.NET2\CoreLab.MySql.dll
3) ORMSupportClasses ==> C:\Program Files\Solutions Design\LLBLGen Pro v2.6\Sourcecode\RuntimeLibraries\Net2.x\ORMSupportClasses\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll
First i did clean and after that i build in release mode. No problems so far.
Ok Next step is create my new project where i need the new created fresh dll's.
Just 1 simple ASP.NET page (inside Web application 3.5)
Default page has a button and label. the butten will update the label with some data retrieved from the database. (If it works LOL)
Now when i compile with the new ddl references to my new project i get this 6 Errors:
Error 1 The type 'SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'SD.LLBLGen.Pro.ORMSupportClasses.NET20, Version=2.6.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27'. E:\Projects\corelabDLLTest\CorelabDLL\Default.aspx.cs 44 17 CorelabDLL
Error 2 The type 'SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2' is defined in an assembly that is not referenced. You must add a reference to assembly 'SD.LLBLGen.Pro.ORMSupportClasses.NET20, Version=2.6.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27'. E:\Projects\corelabDLLTest\CorelabDLL\Default.aspx.cs 46 17 CorelabDLL
Error 3 The type 'SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields2' is defined in an assembly that is not referenced. You must add a reference to assembly 'SD.LLBLGen.Pro.ORMSupportClasses.NET20, Version=2.6.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27'. E:\Projects\corelabDLLTest\CorelabDLL\Default.aspx.cs 46 17 CorelabDLL
Error 4 The type 'SD.LLBLGen.Pro.ORMSupportClasses.IValidator' is defined in an assembly that is not referenced. You must add a reference to assembly 'SD.LLBLGen.Pro.ORMSupportClasses.NET20, Version=2.6.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27'. E:\Projects\corelabDLLTest\CorelabDLL\Default.aspx.cs 46 17 CorelabDLL
Error 5 'LeMoustique.DAL.DatabaseSpecific.DataAccessAdapter' does not contain a definition for 'FetchEntity' and no extension method 'FetchEntity' accepting a first argument of type 'LeMoustique.DAL.DatabaseSpecific.DataAccessAdapter' could be found (are you missing a using directive or an assembly reference?) E:\Projects\corelabDLLTest\CorelabDLL\Default.aspx.cs 47 21 CorelabDLL
Error 6 'LeMoustique.DAL.DatabaseSpecific.DataAccessAdapter' does not contain a definition for 'Dispose' and no extension method 'Dispose' accepting a first argument of type 'LeMoustique.DAL.DatabaseSpecific.DataAccessAdapter' could be found (are you missing a using directive or an assembly reference?) E:\Projects\corelabDLLTest\CorelabDLL\Default.aspx.cs 49 21 CorelabDLL
This is the code from the cs file:
protected void Button2_Click(object sender, EventArgs e)
{
try
{
DataAccessAdapter DAA = new DataAccessAdapter();
int nr = Convert.ToInt32(TextBox1.Text);
UsersEntity UE = new UsersEntity(nr);
DAA.FetchEntity(UE);
DAA.Dispose();
Label2.Text = "hello " + UE.FirstName + " " + UE.LastName;
}
catch (Exception ex)
{
log.Fatal(ex.Message);
}
}
- Now i deleted my references and created all 3 again in (LLBLGenProRuntimeLibraries 2.6)
- Removed existing data from Bin folder.(LLBLGenProRuntimeLibraries 2.6)
- Build with succes. for .net Framework 2.0
after that:
- Created new web application 3.5 and added 4 references:
1) added CoreLab.Data ==> C:\Program Files\CoreLab\MyDirect.NET2\CoreLab.Data.dll in the DBSpecific project.
2) CoreLab.Data ==> C:\Program Files\CoreLab\MyDirect.NET2\CoreLab.Data.dll
2) CoreLab.MySql ==> C:\Program Files\CoreLab\MyDirect.NET2\CoreLab.MySql.dll
3) ORMSupportClasses ==> C:\Program Files\Solutions Design\LLBLGen Pro v2.6\Sourcecode\RuntimeLibraries\Net2.x\ORMSupportClasses\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll
- cleaned up before build and i still get errors.
Now correct me if i did something wrong or forget something.
Are there other references i need to make ?
TBC
Kris