Friday, January 09, 2009

Smart-Thinker DNN Forums

Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service. We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

 
 
  Forums  DotNetNuke  Smart-Thinker H...  Rodney, Where is the module removal procedure?
Previous Previous
 
Next Next
New Post 11/15/2006 11:03 AM
  Buck Anderson
45 posts
www.justnorth.com
4th Level Poster


Rodney, Where is the module removal procedure?  (N/A)

Hi Rodney,

I am in the final phase of cleaning up a 1200 page DNN 3.2.2 site in preparation for upgrade to DNN 4.3.5. I think it would be best practice to remove all of your modules, perform the upgrade and then re-install the 4x versions.

I have seven homepages created for our staff (Need to remove). I have events, birthday, etc. - not currently in use but module page instances have been created.

Can I just delete the modules off of each homepage instance and then delete the page?

What is the proper procedure to remove all smart-thinker modules cleanly?

TIA
Buck


Buck Anderson JustNorth Outdoors www.justnorth.com
 
New Post 11/16/2006 10:09 AM
  Rodney Joyce
3071 posts
www.DNNDir.com
1st Level Poster




Re: Rodney, Where is the module removal procedure?  (N/A)
Modified By Rodney Joyce  on 11/16/2006 12:09:24 PM)
Hi Buck,

I am not sure you need to uninstall the modules - I upgraded PokerDIY from 3.2.0 (way behind 3.2.2) to 4.3.5 and had very little hassle. (I have all the Smart-Thinker modules installed ;)

The problem is (and this is getting better with each release as I move all common code into the libraries (which defeats the purpose of shared code but don't get me started ;) that when you unstall the module it will delete the ModuleFramework.dll. The HomePage module depends on this and it can cause problems, so ensure you have FTP up just in case. The worst case scenario is that the you cannot access the site through the UI as DNN throws an error because of the missing .dll - hence you have to FTP up the .dll to the \bin dir.

To get around this, it may be easier to remove the HomePage module (if you have no data). Log in as Host and change the control panel back to the normal DNN panel (it will be on Smart-Thinker HomePage). The uninstall SQL does this anyway, but you can do it just to be on the safe side.

Uninstall the module as normal. This should all be fine - the pages will remain untouched (I did not want to erase tabs on uninstall) - so if you don't need these pages then I would erase them manually or with a script (the new pages link up slightly better).

I would leave all the other ST modules and do the upgrade, and then install all the new 4.3.1 versions of the ST modules. It's quite an unusal scenario us developers faced with the DNN 3.x to 4.x AND ASP 1.1 to ASP 2.0 upgrade but hopefully it will all go smoothly.

When are you doing the upgrade?


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 11/16/2006 12:23 PM
  Buck Anderson
45 posts
www.justnorth.com
4th Level Poster


Re: Rodney, Where is the module removal procedure?  (N/A)
Modified By Buck Anderson  on 11/16/2006 2:25:46 PM)

Hi Rodney,

I am planning on a cutover this weekend. I have followed your conversations, with Scott, regarding the installation process. I thought, until you have it going, it would be better to just un-install since I have to rebuild all the pages, that use these modules.

My main concern is the homepage module. Don't get me wrong, it is a great mod, but as we discussed I can't use it until we have admin templating.

My plan is to set up the site using the groups and events at first.

I just want to start with a clean smart-thinker beginning with 4x. How close are you to the an installation process where we don't have to worry about module installation order?

Is there a spot on the site, where if I do start clean, that shows the 4x module install order?

BTW - Why aren't paragraph and line breaks working in my posts?

TIA
Buck


Buck Anderson JustNorth Outdoors www.justnorth.com
 
New Post 11/17/2006 3:36 AM
  Rodney Joyce
3071 posts
www.DNNDir.com
1st Level Poster




Re: Rodney, Where is the module removal procedure?  (N/A)
Hi Buck,

Yes, I know - the HomePage module is definitely a little trickier than other modules due to the way it works.

"How close are you to the an installation process where we don't have to worry about module installation order?"
Very close - Basically,  UserGroups,  UserProfiles and Events 4.3.1 do not share the ModuleFramework code (they do share Licensing code but this is not a problem as it does not change). I am working on the new Referrals and Quotes modules which will also not share code, these will be out in the next 4-5 weeks. The HomePage module does still use the ModuleFramework, which means that at this precise point in time the Referrals, Quotes and Events (for the next few days) should be installed before it. In 1 month or so there will be no shared code and no more problems (as I bring all the modules up to the 4.3.x versions). Ironically the core will probably make the PA Installer smarter at exactly this point which means I will have to put all the shared code back in ;)

So... if you are going to uninstall everything, install all the 3.x versions (by that I mean the module version will NOT be 4.3.x, it will be 1.0.5 or something. All 4.x module versions start with 4.3.x). Then install the HomePage module, then the UserProfile, then UserGroups.

The paragraphs and line breaks are a CSS issue with this skin - need to look at it at some point.



Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 11/18/2006 1:37 AM
  Buck Anderson
45 posts
www.justnorth.com
4th Level Poster


Re: Rodney, Where is the module removal procedure?  (N/A)

 rod wrote
Hi Buck,

Yes, I know - the HomePage module is definitely a little trickier than other modules due to the way it works.

"How close are you to the an installation process where we don't have to worry about module installation order?"
Very close - Basically,  UserGroups,  UserProfiles and Events 4.3.1 do not share the ModuleFramework code (they do share Licensing code but this is not a problem as it does not change). I am working on the new Referrals and Quotes modules which will also not share code, these will be out in the next 4-5 weeks. The HomePage module does still use the ModuleFramework, which means that at this precise point in time the Referrals, Quotes and Events (for the next few days) should be installed before it. In 1 month or so there will be no shared code and no more problems (as I bring all the modules up to the 4.3.x versions). Ironically the core will probably make the PA Installer smarter at exactly this point which means I will have to put all the shared code back in ;)

So... if you are going to uninstall everything, install all the 3.x versions (by that I mean the module version will NOT be 4.3.x, it will be 1.0.5 or something. All 4.x module versions start with 4.3.x). Then install the HomePage module, then the UserProfile, then UserGroups.

The paragraphs and line breaks are a CSS issue with this skin - need to look at it at some point.


Hi Rod,

Well I am right in the middle of the upgrade. For the most part things are going fair. I got most of the mods installed.

I cannot install the Groups mod. I get the following error:

ExceptionICSharpCode.SharpZipLib.ZipException: Wrong Local header signature: 0x88B1F at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.ReadZipStream() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()

I also cannot access File Manager with a similar err:

Error: File Manager is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: E:\Domains\justnorth.com\wwwroot\Admin\Files\FileManager.ascx.vb(777): error BC30560: 'ZipEntry' is ambiguous in the namespace 'ICSharpCode.SharpZipLib.Zip'. ---> System.Web.HttpCompileException: E:\wwwroot\Admin\Files\FileManager.ascx.vb(777): error BC30560: 'ZipEntry' is ambiguous in the namespace 'ICSharpCode.SharpZipLib.Zip'. at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

 

Might be an old dll still in the system. Can you shed some light or send me the correct dll file?

Thanks
Buck


Buck Anderson JustNorth Outdoors www.justnorth.com
 
New Post 11/18/2006 2:14 AM
  Rodney Joyce
3071 posts
www.DNNDir.com
1st Level Poster




Re: Rodney, Where is the module removal procedure?  (N/A)
Hi Buck,

Aha - I also received this on my 3-> 4x upgrade. Do you use Blowery compression? you need to remove it from the \bin and disable it in your webconfig if so (this is something I have learnt the hard way - always remove HTTP compression if upgrading)

You can then install the ASP.NET 2.x version after successful upgrade.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 11/18/2006 3:28 AM
  Buck Anderson
45 posts
www.justnorth.com
4th Level Poster


Re: Rodney, Where is the module removal procedure?  (N/A)

Hi Rod,

Yes I had Blowery but I had removed it from the web.config before running the install. I have removed the dlls from the bin and I re-installed all the folders from the DNN 4.3.5 install files. File Manager is back but I still get the same err when trying to install groups mod All other ST mods installed without issue):

ExceptionICSharpCode.SharpZipLib.ZipException: Wrong Local header signature: 0x88B1F at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.ReadZipStream() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()

The ICSharpCode.SharpZipLib.dll has been removed from the bin. I have downloaded the .net 2.0 compatible blowery but was not intending to re-install. I would not think that groups relies on this dll. Am I correct? I could put the new blowery sharp dlls back into the bin to see what happens - but don't really want to. What do you suggest?

TIA
Buck

 


Buck Anderson JustNorth Outdoors www.justnorth.com
 
New Post 11/20/2006 2:22 AM
  Rodney Joyce
3071 posts
www.DNNDir.com
1st Level Poster




Re: Rodney, Where is the module removal procedure?  (N/A)
Aah - this could be the corrupt .zip problem that's throwing us off here if the others modules work. Have a look at his post:

http://www.smart-thinker.com/Support/Forums/tabid/111/forumid/11/threadid/558/scope/posts/Default.aspx

Let me know how you get on...

Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 11/20/2006 6:26 AM
  Buck Anderson
45 posts
www.justnorth.com
4th Level Poster


Re: Rodney, Where is the module removal procedure?  (N/A)

 rod wrote
Aah - this could be the corrupt .zip problem that's throwing us off here if the others modules work. Have a look at his post:

http://www.smart-thinker.com/Support/Forums/tabid/111/forumid/11/threadid/558/scope/posts/Default.aspx

Let me know how you get on...

Hi Rod,

Yes that did the job - thanks. I forgot about the download button issue.

 

Now if you could point me in the right direction on post:

 

http://www.smart-thinker.com/Support/Forums/tabid/111/forumid/5/threadid/1918/scope/posts/Default.aspx

I had been using it with DNNStuff SqlView mod to show latest users. Since the upgrade, it no longer brings in new users. Figure a user table change in 4x somewhere.

FYI - I will let you know when I have groups and membership service section of our site up and running. Always appreciate your assistance.

TIA
Buck


Buck Anderson JustNorth Outdoors www.justnorth.com
 
New Post 11/20/2006 10:52 AM
  Buck Anderson
45 posts
www.justnorth.com
4th Level Poster


Re: Rodney, Where is the module removal procedure?  (N/A)
 justnorth wrote

 rod wrote
Aah - this could be the corrupt .zip problem that's throwing us off here if the others modules work. Have a look at his post:

http://www.smart-thinker.com/Support/Forums/tabid/111/forumid/11/threadid/558/scope/posts/Default.aspx

Let me know how you get on...

Hi Rod,

Yes that did the job - thanks. I forgot about the download button issue.

 

Now if you could point me in the right direction on post:

 

http://www.smart-thinker.com/Support/Forums/tabid/111/forumid/5/threadid/1918/scope/posts/Default.aspx

I had been using it with DNNStuff SqlView mod to show latest users. Since the upgrade, it no longer brings in new users. Figure a user table change in 4x somewhere.

FYI - I will let you know when I have groups and membership service section of our site up and running. Always appreciate your assistance.

TIA
Buck

 

Rod,

I know your busy but you probably have the answer to this. Please get back to me when you can.

The proc below, using DNNStuff Sql view worked fin until the 4x upgrade. I have isolated the problem to the line:

INNER JOIN

dbo.aspnet_Profile aspnet_Profile_1 ON aspnet_Profile_1.userid = aspnet_Membership_1.userid

It seems that any new users aded since the upgrade - the UserId in the profile table does not match the UserId in the membership table.

I can run the following and the current names return fine:

select Top 11 Users_1.UserName AS [Name]

FROM

dbo.Users Users_1

left join UserPortals UP on Users_1.UserId = UP.UserId

order by UP.CreatedDate DESC

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Here is the original proc that is returning all the information for users prior to the upgrade:

select Top 11 Users_1.UserName AS [Name], dbo.GetProfileElement('Region', PropertyNames, PropertyValuesString) AS Region

FROM

dbo.Users Users_1 INNER JOIN

dbo.aspnet_Users aspnet_Users_1 ON Users_1.username = aspnet_Users_1.username

INNER JOIN

dbo.aspnet_Membership aspnet_Membership_1 ON aspnet_Users_1.userid = aspnet_Membership_1.userid

INNER JOIN

dbo.aspnet_Profile aspnet_Profile_1 ON aspnet_Profile_1.userid = aspnet_Membership_1.userid

left join UserPortals UP on Users_1.UserId = UP.UserId

where (UP.PortalId = 1) and (aspnet_Membership_1.IsApproved = 1)

order by UP.CreatedDate DESC

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Here is the function:

CREATE FUNCTION [dbo].[GetProfileElement]

(

@fieldName AS NVARCHAR(100),

@fields AS NVARCHAR(4000),

@values AS NVARCHAR(4000)

)

RETURNS NVARCHAR(4000)

AS

BEGIN

-- If input is invalid, return null.

IF @fieldName IS NULL

OR LEN(@fieldName) = 0

OR @fields IS NULL

OR LEN(@fields) = 0

OR @values IS NULL

OR LEN(@values) = 0

RETURN NULL

-- locate FieldName in Fields

DECLARE @fieldNameToken AS NVARCHAR(20)

DECLARE @fieldNameStart AS INTEGER, @valueStart AS INTEGER, @valueLength AS INTEGER

-- Only handle string type fields (:S:)

SET @fieldNameStart = CHARINDEX(@fieldName + ':S',@Fields,0)

-- If field is not found, return null

IF @fieldNameStart = 0 RETURN NULL

SET @fieldNameStart = @fieldNameStart + LEN(@fieldName) + 3

-- Get the field token which I've defined as the start of the field offset to the end of the length

SET @fieldNameToken =

SUBSTRING(@Fields,@fieldNameStart,LEN(@Fields)-@fieldNameStart)

-- Get the values for the offset and length

SET @valueStart = dbo.getelement(1,@fieldNameToken,':')

SET @valueLength = dbo.getelement(2,@fieldNameToken,':')

-- Check for sane values, 0 length means the profile item was stored, just no data

IF @valueLength = 0 RETURN ''

-- Return the string

RETURN SUBSTRING(@values, @valueStart+1, @valueLength)

END

 

Sorry to hit you with this but it is driving me crazy,

Buck


Buck Anderson JustNorth Outdoors www.justnorth.com
 
New Post 11/21/2006 3:32 AM
  Rodney Joyce
3071 posts
www.DNNDir.com
1st Level Poster




Re: Rodney, Where is the module removal procedure?  (N/A)
Hi Buck,

I'm not ignoring you, I am just trying to release the Events module (was supposed to be yesterday but found a bug with custom module perms) so I'm trying for today now..

Back soon!

Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  Smart-Thinker H...  Rodney, Where is the module removal procedure?
Top Threads Minimize
In the past 1 week, we have 22 new thread(s) and 48 new post(s)
The most popular thread has been Re: Sponsored Enhancement Proposal Estimate - StoryFeed Commenting
The most active thread has been accept Friend Request?
Print  

Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker