StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Error executing SetPermissionsFromUserExpand / Collapse
Author
Message
Posted 04/04/2007 12:41:08 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 10/04/2008 10:12:49 AM
Posts: 308, Visits: 1,236
I have a client that is getting this error when they login. All other users can login without problems. Any idea's what could be the cause?  This particular user has been logging in fine for 2-3 weeks. It started happening this morning.

Thanks

TIm

InvalidOperationException
 Nullable object must have a value.

 Source     : mscorlib

 Stack Trace:
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Nullable`1.get_Value()
   at MicroFour.StrataFrame.Security.LoggedInUser.SetPermissionsFromUser(Int32 UserPK)
   at MicroFour.StrataFrame.Security.LoggedInUser.CreateNew(SFSUsersBO UserInfo)
   at MicroFour.StrataFrame.Security.LoggedInUser.SetLoggedOnUser(SFSUsersBO UserInfo)
   at MicroFour.StrataFrame.Security.Login.AttemptLogin(Object sender, EventArgs e)
   at Avanti.MenuSystem.AvantiLoginForm.OnAttemptLogin()
   at Avanti.MenuSystem.AvantiLoginForm.cmdOk_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.PerformClick()
   at Avanti.MenuSystem.AvantiLoginForm.txtPassword_KeyDown(Object sender, KeyEventArgs e)
   at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
   at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Post #7895
Posted 04/04/2007 1:09:51 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 8:51:57 AM
Posts: 4,561, Visits: 4,544
Have you opened up the SFSUsers and SFSPermissions tables to make sure there are not any NULL values?  Second, are you doing anything (i.e. creating an audit record) when a user logs in?  One thing you can do is turn on the data debugger so you can see the query.  More than likely this is where you are going to end up so I would just start there by turning on the data debugger for that data source.
Post #7896
Posted 04/04/2007 6:41:20 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 10/04/2008 10:12:49 AM
Posts: 308, Visits: 1,236
I checked all the data and it all looked okay.  I had the customer remove all the user permissions, save, and then add everything back. The problem seemed to go away.

It seems to be a one-off for now so I won't worry about it.

Thanks

Tim

Post #7904
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 9:07am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.