|
Joined: 11/14/2006
Posts: 2
|
|
|
I got DNN 4.3.6 running on my dev pc, and now I want to upgrade an existing 3.1.1 website. I ran the Module Upgrade Wizard first, and am now thinking that was a mistake.... I'm getting the following error (see below this message).
Should I have done something in Visual Studio 2005 first? Should I have connected to the real SQL Server db first? Should I have brought in the Portals or skins or other custom objects before upgrading the modules? Where can I find detailed info on upgrading an existing application?
Thanks for all of your help -- I'm learning a ton reading these forum messages!
Ellen
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: BC30560: 'ContactInfo' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Source Error:
|
Line 51: #Region "Public Methods"
Line 52:
Line 53: Public Sub AddContact(ByVal objcontact As ContactInfo)
Line 54:
Line 55: DataProvider.Instance().AddContact(objcontact.ModuleId, objcontact.CreatedByUser, objcontact.Name, objcontact.Role, objcontact.Email, objcontact.Contact1, objcontact.Contact2)
|
Source File: C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb Line: 53
Server Error in '/R2BAtest3' Application.
Compilation Error
Show Detailed Compiler Output:
C:\WINDOWS\system32> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\8e7655d8\d46114cd_7a0ec701\DotNetNuke.Modules.IFrame.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\dfc25870\0092d322_4609c701\CountryListBox.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\7c714425\00700d3d_4609c701\DotNetNuke.Search.Index.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\26149113\00b6d060_4609c701\DotNetNuke.HttpModules.Authentication.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\8c83a4d8\00f7a040_4609c701\DotNetNuke.DNNScheduler.SqlDataProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\1080370d\003d6464_4609c701\DotNetNuke.HttpModules.UsersOnline.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\44c2fe3d\d46114cd_7a0ec701\DotNetNuke.Modules.IFrame.SqlDataProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\292daac1\00e5b208_f5f6c601\SharpZipLib.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\cf9d8e03\00f4e454_4609c701\DotNetNuke.Provider.DNNProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\eac4ec9f\4a6c87cf_7a0ec701\DotNetNuke.Modules.Links.SqlDataProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\a43be507\00510343_4609c701\DotNetNuke.ASP2MenuNavigationProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\App_SubCode_Announcements.mknxrnlq.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\9ba92b6c\0016ab3a_4609c701\DotNetNuke.Search.DataStore.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\2b7fa03c\aafde1bf_7a0ec701\DotNetNuke.Modules.Contacts.SqlDataProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\0bce2e47\005f2a4a_4609c701\DotNetNuke.DNNMenuNavigationProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\568ea889\12c243c8_7a0ec701\DotNetNuke.Modules.Help.SqlDataProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\58a49aa8\004b8b6b_4609c701\DotNetNuke.HttpModules.Exception.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\3a3bd39b\009a8252_4609c701\DotNetNuke.Provider.DBLoggingProvider.SqlDataProvider.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\3d926515\00f12869_4609c701\DotNetNuke.HttpModules.Personalization.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\be4bfd48\8e52b5d1_7a0ec701\DotNetNuke.Modules.XML.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\e9f66dcf\00402050_4609c701\DotNetNuke.XMLLoggingProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\4447094a\005c6e5e_4609c701\DotNetNuke.Caching.BroadcastPollingCachingProvider.SQLDataProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\3fe006a0\4ab8c2ca_7a0ec701\DotNetNuke.Modules.Html.SqlDataProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\6ee76201\0059b272_4609c701\DotNetNuke.Provider.Membership.SqlDataProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\fd0b0ff0\00020c5c_4609c701\DotNetNuke.Caching.FileBasedCachingProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\2616f806\00bf0424_4609c701\DotNetNuke.WebUtility.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\dbd7732d\00088433_4609c701\DotNetNuke.Caching.BroadcastPollingCachingProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\231d0c03\4a6c87cf_7a0ec701\DotNetNuke.Modules.Links.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\44877a63\509bdfbf_7a0ec701\DotNetNuke.Modules.Contacts.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\63e037a1\004e4757_4609c701\DotNetNuke.Ftb3HtmlEditorProvider.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\8f406b6f\e0e939c3_7a0ec701\DotNetNuke.Modules.FAQs.SqlDataProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\19e943b6\e0e939c3_7a0ec701\DotNetNuke.Modules.FAQs.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\e606b4c6\0054bf2e_4609c701\DotNetNuke.Provider.DBLoggingProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\0d360270\00e5b208_f5f6c601\Microsoft.ApplicationBlocks.Data.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\f74f42bb\0005c847_4609c701\DotNetNuke.DNNTreeNavigationProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\560a920d\00ae2131_4609c701\DotNetNuke.Membership.Dataprovider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\f8f9191d\f055c0ca_7a0ec701\DotNetNuke.Modules.Html.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\11061bce\00d21e6f_4609c701\DotNetNuke.HttpModules.DNNMembership.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.DirectoryServices\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\4ad21e9f\0031ee03_f5f6c601\DotNetNuke.WebControls.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\f5b6f1bf\00bc4838_4609c701\DotNetNuke.Provider.AspNetProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\f3acbf84\0062e635_4609c701\DotNetNuke.Authentication.ADSIProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\5a172ba4\0073c928_4609c701\DotNetNuke.DNNScheduler.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\f114d7eb\0097c666_4609c701\DotNetNuke.HttpModules.UrlRewrite.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\8c050cf7\00b98c4c_4609c701\DotNetNuke.DNNDropDownNavigationProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\db1318eb\008b5006_f5f6c601\FreeTextBox.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\0ba7f33f\00a8a959_4609c701\DotNetNuke.SqlDataProvider.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\0bc77b37\00fa5c2c_4609c701\DotNetNuke.Authentication.ADSI.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\ba81751c\00196726_4609c701\DotNetNuke.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Management\2.0.0.0__b03f5f7f11d50a3a\System.Management.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\f8eb0168\005e1f05_f5f6c601\SolpartWebControls.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\eb0b343b\12c243c8_7a0ec701\DotNetNuke.Modules.Help.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\assembly\dl3\2a4267dc\00ab6545_4609c701\DotNetNuke.SolpartMenuNavigationProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\App_SubCode_Reports.jhdiyv7p.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\App_SubCode_Contacts.gymwafme.dll" /debug- /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls,System.ComponentModel,System.Data,System.Data.SqlClient,System.Drawing,Microsoft.VisualBasic,System.Globalization,DotNetNuke.Services.Localization,DotNetNuke.Entities.Users,DotNetNuke,DotNetNuke.Common,DotNetNuke.Data,DotNetNuke.Framework,DotNetNuke.Modules,DotNetNuke.Security,DotNetNuke.Services,DotNetNuke.UI,DotNetNuke.Entities.Portals,DotNetNuke.Common.Utilities,DotNetNuke.Services.Exceptions,DotNetNuke.Entities.Tabs "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\App_SubCode_Contacts.gymwafme.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\App_SubCode_Contacts.gymwafme.1.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\App_SubCode_Contacts.gymwafme.2.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\App_SubCode_Contacts.gymwafme.3.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\r2batest3\3720313c\2bf02e05\App_SubCode_Contacts.gymwafme.4.vb"
Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(53) : error BC30560: 'ContactInfo' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Public Sub AddContact(ByVal objcontact As ContactInfo)
~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(55) : error BC30560: 'DataProvider' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
DataProvider.Instance().AddContact(objcontact.ModuleId, objcontact.CreatedByUser, objcontact.Name, objcontact.Role, objcontact.Email, objcontact.Contact1, objcontact.Contact2)
~~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(61) : error BC30560: 'DataProvider' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
DataProvider.Instance().DeleteContact(ItemID)
~~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(65) : error BC30560: 'ContactInfo' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Public Function GetContact(ByVal ItemId As Integer, ByVal ModuleId As Integer) As ContactInfo
~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(67) : error BC30560: 'DataProvider' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Return CType(CBO.FillObject(DataProvider.Instance().GetContact(ItemId, ModuleId), GetType(ContactInfo)), ContactInfo)
~~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(67) : error BC30560: 'ContactInfo' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Return CType(CBO.FillObject(DataProvider.Instance().GetContact(ItemId, ModuleId), GetType(ContactInfo)), ContactInfo)
~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(67) : error BC30560: 'ContactInfo' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Return CType(CBO.FillObject(DataProvider.Instance().GetContact(ItemId, ModuleId), GetType(ContactInfo)), ContactInfo)
~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(73) : error BC30560: 'DataProvider' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Return CBO.FillCollection(DataProvider.Instance().GetContacts(ModuleId), GetType(ContactInfo))
~~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(73) : error BC30560: 'ContactInfo' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Return CBO.FillCollection(DataProvider.Instance().GetContacts(ModuleId), GetType(ContactInfo))
~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(77) : error BC30560: 'ContactInfo' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Public Sub UpdateContact(ByVal objContact As ContactInfo)
~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(79) : error BC30560: 'DataProvider' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
DataProvider.Instance().UpdateContact(objContact.ItemId, objContact.CreatedByUser, objContact.Name, objContact.Role, objContact.Email, objContact.Contact1, objContact.Contact2)
~~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(107) : error BC30560: 'ContactInfo' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
With CType(objContact, ContactInfo)
~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(138) : error BC30560: 'ContactInfo' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Dim objContact As ContactInfo
~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\ContactsController.vb(170) : error BC30560: 'ContactInfo' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Dim objContact As New ContactInfo
~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\DataProvider.vb(42) : error BC30560: 'DataProvider' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Private Shared objProvider As DataProvider = Nothing
~~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\DataProvider.vb(51) : error BC30560: 'DataProvider' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
objProvider = CType(Framework.Reflection.CreateObject("data", "DotNetNuke.Modules.Contacts", "DotNetNuke.Modules.Contacts"), DataProvider)
~~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\DataProvider.vb(55) : error BC30560: 'DataProvider' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Public Shared Shadows Function Instance() As DataProvider
~~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\Providers\DataProviders\SQLDataProvider\SqlDataProvider.vb(41) : error BC30560: 'DataProvider' is ambiguous in the namespace 'DotNetNuke.Modules.Contacts'.
Inherits DataProvider
~~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\Providers\DataProviders\SQLDataProvider\SqlDataProvider.vb(119) : error BC30284: function 'AddContact' cannot be declared 'Overrides' because it does not override a function in a base class.
Public Overrides Function AddContact(ByVal ModuleId As Integer, ByVal UserName As String, ByVal Name As String, ByVal Role As String, ByVal Email As String, ByVal Contact1 As String, ByVal Contact2 As String) As Integer
~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\Providers\DataProviders\SQLDataProvider\SqlDataProvider.vb(123) : error BC30284: sub 'DeleteContact' cannot be declared 'Overrides' because it does not override a sub in a base class.
Public Overrides Sub DeleteContact(ByVal ItemId As Integer)
~~~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\Providers\DataProviders\SQLDataProvider\SqlDataProvider.vb(127) : error BC30284: function 'GetContact' cannot be declared 'Overrides' because it does not override a function in a base class.
Public Overrides Function GetContact(ByVal ItemId As Integer, ByVal ModuleId As Integer) As IDataReader
~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\Providers\DataProviders\SQLDataProvider\SqlDataProvider.vb(131) : error BC30284: function 'GetContacts' cannot be declared 'Overrides' because it does not override a function in a base class.
Public Overrides Function GetContacts(ByVal ModuleId As Integer) As IDataReader
~~~~~~~~~~~
C:\Inetpub\wwwroot\Test3R2ba\Website\App_Code\Contacts\Providers\DataProviders\SQLDataProvider\SqlDataProvider.vb(135) : error BC30284: sub 'UpdateContact' cannot be declared 'Overrides' because it does not override a sub in a base class.
Public Overrides Sub UpdateContact(ByVal ItemId As Integer, ByVal UserName As String, ByVal Name As String, ByVal Role As String, ByVal Email As String, ByVal Contact1 As String, ByVal Contact2 As String)
~~~~~~~~~~~~~
|
Show Complete Compilation Source:
Line 1: '
Line 2: ' DotNetNuke - http://www.dotnetnuke.com
Line 3: ' Copyright (c) 2002-2005
Line 4: ' by Perpetual Motion Interactive Systems Inc. ( http://www.perpetualmotion.ca )
Line 5: '
Line 6: ' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
Line 7: ' documentation files (the "Software"), to deal in the Software without restriction, including without limitation
Line 8: ' the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
Line 9: ' to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Line 10: '
Line 11: ' The above copyright notice and this permission notice shall be included in all copies or substantial portions
Line 12: ' of the Software.
Line 13: '
Line 14: ' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
Line 15: ' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
Line 16: ' THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
Line 17: ' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
Line 18: ' DEALINGS IN THE SOFTWARE.
Line 19: '
Line 20: Imports DotNetNuke.Services.Search
Line 21: Imports System
Line 22: Imports System.Configuration
Line 23: Imports System.Data
Line 24: Imports System.XML
Line 25:
Line 26: Imports DotNetNuke
Line 27:
Line 28:
Line 29: Namespace DotNetNuke.Modules.Contacts
Line 30:
Line 31: ''' -----------------------------------------------------------------------------
Line 32: ''' Namespace: DotNetNuke.Modules.Contacts
Line 33: ''' Project: DotNetNuke
Line 34: ''' Class: ContactController
Line 35: ''' -----------------------------------------------------------------------------
Line 36: ''' <summary>
Line 37: ''' The ContactController Class represents the Contacts Business Layer
Line 38: ''' Methods in this class call methods in the Data Layer
Line 39: ''' </summary>
Line 40: ''' <remarks>
Line 41: ''' </remarks>
Line 42: ''' <history>
Line 43: ''' [cnurse] 9/20/2004 Moved Contacts to a separate Project
Line 44: ''' </history>
Line 45: ''' -----------------------------------------------------------------------------
Line 46: Public Class ContactController
Line 47: Implements Entities.Modules.ISearchable
Line 48: Implements Entities.Modules.IPortable
Line 49:
Line 50:
Line 51: #Region "Public Methods"
Line 52:
Line 53: Public Sub AddContact(ByVal objcontact As ContactInfo)
Line 54:
Line 55: DataProvider.Instance().AddContact(objcontact.ModuleId, objcontact.CreatedByUser, objcontact.Name, objcontact.Role, objcontact.Email, objcontact.Contact1, objcontact.Contact2)
Line 56:
Line 57: End Sub
Line 58:
Line 59: Public Sub DeleteContact(ByVal ItemID As Integer)
Line 60:
Line 61: DataProvider.Instance().DeleteContact(ItemID)
Line 62:
Line 63: End Sub
Line 64:
Line 65: Public Function GetContact(ByVal ItemId As Integer, ByVal ModuleId As Integer) As ContactInfo
Line 66:
Line 67: Return CType(CBO.FillObject(DataProvider.Instance().GetContact(ItemId, ModuleId), GetType(ContactInfo)), ContactInfo)
Line 68:
Line 69: End Function
Line 70:
Line 71: Public Function GetContacts(ByVal ModuleId As Integer) As ArrayList
Line 72:
Line 73: Return CBO.FillCollection(DataProvider.Instance().GetContacts(ModuleId), GetType(ContactInfo))
Line 74:
Line 75: End Function
Line 76:
Line 77: Public Sub UpdateContact(ByVal objContact As ContactInfo)
Line 78:
Line 79: DataProvider.Instance().UpdateContact(objContact.ItemId, objContact.CreatedByUser, objContact.Name, objContact.Role, objContact.Email, objContact.Contact1, objContact.Contact2)
Line 80:
Line 81: End Sub
Line 82:
Line 83: #End Region
Line 84:
Line 85: #Region "Optional Interfaces"
Line 86:
Line 87: ''' -----------------------------------------------------------------------------
Line 88: ''' <summary>
Line 89: ''' GetSearchItems implements the ISearchable Interface
Line 90: ''' </summary>
Line 91: ''' <remarks>
Line 92: ''' </remarks>
Line 93: ''' <param name="ModInfo">The ModuleInfo for the module to be Indexed</param>
Line 94: ''' <history>
Line 95: ''' [cnurse] 11/17/2004 documented
Line 96: ''' </history>
Line 97: ''' -----------------------------------------------------------------------------
Line 98: Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As Services.Search.SearchItemInfoCollection Implements Entities.Modules.ISearchable.GetSearchItems
Line 99:
Line 100: Dim SearchItemCollection As New SearchItemInfoCollection
Line 101:
Line 102: Dim Contacts As ArrayList = GetContacts(ModInfo.ModuleID)
Line 103:
Line 104: Dim objContact As Object
Line 105: For Each objContact In Contacts
Line 106: Dim SearchItem As SearchItemInfo
Line 107: With CType(objContact, ContactInfo)
Line 108: '
Line 109: Dim UserId As Integer = Null.NullInteger
Line 110: If IsNumeric(.CreatedByUser) Then
Line 111: UserId = Integer.Parse(.CreatedByUser)
Line 112: End If
Line 113: SearchItem = New SearchItemInfo(ModInfo.ModuleTitle, .Name, UserId, .CreatedDate, ModInfo.ModuleID, .ItemId.ToString, .Name & " " & .Role & " " & .Email & " " & .Contact1 & " " & .Contact2, "ItemId=" & .ItemId.ToString)
Line 114: SearchItemCollection.Add(SearchItem)
Line 115: End With
Line 116: Next
Line 117:
Line 118: Return SearchItemCollection
Line 119: End Function
Line 120:
Line 121: ''' -----------------------------------------------------------------------------
Line 122: ''' <summary>
Line 123: ''' ExportModule implements the IPortable ExportModule Interface
Line 124: ''' </summary>
Line 125: ''' <remarks>
Line 126: ''' </remarks>
Line 127: ''' <param name="ModuleID">The Id of the module to be exported</param>
Line 128: ''' <history>
Line 129: ''' [cnurse] 11/17/2004 documented
Line 130: ''' </history>
Line 131: ''' -----------------------------------------------------------------------------
Line 132: Public Function ExportModule(ByVal ModuleID As Integer) As String Implements Entities.Modules.IPortable.ExportModule
Line 133: Dim strXML As String = ""
Line 134:
Line 135: Dim arrContacts As ArrayList = GetContacts(ModuleID)
Line 136: If arrContacts.Count <> 0 Then
Line 137: strXML += "<contacts>"
Line 138: Dim objContact As ContactInfo
Line 139: For Each objContact In arrContacts
Line 140: strXML += "<contact>"
Line 141: strXML += "<name>" & XmlUtils.XMLEncode(objContact.Name) & "</name>"
Line 142: strXML += "<role>" & XmlUtils.XMLEncode(objContact.Role) & "</role>"
Line 143: strXML += "<email>" & XmlUtils.XMLEncode(objContact.Email) & "</email>"
Line 144: strXML += "<contact1>" & XmlUtils.XMLEncode(objContact.Contact1) & "</contact1>"
Line 145: strXML += "<contact2>" & XmlUtils.XMLEncode(objContact.Contact2) & "</contact2>"
Line 146: strXML += "</contact>"
Line 147: Next
Line 148: strXML += "</contacts>"
Line 149: End If
Line 150:
Line 151: Return strXML
Line 152:
Line 153: End Function
Line 154:
Line 155: ''' -----------------------------------------------------------------------------
Line 156: ''' <summary>
Line 157: ''' ImportModule implements the IPortable ImportModule Interface
Line 158: ''' </summary>
Line 159: ''' <remarks>
Line 160: ''' </remarks>
Line 161: ''' <param name="ModuleID">The Id of the module to be imported</param>
Line 162: ''' <history>
Line 163: ''' [cnurse] 11/17/2004 documented
Line 164: ''' </history>
Line 165: ''' -----------------------------------------------------------------------------
Line 166: Public Sub ImportModule(ByVal ModuleID As Integer, ByVal Content As String, ByVal Version As String, ByVal UserId As Integer) Implements Entities.Modules.IPortable.ImportModule
Line 167: Dim xmlContact As XmlNode
Line 168: Dim xmlContacts As XmlNode = GetContent(Content, "contacts")
Line 169: For Each xmlContact In xmlContacts.SelectNodes("contact")
Line 170: Dim objContact As New ContactInfo
Line 171: objContact.ModuleId = ModuleID
Line 172: objContact.Name = xmlContact.Item("name").InnerText
Line 173: objContact.Role = xmlContact.Item("role").InnerText
Line 174: objContact.Email = xmlContact.Item("email").InnerText
Line 175: objContact.Contact1 = xmlContact.Item("contact1").InnerText
Line 176: objContact.Contact2 = xmlContact.Item("contact2").InnerText
Line 177: objContact.CreatedByUser = UserId.ToString
Line 178: AddContact(objContact)
Line 179: Next
Line 180:
Line 181: End Sub
Line 182:
Line 183: #End Region
Line 184:
Line 185: End Class
Line 186:
Line 187: End Namespace
Line 188:
Line 189:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
|
|
|
|