Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 12th, 2008, 12:08 AM
Registered User
 
Join Date: Sep 2008
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.









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 08: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 01:54 AM
Disable the url rewriting in DotNetNuke 4.0.3 rskshiva General .NET 1 August 16th, 2006 01:17 PM
Discussion: URL Rewriting planoie ASP.NET 1.x and 2.0 Application Design 2 January 25th, 2006 03:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.