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.0'HomeDirectoryMapPath' is not a member of 'PortalSettings'
Previous
 
Next
New Post
3/26/2008 3:10 PM
 

This error appeared when calling the site from vs 2008 a custom module in development.  I am not compiling dnn, only the custom module within a directory that resides in the desktopmodules directory.  This seems like an odd error as it has nothing to do with the custom module I was working on.  I have gone as far as to reboot the development box.  

Compiler Error Message: BC30456: 'HomeDirectoryMapPath' is not a member of 'PortalSettings'.

Source Error:

 
Line 98:                 sProtectedExtension = DotNetNuke.Common.Globals.glbProtectedExtension
Line 99:             End If
Line 100:            Return String.Concat(PortalSettings.HomeDirectoryMapPath, objFile.Folder, objFile.FileName, sProtectedExtension)
Line 101:        End Function
Line 102:


Source File: c:\inetpub\wwwroot\basePortDev20080321\Website\App_Code\Reports\Utilities.vb    Line: 100  

 
New Post
3/27/2008 3:07 PM
 

Does intellisense read that in for you?          

If it doesnt... that could be a clue.

 
New Post
3/27/2008 10:34 PM
 

Here's a couple of possibilities to check out as the cause of an odd error such as this one:

1. Could your module have caused a namespace conflict with the core Reports module or the framework's UserControl, PortalModuleBase, or PortalSettings classes?

2. As it appears that you are creating a compiled (WAP) module, does your module project reference the installed version of the DotNetNuke.dll in the /bin folder or are you compiling against an earlier version of this .dll which might have gotten accidentally copied over the current version in the install's /bin folder. One time I had not noticed that my module's intentional reference to an earlier version of DotNetNuke.dll had set "Copy Local" to true thus overwriting the current installation version when the module was compiled - causing all sorts of odd method not found, etc. errors when the site was accessed.

3. As the core Report module was changed from a dynamically compiled (WSP) module in its earlier 04.x.x versions to a compiled (WAP) module in its recent 05.00.00 version, if you have upgraded the Reports module, its sub-folder under the site's App_Code folder should have been automatically removed.  In some cases, however, removal of this sub-folder (and the reference to it in the < codeSubDirectories > section of web.config) does not get removed and might cause problems such as this.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0'HomeDirectoryMapPath' is not a member of 'PortalSettings'


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