Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How to get PortalSettings?
Previous Previous
 
Next Next
New Post 7/9/2008 1:49 PM
User is offline cathal connolly
2546 posts
www.cathal.co.uk
5th Ranked










Re: How to get PortalSettings?  

it's not enough to have httpapplication, you need a valid httpcontext also (particularly as many dnn functions run via httpmodules). Joe has a suggested workaround for this @ http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/441/Default.aspx

Cathal

 
New Post 7/9/2008 3:19 PM
User is offline Artek
5 posts
10th Ranked


Re: How to get PortalSettings?  

Thanks Cathal, but when i try:

HttpContext.Current = new HttpContext(workerRequest);

I receive error message:

[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Services.Localization.Localization.GetEnabledLocales() +43
DotNetNuke.Framework.PageBase.get_PageCulture() +33
DotNetNuke.Framework.PageBase.OnInit(EventArgs e) +41
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692

 
New Post 7/9/2008 5:22 PM
User is offline cathal connolly
2546 posts
www.cathal.co.uk
5th Ranked










Re: How to get PortalSettings?  

no idea I'm afraid (locales come from the portalsettings which should exist if there is a valid dotnetnuke httpcontext [i.e it's running within a web application that has the dotnetnuke web.config]),  you'll have to debug the httpmodule to find out why (use the attach to debugger functionality within vs.net)

Cathal

 
New Post 7/9/2008 11:51 PM
User is offline Artek
5 posts
10th Ranked


Re: How to get PortalSettings?  

someone knows how to help me?

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How to get PortalSettings?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Adaptive InfoSystems, Inc.
We provide custom programming and various levels of support for DotNetNuke and the .Net framework.
www.aisysweb.com
Multipartner Virtual Data Rooms
The Virtual Data Rooms (VDR) provided by an expert advisor, far from any ordinary software company!, supporting the sellers and their consultants. Multipartner builds and services higly professional Virtual Data Rooms (VDR) specifically tailored to M&A, Real Estate and NPL deals.
www.multipartner.com
DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP