See my thread before (not yet published). I managed to correct the line 160 error. However now I get the following error:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30561: 'Collections' is ambiguous, imported from the namespaces or types 'DotNetNuke, System'.
Source Error:
|
Line 70: _Settings = New Generic.Dictionary(Of String, String) Line 71: Line 72: For Each pair As Collections.DictionaryEntry In modSettings Line 73: Line 74: _Settings.Add(Convert.ToString(pair.Key), Convert.ToString(pair.Value))
|
Source File: D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\FakeView.vb
Line: 72
Compiler Warning Messages:
Warning: BC42030: Variable 'pd' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\Base.vb |
Line 155: Dim pd As DotNetNuke.Entities.Profile.ProfilePropertyDefinition Line 156: Line 157: ProfilePropertyCollectionDic.TryGetValue(CInt(id), pd) Line 158: Line 159: If Not pd Is Nothing Then
|
Warning: BC42030: Variable 'pd' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\Base.vb |
Line 240: Dim pd As DotNetNuke.Entities.Profile.ProfilePropertyDefinition Line 241: Line 242: ProfilePropertyCollectionDic.TryGetValue(CInt(id), pd) Line 243: Line 244: If Not pd Is Nothing Then
|
Warning: BC42104: Variable 'port' is used before it has been assigned a value. A null reference exception could result at runtime.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\Base.vb |
Line 1107: End If Line 1108: Line 1109: Return String.Format("{0}://{1}{2}{3}/DesktopModules/effority.UserDirectory/vCard.aspx?UserId={4}&ModuleId={5}&TabModuleId={6}", RequestUrl.Scheme, RequestUrl.Host, port, Request.ApplicationPath, CStr(UserId), CStr(Me.ModuleId), CStr(Me.TabModuleId)) Line 1110: Line 1111: End Function
|
Warning: BC42104: Variable 'UserInfos' is used before it has been assigned a value. A null reference exception could result at runtime.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\Controller.vb |
Line 324: End If Line 325: Line 326: Return UserInfos Line 327: Line 328: End Function
|
Warning: BC42030: Variable 'workDic' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\Controller.vb |
Line 575: Dim PropertyValue As String = Null.SetNull(reader.GetString(2), Null.NullString).ToString Line 576: Line 577: If userDic.TryGetValue(UserId, workDic) Then Line 578: Line 579: ' es gibt bereits Werte für diesen User
|
Warning: BC42104: Variable 'userDic' is used before it has been assigned a value. A null reference exception could result at runtime.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\Controller.vb |
Line 632: End If Line 633: Line 634: Return userDic Line 635: Line 636: End Function
|
Warning: BC40000: 'Public Shared Function GetModuleSettings(ModuleId As Integer) As System.Collections.Hashtable' is obsolete: 'Deprecated in DNN 5.0. Please use ModuleController.GetModuleSettings(ModuleId)'.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\FakeView.vb |
Line 65: 'If _Settings Is Nothing Then Line 66: Line 67: Dim modSettings As Hashtable = DotNetNuke.Entities.Portals.PortalSettings.GetModuleSettings(Me.ModuleId) Line 68: Dim tabModSettings As Hashtable = DotNetNuke.Entities.Portals.PortalSettings.GetTabModuleSettings(Me.TabModuleId) Line 69:
|
Warning: BC40000: 'Public Shared Function GetTabModuleSettings(TabModuleId As Integer) As System.Collections.Hashtable' is obsolete: 'Deprecated in DNN 5.0. Please use ModuleController.GetTabModuleSettings(TabModuleId)'.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\FakeView.vb |
Line 66: Line 67: Dim modSettings As Hashtable = DotNetNuke.Entities.Portals.PortalSettings.GetModuleSettings(Me.ModuleId) Line 68: Dim tabModSettings As Hashtable = DotNetNuke.Entities.Portals.PortalSettings.GetTabModuleSettings(Me.TabModuleId) Line 69: Line 70: _Settings = New Generic.Dictionary(Of String, String)
|
Warning: BC42030: Variable 'profileForThisUser' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\FakeView.vb |
Line 158: workrow(effority.UserDirectory.Consts.USERID_COLUMN) = user.UserId Line 159: Line 160: If userProfileDic.TryGetValue(user.UserId, profileForThisUser) Then Line 161: Line 162: For Each info As DotNetNuke.Entities.Profile.ProfilePropertyDefinition In Me.ProfilesPropertiesToLoad
|
Warning: BC40000: 'Public Overridable Sub Insert(CacheKey As String, objObject As Object, PersistAppRestart As Boolean)' is obsolete: 'Deprecated in DNN 5.1 - Cache Persistence is not supported'.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\FakeView.vb |
Line 184: UserTable.EndLoadData() Line 185: Line 186: DotNetNuke.Services.Cache.CachingProvider.Instance.Insert(Me.USERTABLE_MODULE_CACHE, UserTable, False) Line 187: Line 188: Dim dv As DataView = UserTable.DefaultView
|
Warning: BC40000: 'Public Function GetDesktopModuleByModuleName(moduleName As String) As DotNetNuke.Entities.Modules.DesktopModuleInfo' is obsolete: 'This method replaced in DotNetNuke 5.0 by Shared method GetDesktopModuleByModuleName(String, Integer)'.
Source Error:
D:\inetpub\vhosts\lakeside-whisky-society.ch\httpdocs\App_Code\effority.UserDirectory\Schedule.vb |
Line 30: Dim cont As New DotNetNuke.Entities.Modules.DesktopModuleController Line 31: Line 32: Dim info As DotNetNuke.Entities.Modules.DesktopModuleInfo = cont.GetDesktopModuleByModuleName("effority.UserDirectory") Line 33: Line 34: Dim moduleCont As New DotNetNuke.Entities.Modules.ModuleController
|
It would be helpful to me if someone had an idea, how to correct this problem, as before the upgrade I had no problems with the effority user module