Getting an error on login


Author
Message
Paul Chase
Paul Chase
Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
I just "upgraded" my app to use role based security.I think I did everything the Documentation asked however I am getting the following error and need some help on where I might have gone wrong

Private Shared Sub ShowLoginAndInitMainForm(ByVal e As ShowLoginAndInitFormEventArgs)

'-- Set the login form type to the appropriate form type (optional)

Login.LoginFormType = GetType(frmLogin)

'-- Show the login form and set the return value back to e.ShowMainForm

' The true value passed to the method tells the method to allow the

' end-user to cancel the login form, which will return False from the

' method.

error here-->e.ShowMainForm = Login.ShowLoginAndAuthUser(True)

End Sub

System.Reflection.TargetInvocationException was unhandled by user code
  Message="Exception has been thrown by the target of an invocation."
  Source="mscorlib"
  StackTrace:
       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
       at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at MicroFour.StrataFrame.Security.Login.ShowLoginAndAuthUser(Boolean AllowCancel)
       at Payroll.AppMain.ShowLoginAndInitMainForm(ShowLoginAndInitFormEventArgs e) in C:\Action Labor Payroll 2006\Payroll\Payroll\AppMain.vb:line 118
       at MicroFour.StrataFrame.Application.StrataFrameApplication.Raise_ShowLoginAndInitializeForm(ShowLoginAndInitFormEventArgs e)
       at MicroFour.StrataFrame.Application.StrataFrameApplication.RunApplication()

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Paul Chase - 20 Years Ago
Trent L. Taylor - 20 Years Ago
Paul Chase - 20 Years Ago
Trent L. Taylor - 20 Years Ago
Paul Chase - 20 Years Ago
                         Oh sure...it is definitely possible :hehe: . One thing you might try...
Trent L. Taylor - 20 Years Ago
                             Any ideas on this?
Paul Chase - 20 Years Ago
                                 Well...it turns out that it is a very simple and easy to fix problem....
Trent L. Taylor - 20 Years Ago
                                     Thanks Trent
Paul Chase - 20 Years Ago
                                         Sure...sorry for the delayed response...:blush:
Trent L. Taylor - 20 Years Ago
                                             BTW, it appears my code to swap out roles is working :D

So,...
Greg McGuffey - 20 Years Ago
                                                 Great! Glad to hear it! :)
Trent L. Taylor - 20 Years Ago
                         this is from the inner exception {"Could not find any resources...
Paul Chase - 20 Years Ago
                             Trent, I am getting the same problem on a vanilla application with...
Paul Chase - 20 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search