문제

In my code I use this line to Initialize my Base:

MyBase.Initialize(name, config)

Everything goes fine in the first time pass... but when it passes second time then throws me an error The Base Is already Initialized and that is something I don't want to happen.
Is there any way to catch this event?

도움이 되었습니까?

해결책

Finally the Base initialized only in the Default.aspx page, putting these lines in the Page_Load:

Dim myNewAsp As New AspNetSqlProvider
        If MyAspNetSqlMembershipProvider.SQLconnectionString = Nothing Then
            myNewAsp.InitializeSite(sender, e)
            Return
        End If 

Doing this the system always knows when if the Base is initialized or not.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top