|
Joined: 1/22/2010
Posts: 0
|
|
|
Hi,
I have been told that DNN can run in the web root directory happily alongside webservices running in other directories. Whilst DNN is running OK, the other webservices are not.
My searches so far have lead me to discover this is most likely caused by the fact that web.config settings automatically cascade down into subdirectories and where another web.config exists in the subdirectory, the DNN web.config is inherited by that web.config. Hence, my webservices are trying to run/establish links etc that are specified in the root web.config file. My webservices are all crashing of course.
I have also discovered that the above cascading effect can be disabled in a web config file by surrounding the system.web and system.webserver sections with the following:
<location path="." inheritInChildApplications="false">
..
</location>
This actually works and my webservices run OK but it obviously interferes with DNN as the web.config settings in the root directory are not cascading down into DNN's subdirectories either!
Further investigation reveals that I can specify the path that I want 'ignored' in the location directive. In other words, instead of specifying all subdirectories with the full stop ("."), I can specify specific subdirectories.
Herein lies my problem.
I have tried path="Webservices/Uploader" and a great many variants of that without any success whatsoever. DNN still fails to compile as in the following error message:
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: BC30002: Type 'IDataReader' is not defined.
Source Error:
|
Line 64: Public MustOverride Function AddLink(ByVal ModuleId As Integer, ByVal UserId As Integer, ByVal CreatedDate As DateTime, ByVal Title As String, ByVal Url As String, ByVal ViewOrder As Integer, ByVal Description As String, ByVal RefreshInterval As Integer, ByVal GrantRoles As String) As Integer
Line 65: Public MustOverride Sub DeleteLink(ByVal ItemID As Integer, ByVal ModuleId As Integer)
Line 66: Public MustOverride Function GetLink(ByVal ItemID As Integer, ByVal ModuleId As Integer) As IDataReader Line 67: Public MustOverride Function GetLinks(ByVal ModuleId As Integer) As IDataReader
Line 68: Public MustOverride Sub UpdateLink(ByVal ItemId As Integer, ByVal UserId As Integer, ByVal CreatedDate As DateTime, ByVal Title As String, ByVal Url As String, ByVal ViewOrder As Integer, ByVal Description As String, ByVal RefreshInterval As Integer, ByVal GrantRoles As String)
|
Source File: E:\web\aquarius\App_Code\Links\DataProvider.vb Line: 66
Compiler Warning Messages:
Warning: BC42105: Function 'UpgradeModule' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.
Source Error:
E:\web\aquarius\App_Code\Links\LinksController.vb |
Line 402: Public Function UpgradeModule(ByVal Version As String) As String Implements Entities.Modules.IUpgradeable.UpgradeModule
Line 403:
Line 404: End Function Line 405:
Line 406: End Class
|
Show Detailed Compiler Output:
C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v3.5\vbc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\df1fcc88\ebfb55fb_44a1ca01\DotNetNuke.Modules.FAQs.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\7bd6e1ee\e398b5e1_44a1ca01\DNNDoneRight.DDRMenu.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.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\root\f437a28c\db53cfb4\assembly\dl3\6241d76c\d9e1bd0e_45a1ca01\DotNetNuke.WebUtility.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\821d557d\7d1c30f9_44a1ca01\DotNetNuke.HttpModules.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\08165b56\0de23cfc_44a1ca01\DotNetNuke.Modules.FAQs.SqlDataProvider.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\92359681\d106a3fe_44a1ca01\DotNetNuke.Provider.AspNetProvider.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\6f80c6d0\d5b8ffd3_45a1ca01\Telerik.Web.UI.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\root\f437a28c\db53cfb4\assembly\dl3\a4c61280\d5cfcff7_44a1ca01\DotNetNuke.FckHtmlEditorProvider.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\596d92e8\d5088602_45a1ca01\DotNetNuke.SqlDataProvider.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\477a9627\a3766613_45a1ca01\Microsoft.ApplicationBlocks.Data.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\e89e996c\214410e0_44a1ca01\CountryListBox.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\d95f9d58\37a6c5fd_44a1ca01\DotNetNuke.Modules.Html.DLL" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.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\root\f437a28c\db53cfb4\assembly\dl3\b82d3001\59630107_45a1ca01\DotNetNuke.WebControls.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_GlobalResources.ktqrejmy.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\6cfdabb8\8ff703fa_44a1ca01\DotNetNuke.Membership.DataProvider.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.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\7ce7c66a\8dac4112_45a1ca01\iFinity.FriendlyUrlProvider.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\06e64984\9dcae615_45a1ca01\SharpZipLib.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\01516574\0fc58f00_45a1ca01\DotNetNuke.Services.Syndication.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\390b9ef7\4d3734f4_44a1ca01\DotNetNuke.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\2e8d9c07\730c6cf5_44a1ca01\DotNetNuke.DNNScheduler.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\assembly\dl3\d84331c4\353866ff_44a1ca01\DotNetNuke.Provider.DNNProvider.DLL" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.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 /warnaserror- /optionInfer+ "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.8.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.2.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.0.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.7.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.5.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.9.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.3.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.1.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.6.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f437a28c\db53cfb4\App_Code.jxmgnbnq.4.vb"
Microsoft (R) Visual Basic Compiler version 9.0.30729.1
Copyright (c) Microsoft Corporation. All rights reserved.
E:\web\aquarius\App_Code\Links\DataProvider.vb(66) : error BC30002: Type 'IDataReader' is not defined.
Public MustOverride Function GetLink(ByVal ItemID As Integer, ByVal ModuleId As Integer) As IDataReader
~~~~~~~~~~~
E:\web\aquarius\App_Code\Links\DataProvider.vb(67) : error BC30002: Type 'IDataReader' is not defined.
Public MustOverride Function GetLinks(ByVal ModuleId As Integer) As IDataReader
~~~~~~~~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(212) : error BC30451: Name 'CBO' is not declared.
Return CType(CBO.FillObject(DataProvider.Instance().GetLink(ItemID, ModuleId), GetType(LinkInfo)), LinkInfo)
~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(218) : error BC30451: Name 'CBO' is not declared.
Return CBO.FillCollection(DataProvider.Instance().GetLinks(ModuleId), GetType(LinkInfo))
~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(252) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.ItemId = Convert.ToInt32(Null.SetNull(dr("ItemId"), linkInfo.ItemId))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(253) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.ModuleId = Convert.ToInt32(Null.SetNull(dr("ModuleId"), linkInfo.ModuleId))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(254) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.Title = Convert.ToString(Null.SetNull(dr("Title"), linkInfo.Title))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(255) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.Url = Convert.ToString(Null.SetNull(dr("URL"), linkInfo.Url))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(256) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.ViewOrder = Convert.ToInt32(Null.SetNull(dr("ViewOrder"), linkInfo.ViewOrder))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(257) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.Description = Convert.ToString(Null.SetNull(dr("Description"), linkInfo.Description))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(258) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.CreatedByUser = Convert.ToInt32(Null.SetNull(dr("CreatedByUser"), linkInfo.CreatedByUser))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(259) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.CreatedDate = Convert.ToDateTime(Null.SetNull(dr("CreatedDate"), linkInfo.CreatedDate))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(260) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.TrackClicks = Convert.ToBoolean(Null.SetNull(dr("TrackClicks"), linkInfo.TrackClicks))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(261) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.NewWindow = Convert.ToBoolean(Null.SetNull(dr("NewWindow"), linkInfo.NewWindow))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(262) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.RefreshInterval = Convert.ToInt32(Null.SetNull(dr("RefreshInterval"), linkInfo.RefreshInterval))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(277) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.ItemId = Convert.ToInt32(Null.SetNull(dr("ItemId"), linkInfo.ItemId))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(278) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.ModuleId = Convert.ToInt32(Null.SetNull(dr("ModuleId"), linkInfo.ModuleId))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(279) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.Title = Convert.ToString(Null.SetNull(dr("Title"), linkInfo.Title))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(280) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.Url = Convert.ToString(Null.SetNull(dr("URL"), linkInfo.Url))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(281) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.ViewOrder = Convert.ToInt32(Null.SetNull(dr("ViewOrder"), linkInfo.ViewOrder))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(282) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.Description = Convert.ToString(Null.SetNull(dr("Description"), linkInfo.Description))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(283) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.CreatedByUser = Convert.ToInt32(Null.SetNull(dr("CreatedByUser"), linkInfo.CreatedByUser))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(284) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.CreatedDate = Convert.ToDateTime(Null.SetNull(dr("CreatedDate"), linkInfo.CreatedDate))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(285) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.TrackClicks = Convert.ToBoolean(Null.SetNull(dr("TrackClicks"), linkInfo.TrackClicks))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(286) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.NewWindow = Convert.ToBoolean(Null.SetNull(dr("NewWindow"), linkInfo.NewWindow))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(287) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
linkInfo.RefreshInterval = Convert.ToInt32(Null.SetNull(dr("RefreshInterval"), linkInfo.RefreshInterval))
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(320) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
SearchItem = New SearchItemInfo(ModInfo.ModuleTitle & " - " & .Title, .Description, .CreatedByUser, .CreatedDate, ModInfo.ModuleID, .ItemId.ToString, .Description, "ItemId=" & .ItemId.ToString, Null.NullInteger)
~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(375) : error BC30451: Name 'GetContent' is not declared.
Dim xmlLinks As XmlNode = GetContent(Content, "links")
~~~~~~~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(380) : error BC30451: Name 'ImportUrl' is not declared.
objLink.Url = ImportUrl(ModuleID, xmlLink.Item("url").InnerText)
~~~~~~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(394) : error BC30002: Type 'UrlController' is not defined.
Dim objUrls As New UrlController
~~~~~~~~~~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(395) : error BC30451: Name 'GetPortalSettings' is not declared.
objUrls.UpdateUrl(GetPortalSettings.PortalId, objLink.Url, convertURLType(GetURLType(objLink.Url)), False, objLink.TrackClicks, ModuleID, objLink.NewWindow)
~~~~~~~~~~~~~~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(395) : error BC30451: Name 'GetURLType' is not declared.
objUrls.UpdateUrl(GetPortalSettings.PortalId, objLink.Url, convertURLType(GetURLType(objLink.Url)), False, objLink.TrackClicks, ModuleID, objLink.NewWindow)
~~~~~~~~~~
E:\web\aquarius\App_Code\Links\LinksController.vb(404) : warning BC42105: Function 'UpgradeModule' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.
End Function
~~~~~~~~~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(214) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
ItemId = Convert.ToInt32(Null.SetNull(dr("ItemId"), ItemId))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(215) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
ModuleId = Convert.ToInt32(Null.SetNull(dr("ModuleId"), ModuleId))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(216) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
Title = Convert.ToString(Null.SetNull(dr("Title"), Title))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(217) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
Url = Convert.ToString(Null.SetNull(dr("URL"), Url))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(218) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
ViewOrder = Convert.ToInt32(Null.SetNull(dr("ViewOrder"), ViewOrder))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(219) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
Description = Convert.ToString(Null.SetNull(dr("Description"), Description))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(220) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
CreatedByUser = Convert.ToInt32(Null.SetNull(dr("CreatedByUser"), CreatedByUser))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(221) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
RefreshInterval = Convert.ToInt32(Null.SetNull(dr("RefreshInterval"), RefreshInterval))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(222) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
CreatedDate = Convert.ToDateTime(Null.SetNull(dr("CreatedDate"), CreatedDate))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(223) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
TrackClicks = Convert.ToBoolean(Null.SetNull(dr("TrackClicks"), TrackClicks))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(224) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
NewWindow = Convert.ToBoolean(Null.SetNull(dr("NewWindow"), NewWindow))
~~~~
E:\web\aquarius\App_Code\Links\LinksInfo.vb(225) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
GrantRoles = Convert.ToString(Null.SetNull(dr("GrantRoles"), GrantRoles))
~~~~
E:\web\aquarius\App_Code\Links\Providers\DataProviders\SqlDataProvider\SqlDataProvider.vb(138) : error BC30284: function 'GetLink' cannot be declared 'Overrides' because it does not override a function in a base class.
Public Overrides Function GetLink(ByVal ItemId As Integer, ByVal ModuleId As Integer) As IDataReader
~~~~~~~
E:\web\aquarius\App_Code\Links\Providers\DataProviders\SqlDataProvider\SqlDataProvider.vb(142) : error BC30284: function 'GetLinks' cannot be declared 'Overrides' because it does not override a function in a base class.
Public Overrides Function GetLinks(ByVal ModuleId As Integer) As IDataReader
~~~~~~~~
|
Show Complete Compilation Source:
Line 1: '
Line 2: ' DotNetNuke® - http://www.dotnetnuke.com
Line 3: ' Copyright (c) 2002-2008
Line 4: ' by DotNetNuke Corporation
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:
Line 21: Imports System
Line 22: Imports DotNetNuke
Line 23:
Line 24: Namespace DotNetNuke.Modules.Links
Line 25:
Line 26: ''' -----------------------------------------------------------------------------
Line 27: ''' <summary>
Line 28: ''' The DataProvider Class Is an abstract class that provides the DataLayer
Line 29: ''' for the Links Module.
Line 30: ''' </summary>
Line 31: ''' <remarks>
Line 32: ''' </remarks>
Line 33: ''' <history>
Line 34: ''' [cnurse] 9/23/2004 Moved Links to a separate Project
Line 35: ''' </history>
Line 36: ''' -----------------------------------------------------------------------------
Line 37: Public MustInherit Class DataProvider
Line 38:
Line 39: #Region "Shared/Static Methods"
Line 40:
Line 41: ' singleton reference to the instantiated object
Line 42: Private Shared objProvider As DataProvider = Nothing
Line 43:
Line 44: ' constructor
Line 45: Shared Sub New()
Line 46: CreateProvider()
Line 47: End Sub
Line 48:
Line 49: ' dynamically create provider
Line 50: Private Shared Sub CreateProvider()
Line 51: ' [alex - 09/01/09] removed object assembly name (required for WPA projects)
Line 52: objProvider = CType(Framework.Reflection.CreateObject("data", "DotNetNuke.Modules.Links", ""), DataProvider)
Line 53: End Sub
Line 54:
Line 55: ' return the provider
Line 56: Public Shared Shadows Function Instance() As DataProvider
Line 57: Return objProvider
Line 58: End Function
Line 59:
Line 60: #End Region
Line 61:
Line 62: #Region "Abstract methods"
Line 63:
Line 64: Public MustOverride Function AddLink(ByVal ModuleId As Integer, ByVal UserId As Integer, ByVal CreatedDate As DateTime, ByVal Title As String, ByVal Url As String, ByVal ViewOrder As Integer, ByVal Description As String, ByVal RefreshInterval As Integer, ByVal GrantRoles As String) As Integer
Line 65: Public MustOverride Sub DeleteLink(ByVal ItemID As Integer, ByVal ModuleId As Integer)
Line 66: Public MustOverride Function GetLink(ByVal ItemID As Integer, ByVal ModuleId As Integer) As IDataReader
Line 67: Public MustOverride Function GetLinks(ByVal ModuleId As Integer) As IDataReader
Line 68: Public MustOverride Sub UpdateLink(ByVal ItemId As Integer, ByVal UserId As Integer, ByVal CreatedDate As DateTime, ByVal Title As String, ByVal Url As String, ByVal ViewOrder As Integer, ByVal Description As String, ByVal RefreshInterval As Integer, ByVal GrantRoles As String)
Line 69:
Line 70: #End Region
Line 71:
Line 72: End Class
Line 73: End Namespace
Line 74:
Line 75:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016
I am presuming that the settings in the root folder web.config (ie DNN's) are not cascading down to the E:\web\aquarius\App_Code\Links directory.
Can someone help me to figure this out please.
Thank you.
|
|
|
|