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
----------------------------------------------------------------------------------------------------------------
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
----------------------------------------------------------------------------------------------------------------