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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreDevelopment in VisStudio5 and ASP.NET 2.0Development in VisStudio5 and ASP.NET 2.0
Previous
 
Next
New Post
8/1/2006 12:05 PM
 
Hi,
I want to modify the store module for a project I'm working on. I'm having trouble working with the source in Visual Studio 2005 on ASP.NET 2.0. Is there a guide anywhere that can help get set up on this.

I've used the Module conversion wizard and been through to fix all the broken references to DotNetNuke.dll in the Store solution's projects but it won't compile (hundreds of errors) - mostly to do with "The name 'xxxx' does not exist in this context".

Essentially the process of moving the source from ASP.NET 1.1 to ASP.NET 2.0 isn't working (module conversion wizard works fine (apart from putting "partial partial" modifier in from of class definitions) - when I open the solution in Visual Studio it does more conversion and leaves a some broken refernces). I'm pretty sure I'm converting the source code to the right place (DesktopModules/Store/).

If anyone knows how to fix this, please tell me. Otherwise is there any timeline for moving the source over to ASP.NET2.0?

Stu
 
New Post
8/2/2006 10:00 AM
 
OK, for anyone interested, here's how far I've got (pretty much starting from scratch after my last post):

-Install DNN 3 from Source
-Install DNN 4 using starter kit File->New Website (equivalent to doing it from source?) in a separate location
-Extract the Store module source (from the .resources file) to [DNN3]\DesktopModules\Store
-Run the module conversion wizard taking the store from the v3 site to the v4 site
-Open the v4 site again in VS2005

Got lots of errors in globals.asax, fixed some by:
adding "Imports System.Web" to the imports section; apparently this step is missed out by the module converter.

I'm still getting problems because the following imports aren't working, leading to multiple "Name '....' not defined/declared" errors:
-DotNetNuke.Security.Roles
-DotNetNuke.Services.Log.EventLog
-DotNetNuke.Upgrade
Presumably these are in their own DLL files but I don't know where to find them (they're not in [dnn4]\bin).

Any more help?
 
New Post
8/2/2006 6:45 PM
 
bugmenot1 wrote
OK, for anyone interested, here's how far I've got (pretty much starting from scratch after my last post):

...

Any more help?


I cant comment yet on how to do this, but I will be attempting to load the store project in VS 2005 myself in a few days time ... Will post on how it goes

JK

You know your website is cool, so why not let your users help you by spreading the word on social networking sites - get the DotNetNuke Social Bookmarks Module with 57 different ways to add social bookmarks to your site ... or download the FREE demo right now
 
New Post
8/2/2006 8:55 PM
 
jk_nzd wrote
... I will be attempting to load the store project in VS 2005 myself in a few days time ... Will post on how it goes

JK


Actually, I got impatient and downloaded C# express 2005 instead of waiting for my new copy of VS2005 to arrive

So I attempted to convert the project - it took about 30 mins and was sucessful

Here is how to convert a 2003 DNN project to 2005 DNN project (should work for any 2003 DNN project, VB or C#)


1. Install the .install version to your DNN website
2. Copy the .source version to somewhere else (anywhere not under the web root directory)

3. Open the project in C#2005 express (or VS2005)
4. Project upgrade wizard launches, click Next until it finishes
5. Upgrade should complete with no errors and several warnings

6. For each project in the solution (20 of them in the store solution), check the references
6a. If it refers to DotNetNuke, remove reference and add new reference to the DotNetNuke.dll located in your website/bin folder
6b. Repeat for CountryListBox (new location is website/bin)
6c. Repeat for Microsoft.ApplicationBlocks.Data (new location is website/bin)
7. Remove the project DotNetNuke from your solution (we only refer to it by file reference to the .dll now)

8. Build solution - you may get compile errors
9. Add a reference to DotNetNuke.dll for any projects that have compile errors.  In the store solution this means the DotNetNuke.Store.WebControls project
10. Rebuild solution - Success! :)

11. Optional - the projects all build .dlls to their own bin directory eg DotNetNuke.Store.WebControls/bin/release.  Change the projects so that they all build to the sourceroot directory/bin/release.

12. Note that if you move the website directory then your references will break.  Go back and reset them to the new location after moving.

13. Make any changes you want to the project
14. Compile
15. Copy your new dlls to website/bin

Easy as that :)

JK


You know your website is cool, so why not let your users help you by spreading the word on social networking sites - get the DotNetNuke Social Bookmarks Module with 57 different ways to add social bookmarks to your site ... or download the FREE demo right now
 
New Post
8/3/2006 6:15 AM
 
Thanks a lot, I'll try it out now. I repeated the process I set out several times yesterday. The "imports Dotnetnuke...." things started working at some point but broke again when I attempted to repeat.

Note that when I converted the store project in vs2005 (after running the module upgrade wizard) it used to stick in partial partial. I'll see if your method (not using the wizard first) avoids this.

Stu
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreDevelopment in VisStudio5 and ASP.NET 2.0Development in VisStudio5 and ASP.NET 2.0


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