Is the custom login form in the same assembly as the Appmain.vb file? It doesn't have to be, but I am just curious.
I used the login template to create the login form. I deleted and re added the custom form and still recieve the same error.
If you remove the line of code specifying the custom logon form, does the default logon form come up?
Login.LoginFormType =
error here-->e.ShowMainForm = Login.ShowLoginAndAuthUser(
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()