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.0Do WAP (PAs) and non-WAP (PAs) conflict?Do WAP (PAs) and non-WAP (PAs) conflict?
Previous
 
Next
New Post
5/25/2008 2:30 PM
 

Yeah that's not doing it.  But I was able to convert another module so I'm sure you're right it's something in those two modules.  I don't know.  Thanks for the continued support.


I'm too poor for anything other than the community version
 
New Post
5/25/2008 6:03 PM
 

Found it (or a buddy of mine did)...  The Module Upgrade Wizard was apparently taking off the last quote ( " ) from the line in my ModuleInfo.vb file line for #Region "Constructors"

So once the last quote was put back on...it all works fine.  On to the next!


I'm too poor for anything other than the community version
 
New Post
5/29/2008 4:15 AM
 

So, Ryno has found a way for DNN4 WAP to DNN4 WSP conversion.

But what I am loking for is DNN4 WSP to DNN4 WAP conversion. Any automated method or tools available???

The reason I want to do this is because, I have found WSP approach better for development and WAP approach better for deployment. With WSP, I can modify the code-behinds without having the entire installation to recompile (off-course changes to App_Code classes need recompilation).

Although, I have not checked it, I believe that when you debug WAP projects by attaching to ASP.NET process, the source code files (including code-behinds) would be locked up by VS. In effect, you would need to stop the process, make the change, restart & re-attach.

I believe converting from WSP to WAP should not be difficult, as code classes from App_Code can be simply copied. I have no idea about what to do with control (ascx) files & code-behinds. Any idea Mitch??

 
New Post
5/29/2008 12:15 PM
 

The conversion is TYPICALLY fairly easy by just moving the files around, you just have to make sure that you don't have any namespace issues.

You are correct with debugging WAP you must break, fix, then rebuild to test a change.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
5/31/2008 5:14 PM
 

If that Module Upgrade Wizard is open source and the code is provided I'm sure it could be updated pretty easily to do both conversions.....either way.

Here is a guide written by Mohsin and myself that we made to list the steps for converting WAP to WSP.  You might be able to use this to develop something?  I do think that's a good idea although I develop everything for my own website so I wouldn't need it particularly:

Step by Step conversion of DNN3/DNN4 WAP modules into DNN4 WSP modules for DNN 4.X
(Using the “TeamPlayerBank” module as an example)
 
  1. Create a folder called “DesktopModules” anywhere on your computer. In this folder, put your DNN3/DNN4 module source code (each with its own individual file name)….so in our case C:/DesktopModules/TeamPlayerBank
  2. Run the “Module Upgrade Wizard”
    1. For the DNN3 input box browse to the DesktopModules folder created in Step 1 (this works even if it’s a DNN4 WAP folder so don’t worry about it being labeled as “Version 3” in the Wizard)
    2. For the DNN4 input box browse to the root of your local DNN4 install that you use for your coding environment
    3. Select “Next”
    4. Check the Module(s) you want to port over to DNN4 WSP format
    5. Click “Finish” and the browser will create the new WSP folders on your DNN4 local install and make several changes to the file structure (some info on what the wizard actually does can be found at the DotNetNuke website)
  3. Rename ViewTeamPlayerBank.ascx to TeamPlayerBank.ascx
  4. Rename EditTeamPlayerBank.ascx to TeamPlayerBankEdit.ascx
  5. In the TeamPlayerBank.vb/Settings.vb/TeamPlayerBankEdit.vb files comment out all “'Protected WithEvents” from #Region"Web Form Designer Generated Code" or “Controls”
  6. In the Dataprovider.vb file change the line “objProvider =  CType(Framework.Reflection.CreateObject("data", "Ryno.DNN.Modules.TeamPlayerBank.Data", "Ryno.DNN.Modules.TeamPlayerBank"), DataProvider)” to “objProvider = CType(Framework.Reflection.CreateObject("data", "Ryno.DNN.Modules.TeamPlayerBank.Data", ""), DataProvider)”
  7. Use an existing WSP .DNN file and do a Text Search/Replace to reflect the “TeamPlayerBank” instead of the other module name or type up a new .dnn from scratch as is included in the “.DNN file” attachment (see below)
  8. In the TeamPlayerBankController.vb and TeamPlayerBank.ascx.vb do a Text Search/Replace changing “Services.Search.SearchItemInfoCollection” to DotNetNuke.Services.Search.SearchItemInfoCollection
  9. Make sure the “Constructors” stub in the TeamPlayerBankInfo.vb is not missing the trailing apostrophe which happens some of the time.
  10. Compile in Visual Studio and fix any errors that might result for more complicated modules.
  11. Run the existing SQL script to create the database/Stored Procedures
  12. Import the Manifest (.dnn file) in the Module Definitions page (will be listed as long as there is a .dnn file in the DesktopModules/TeamPlayerBank folder 
“.DNN FILE” ATTACHMENT
 
<dotnetnukeversion="3.0"type="Module">
 <folders>
    <folder>
      <name>TeamPlayerBank</name>
      <friendlyname>TeamPlayerBank</friendlyname>
      <foldername>TeamPlayerBank</foldername>
      <modulename>TeamPlayerBank</modulename>
      <description>A TeamPlayerBank module</description>
      <version>01.00.00</version>
      <businesscontrollerclass>Ryno.DNN.Modules.TeamPlayerBank.TPPBankController</businesscontrollerclass>
      <modules>
        <module>
          <friendlyname>TeamPlayerBank</friendlyname>
          <cachetime>60</cachetime>
          <controls>
            <control>
              <src>DesktopModules/TeamPlayerBank/TeamPlayerBank.ascx</src>
              <type>View</type>
              <helpurl></helpurl>
            </control>
            <control>
              <key>Edit</key>
              <title>Edit Content</title>
              <src>DesktopModules/TeamPlayerBank/TeamPlayerBankEdit.ascx</src>
              <type>Edit</type>
              <helpurl></helpurl>
            </control>
            <control>
              <key>Settings</key>
              <title>TeamPlayerBank Settings</title>
              <src>DesktopModules/TeamPlayerBank/Settings.ascx</src>
              <type>Edit</type>
              <helpurl></helpurl>
            </control>
          </controls>
        </module>
      </modules>
      <files>
        <file>
          <name>TeamPlayerBank.ascx</name>
        </file>
        <file>
          <name>TeamPlayerBank.ascx.vb</name>
        </file>
        <file>
          <name>TeamPlayerBankEdit.ascx</name>
        </file>
        <file>
          <name>TeamPlayerBankEdit.ascx.vb</name>
        </file>
        <file>
          <name>Settings.ascx</name>
        </file>
        <file>
          <name>Settings.ascx.vb</name>
       </file>
        <file>
          <path>App_LocalResources</path>
          <name>ViewTeamPlayerBank.ascx.resx</name>
        </file>
        <file>
          <path>App_LocalResources</path>
          <name>EditTeamPlayerBank.ascx.resx</name>
        </file>
        <file>
          <path>App_LocalResources</path>
          <name>Settings.ascx.resx</name>
        </file>
        <file>
          <path>[app_code]</path>
          <name>DataProvider.vb</name>
        </file>
        <file>
          <path>[app_code]</path>
          <name>TeamPlayerBankController.vb</name>
        </file>
        <file>
          <path>[app_code]</path>
          <name>TeamPlayerBankInfo.vb</name>
        </file>
        <file>
          <path>[app_code]</path>
          <name>SqlDataProvider.vb</name>
        </file>
        <file>
          <name>01.00.00.SqlDataProvider</name>
        </file>
        <file>
          <name>Uninstall.SqlDataProvider</name>
        </file>
      </files>
    </folder>
 </folders>
</dotnetnuke>

I'm too poor for anything other than the community version
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Do WAP (PAs) and non-WAP (PAs) conflict?Do WAP (PAs) and non-WAP (PAs) conflict?


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