Object reference not set to an instance of an object

A

AnthonyV121

I have an issue with a specific Windows 2003 server. My code is working
on 15 other servers of various configurations(10 of the 15 are Windows
2003 servers). I receive an "Object reference not set to an instance of
an object." error. I cannot figure out why. I have tried compiling the
code and receive the same error. The error is on line 20 of
iSecure_Authenticate.aspx.cs which is the last line of code in this
post "iSecureMembershipProvider iSecure = new
iSecureMembershipProvider();".

This is the code for my class
filename: iSecureMembershipProvider.cs (located inside App_Code
directory)
----------------------------------------------------------------------------------------------------

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Web.Configuration;
using System.Collections.Specialized;
using System.Configuration.Provider;
using System.Diagnostics;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;

namespace WidgetInc.iSecure.Membership
{
public sealed class iSecureMembershipProvider : MembershipProvider
{

--------------------------------------------------------------------------------------------------
This is where I instantiate it
filename: iSecure_Authenticate.aspx
------------------------------------------------------------------------------------------------

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WidgetInc.iSecure.Membership;

public partial class Authenticate : System.Web.UI.Page
{
DeviceProfile currentDevice = new DeviceProfile();
UserProfile currentUser = new UserProfile();
iSecureMembershipProvider iSecure = new
iSecureMembershipProvider(); // ERROR
----------------------------------------------------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top