Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

At Install: "Object reference not set" on Role Provider

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Monty - 13 Sep 2007 22:00 GMT
I'm installing an ASP.Net 2.0 web applications project (WAP) application on
a production server (Win 2003). I've installed it on XP test machines before
and it runs fine. On my production machine I get this error (full error
screen below) when I attempt to visit the start page. The type
("MyCo.Ing.MyAppRoleProvider") is in my main assembly in the \bin folder.
Can anyone tell me what I'm doing wrong or what I should check? TIA.

Server Error in '/MyApp' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: Object reference not set to an instance of an object.

Source Error:
Line 97:       <providers>
Line 98:         <clear/>
[RED]Line 99:         <add name="MyAppRoleProvider"
type="MyCo.Ing.MyAppRoleProvider" applicationName="My Application"/>[/RED]
Line 100:      </providers>
Line 101:    </roleManager>

Source File: C:\inetpub\wwwroot\MyApp\web.config    Line: 99

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
Version:2.0.50727.
Monty - 13 Sep 2007 22:07 GMT
Update: If I put line breaks in my web.config "add" tag, I can identify the
problem area as the "type" parameter. Line 101 is highlighted:

Line 99:         <add
Line 100:        name="MyAppRoleProvider"
Line 101:        type="MyCo.Ing.MyAppRoleProvider"
Line 102:        applicationName="My Application"/>
Line 103:      </providers>
Monty - 13 Sep 2007 23:49 GMT
Please ignore this post, I had an unhandled error in the Initialize()
function of my custom role provider.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.