System.TypeLoadException after update

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
9/15/2009 9:16:20 AM
Gravatar
Total Posts 220

System.TypeLoadException after update

Hi Joe,

I got the last trunk from Novell with TortoiseSVN, rebuilt it in VSExpress 2008 Version 9.0 and made a setup in IIS with the MSSQL database.
Since everything works fine I deploy the web to a local folder with Unleash It.
Then I copied the 4 dlls from the mysqldatalayer-GPL folder of mojoportal-2-3-1-7 into the bin and also all files from sts-eventcalendarpro-0-0-1-7 DataLayers folder and all folders from the wwwroot folder from sts-eventcalendarpro-0-0-1-7 into the root ...
I changed the connection string to the MySqlConnectionString that points to an existing db, make the setup and everything works still fine - exept the calender pro. When I switch to the page with it:
The type "mojoPortal.Data.SqlParameterHelper" in the assembly "mojoPortal.Data, Version=1.0.3540.11666, Culture=neutral, PublicKeyToken=null" could not be loaded.
When I try to create a new in the content manager the same exception crop up.

I think I have forgot about something ...

Best
Matthias

 
9/15/2009 9:25:42 AM
Gravatar
Total Posts 18439

Re: System.TypeLoadException after update

Hi Matthias,

That error clearly indicates you have the MS SQL version of sts.Events.Data.dll in the bin folder.

Also if building from source you should build it directly for MySql not replace dlls for mojoportal, only change dlls for Event Calendar Pro.

See changing the data layer in Visual Studio to learn how to change the project references to point to MySql.

Hope it helps,

Joe

9/15/2009 2:40:29 PM
Gravatar
Total Posts 220

Re: System.TypeLoadException after update

Well, it helped Embarassed.
Thanks
Matthias

9/15/2009 2:53:45 PM
Gravatar
Total Posts 220

Re: System.TypeLoadException after update

Now I realize the mistake I made several times!

I always copied first the MySQL version of sts.Events.Data.dll into the bin folder and afterwards the folders from the wwwroot folder from sts-eventcalendarpro-0-0-1-7, and among them is the bin with the MSSQL version of sts.Events.Data.dll and it overwrites the ....

Good stuff for your book "mojoportal for dummys" Laughing.

Best

Matthias

You must sign in to post in the forums. This thread is closed to new posts.