Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Conflicting Microsoft.ApplicationBlockConflicting Microsoft.ApplicationBlock
Previous
 
Next
New Post
2/2/2008 7:06 AM
 

Hi all,

First of all, this is the first ever DNN module I've developed so, if you find something that makes you say "dude, what?" is because of that fact. I have a main database from which we all get our data off and set data. There is an API that was developed so that we could interact with the database and this API uses Microsoft.ApplicationBlocks.Data v.2.0.0. I wasn't even able to finish my module (following the steps outlined here) when I noticed that my development server went for a stroll saying "System.IO.FileLoadException: Could not load file or assembly Microsoft.ApplicationBlocks.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)". All references to the API have been removed but it doesn't get over it, it still complains about the same thing. It is mandatory to use that API, so, what can be done for DotNetNuke and the API to work?

Thanks in advance,

Garbimba

 
New Post
2/2/2008 11:20 AM
 

The core DotNetNuke code is using an earlier version of the Microsoft Application Blocks to run so yes that has to be there. However it should not cause problems with your 2.0 version just because it's on the same machine. Somehow you are referencing your Microsoft Application Blocks 2.0 in your DotNetNuke project.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
2/3/2008 5:19 AM
 

Hi Michael,

This is when the whole thing started. I tried to create my first dynamic module, the folders where created, life was good. Then I went on to reference my APIs so they will be added to the "Bin" folder of the portal. After that I changed the namespaces names on the created classes to my own names. Right after that I got lost among the different files created by the starter kit so I stepped back trying to figure out how it all worked. Then some changes on the page's text had to be made and then is when it all failed. To get back running, first I tried to delete the references to my API; didn't do it. Then I made a copy from the production machine and life was good again. Now I don't know where the extra reference was made and I'm hesitant of making another module. Where was my mistake and if so, how can I do ti better now?

Thanks,

 
New Post
2/3/2008 10:44 AM
 

If you use the WSP (see: Super-Simple Module (DAL+) (C# and VB) )model for making a module you don't have to make any references at all so you wont have this problem.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
2/4/2008 10:50 AM
 

Michael,

Inserting your business logic into your presentation layer isn't something that should be encouraged. Though your suggestion solves, in a way, the problem, it just avoids the problem. Using the steps outlined in your guide I was able to easily create a module but when I went to reference the library at the project level it just broke again. Do you, or anybody, have another idea?

Thanks,

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Conflicting Microsoft.ApplicationBlockConflicting Microsoft.ApplicationBlock


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out