Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upgrading to MM.Net 1.2 Release
Message
De
29/07/2004 16:00:07
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Upgrading to MM.Net 1.2 Release
Divers
Thread ID:
00929327
Message ID:
00929327
Vues:
48
Hi,

once i upgrade from 1.2 beta to 1.2 release i started receiving this error, the code break at the "MyBase.New()" of the UserLoginForm, i read throught the What's new on this Release and changed code where i needed but it is still breaking, what I'm doing wrong. I have commented the line number with "<-- for easier reading.

Vincent Blain
Infolink Screening

--UserLoginForm.VB--

Public Sub New()
MyBase.New() <-- code break line 9 of UserLoginForm.VB

'Temporary database access

Me.UserIDConnect = "sa"
Me.PasswordConnect = "XXXX"

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

--Main.vb--

Public Class AppMainEntry
Inherits mmMainEntry

' Static field that contains a reference to the application object
Public Shared App As AppDesktop

_
Public Shared Sub Main()
Try
' Instantiate the Application Object
App = New AppDesktop

' Display the login form
Dim result As DialogResult = DialogResult.OK
If AppMainEntry.App.DisplayLoginForm Then
Dim LoginForm As New UserLoginForm <-- line 27 of main.vb
result = LoginForm.ShowDialog()
End If

' Instantiate the main application form
If result = DialogResult.OK Then
Application.Run(New MainForm)
End If


Catch e As Exception
' Write the error to the application log
mmAppBase.Log.WriteException(e)

' Display the Exception form
Dim ExceptForm As New mmExceptionForm(e.Message, e.StackTrace)
ExceptForm.ShowDialog()
Finally
End Try
End Sub

End Class



--Exception--
Value cannot be null.
Parameter name: String

--Stack--
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Int32.Parse(String s, NumberStyles style, IFormatProvider provider)
at System.Int32.Parse(String s, NumberStyles style)
at OakLeaf.MM.Main.mmString.ConvertToType(String stringValue, String type)
at OakLeaf.MM.Main.Globalization.mmLanguageManager..ctor()
at OakLeaf.MM.Main.Patterns.mmFactory.CreateLanguageManager()
at OakLeaf.MM.Main.mmAppBase.get_LanguageMgr()
at OakLeaf.MM.Main.Windows.Forms.mmUserLoginForm..ctor()
at InfoLink.HIRENet.UserLoginForm..ctor() in D:\DevInfolink\Hirenet\HIRENet\UserLoginForm.vb:line 9
at InfoLink.HIRENet.Main.AppMainEntry.Main() in D:\DevInfolink\Hirenet\HIRENet\Main.vb:line 27
Vincent Blain
Sr. Developer
Infolink Screening Services INC
9201 Oakdale Ave, Suite 100
Chatsworth, CA 91311
800-990-4473 x 1241
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform