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.0The 19 warnings known - How can I get rid of them ?The 19 warnings known - How can I get rid of them ?
Previous
 
Next
New Post
3/28/2008 12:21 PM
 

Dear all,

 

In my VS.NET 2005 environment the following warnings has followed me always when working with DNN (Can someone help me to get rid of these ?):

Warning 1 'DotNetNuke.Services.Localization.TokenReplace' is obsolete: 'This class has been deprecated, please use DotNetNuke.Services.Tokens.TokenReplace instead' C:\_B2MWeb_RC1\Library\Components\Localization\TokenReplace.vb 201 69 DotNetNuke.Library
Warning 2 'DotNetNuke.Services.Localization.TokenReplace' is obsolete: 'This class has been deprecated, please use DotNetNuke.Services.Tokens.TokenReplace instead' C:\_B2MWeb_RC1\Library\Components\Localization\TokenReplace.vb 202 23 DotNetNuke.Library
Warning 3 'DotNetNuke.Services.Localization.TokenReplace' is obsolete: 'This class has been deprecated, please use DotNetNuke.Services.Tokens.TokenReplace instead' C:\_B2MWeb_RC1\Library\Components\Localization\TokenReplace.vb 207 77 DotNetNuke.Library
Warning 4 'DotNetNuke.Services.Localization.TokenReplace' is obsolete: 'This class has been deprecated, please use DotNetNuke.Services.Tokens.TokenReplace instead' C:\_B2MWeb_RC1\Library\Components\Localization\TokenReplace.vb 208 23 DotNetNuke.Library
Warning 5 'DotNetNuke.Services.Localization.TokenReplace' is obsolete: 'This class has been deprecated, please use DotNetNuke.Services.Tokens.TokenReplace instead' C:\_B2MWeb_RC1\Library\Components\Localization\TokenReplace.vb 214 44 DotNetNuke.Library
Warning 6 'DotNetNuke.Services.Localization.TokenReplace' is obsolete: 'This class has been deprecated, please use DotNetNuke.Services.Tokens.TokenReplace instead' C:\_B2MWeb_RC1\Library\Components\Localization\TokenReplace.vb 218 68 DotNetNuke.Library
Warning 7 'DotNetNuke.Services.Localization.TokenReplace' is obsolete: 'This class has been deprecated, please use DotNetNuke.Services.Tokens.TokenReplace instead' C:\_B2MWeb_RC1\Library\Components\Localization\TokenReplace.vb 222 81 DotNetNuke.Library
Warning 8 'DotNetNuke.Services.Localization.TokenReplace' is obsolete: 'This class has been deprecated, please use DotNetNuke.Services.Tokens.TokenReplace instead' C:\_B2MWeb_RC1\Library\Components\Localization\TokenReplace.vb 226 107 DotNetNuke.Library
Warning 9 'DotNetNuke.Services.Localization.TokenReplace' is obsolete: 'This class has been deprecated, please use DotNetNuke.Services.Tokens.TokenReplace instead' C:\_B2MWeb_RC1\Library\Components\Localization\TokenReplace.vb 244 171 DotNetNuke.Library
Warning 10 'DotNetNuke.Services.Localization.TokenReplace' is obsolete: 'This class has been deprecated, please use DotNetNuke.Services.Tokens.TokenReplace instead' C:\_B2MWeb_RC1\Library\Components\Localization\TokenReplace.vb 245 24 DotNetNuke.Library
Warning 11 Function 'DeserializeModule' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. C:\_B2MWeb_RC1\Library\Components\Modules\ModuleController.vb 531 9 DotNetNuke.Library
Warning 12 'Public Function GetDesktopModuleByFriendlyName(FriendlyName As String) As Entities.Modules.DesktopModuleInfo' is obsolete: 'As the FriendlyName is not guaranteed to be the same as when the module is created, this method has been replaced by GetDesktopModuleByModuleName(moduleName)' C:\_B2MWeb_RC1\Library\Components\ResourceInstaller\PaDnnInstallerBase.vb 353 57 DotNetNuke.Library
Warning 13 'Public Shared Function HasModulePermission(moduleID As Integer, PermissionKey As String) As Boolean' is obsolete: 'This method has been deprecated.  Please use HasModulePermission(ModuleID,TabId, PermissionKey)' C:\_B2MWeb_RC1\Library\Components\Security\PortalSecurity.vb 613 20 DotNetNuke.Library
Warning 14 'Public Function GetDesktopModuleByFriendlyName(FriendlyName As String) As Entities.Modules.DesktopModuleInfo' is obsolete: 'As the FriendlyName is not guaranteed to be the same as when the module is created, this method has been replaced by GetDesktopModuleByModuleName(moduleName)' C:\_B2MWeb_RC1\Library\Components\Shared\Globals.vb 2374 36 DotNetNuke.Library
Warning 15 'System.Xml.Xsl.XslTransform' is obsolete: 'This class has been deprecated. Please use System.Xml.Xsl.XslCompiledTransform instead. http://go.microsoft.com/fwlink/?linkid=14202' C:\_B2MWeb_RC1\Library\Components\Shared\XmlUtils.vb 407 77 DotNetNuke.Library
Warning 16 'System.Xml.Xsl.XslTransform' is obsolete: 'This class has been deprecated. Please use System.Xml.Xsl.XslCompiledTransform instead. http://go.microsoft.com/fwlink/?linkid=14202' C:\_B2MWeb_RC1\Library\Components\Shared\XmlUtils.vb 409 33 DotNetNuke.Library
Warning 17 Property 'Moveable' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. C:\_B2MWeb_RC1\Library\Components\Skins\SolPartMenu.vb 249 13 DotNetNuke.Library
Warning 18 Property 'DelaySubmenuLoad' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. C:\_B2MWeb_RC1\Library\Components\Skins\SolPartMenu.vb 699 13 DotNetNuke.Library
Warning 19 'SyndicationHandlerBase' is not CLS-compliant because it derives from 'GenericRssHttpHandlerBase', which is not CLS-compliant. C:\_B2MWeb_RC1\Library\Components\SyndicationHandlers\SyndicationHandlerBase.vb 4 18 DotNetNuke.Library

Thank you in advance,

Rgds/Gunnar

 
New Post
3/28/2008 4:38 PM
 

From time to time we obsolete methods that are no longer suitable for use for one reason or another (the reason's in the warning). This is intended as a warning for module developers, but in these cases we're not following our own advice. I've created an issue @ http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=7244&PROJID=2 so this can be resolved in a future release. For now just ignore then, they're harmless.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/28/2008 5:59 PM
 

Thanks Cathal. That will clear up these as well.

DNN-1951
DNN-1952
DNN-1953
DNN-1954
DNN-1955
DNN-1976
DNN-5420
DNN-6008
DNN-7015
DNNP-2270
DNNP-5535


Dwayne J. Baldwin
 
New Post
3/28/2008 8:51 PM
 

Thanks, Cathal.  I've actually been meaning to create that issue for awhile now.

Is it not currently part of the process to rectify these depreciation warnings prior to release, or are they just tackled at a low priority?

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
3/29/2008 5:23 AM
 

the problem with many of these issues: they occur in deprecated components, that call own methods inside, like old TokenReplace. Without major effort, these warnings can only be removed by removing the whole deprecated component, which might break modules still using it.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0The 19 warnings known - How can I get rid of them ?The 19 warnings known - How can I get rid of them ?


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