Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 12th, 2008, 01:08 AM
Registered User
 
Join Date: Sep 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.Net Membership, URL-Rewriting, IIS 7 on hostin


Hello,

I'm facing a strange problem in my website, and it's driving me completely crazy since I've been working on it for at least two weeks now, I would really appreciate any help or suggestions or tips, especially by Microsoft team because it seems to be an internal error (internal bug within the core code of the framework).

I have built an URL-rewriting mechanism and invoked it in a website that I have had developed recently, taking into consideration the website has asp.net membership implemented as well.
The website is working fine on my local virtual server or on my IIS6.0, but when I upload the website online (GoDaddy hosting with IIS 7, .net framework 2.0) an error occurs each time I use any of the membership's functionalities in any of the redirected pages (i.e. the pages with the rewritten URL), while it works perfectly in normal pages.

I tried to strip down my pages to the minimum, but still no matter how small the function that I'm using, I still get the null reference errors.
For instance the following line:
Object obj = Membership.GetUser();
Which should run flawlessly to return either null or the currently logged in user (MembershipUser), is giving me a null reference exception.

Base Error Message: Object reference not set to an instance of an object.
Base Error Stacktrace: at System.Web.Security.Membership.GetCurrentUserName( ) at System.Web.Security.Membership.GetUser() at Display.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Base Error Source: System.Web

I tried changing the hosting to IIS6, but still it's not working.
I also tried to changing the URL rewriting mechanism and use http://www.urlrewriting.net/, still no use.

Kindly feel free to leave any comment about the issue.
Thank you in advance.




Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementing URL Rewriting retroviz BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 February 21st, 2008 01:18 PM
URL rewriting with URL forwarding mtabyana BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 0 October 22nd, 2007 09:22 AM
URL Rewriting Amateur BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 August 9th, 2007 02:54 AM
Disable the url rewriting in DotNetNuke 4.0.3 rskshiva General .NET 1 August 16th, 2006 02:17 PM
Discussion: URL Rewriting planoie ASP.NET 1.x and 2.0 Application Design 2 January 25th, 2006 03:38 PM



All times are GMT -4. The time now is 01:24 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.