Hello all,
I get an error BC30451: Name 'DNN_XSPF_Url' is not declared. I searched the Internet and found that it could have to do with namespaces or so...
There is a connection between the two files: .ascx and .ascx.vb (the code behind part). In my development environment is no problem at all, even not when I connect from other PC's to my testwebserver.
But now I installed the module on my productionserver (WH4L) and this error pops up.
Some backgoundinfo:
My testserver DNN runs version 04.08.02
My production DNN runs version 04.06.02
My developmenttool is Microsoft Visual Studio 2005 Professional Edition
Codesnippets:
ASCX part:
<%@ Control language="vb" CodeBehind="VD_MP3.ascx.vb" Inherits="VisualData.Modules.VD_MP3.VD_MP3" AutoEventWireup="false" Explicit="True"%>
< object codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="170" width="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" "viewastext">
<param name="Movie" value="<%= DNN_XSPF_Url.Text %>" /> <!-- This line causes the error -->
<param name="Src" value="<%= DNN_XSPF_Url.Text %>" />
....
</object>
The ASCX.VB part:
Imports System
Imports system.Data
Imports System.IO
Imports System.Web
Imports System.Web.UI.WebControls
Imports DotNetNuke
Imports DotNetNuke.Services.FileSystem
Namespce VisualData.Modules.VD_MP3
Public MustInherit Class VD_MP3
Inherits Entities.Modules.PortalModuleBase
Implements Entities.Modules.IActionable
#Region "Controls"
Protected WithEvents DNN_XSPF_Url As System.Web.UI.WebControls.TextBox <!-- This is the "undeclared" name. BUT it is here! -->
#End Region
Error:
DotNetNuke.Services.Exceptions.ModuleLoadException: c:\hosting\webhost4life\member\josrichters\DesktopModules\VD_MP3_Management\VD_MP3.ascx(7): error BC30451: Name 'DNN_XSPF_Url' is not declared. ---> System.Web.HttpCompileException: c:\hosting\webhost4life\member\josrichters\DesktopModules\VD_MP3_Management\VD_MP3.ascx(7): error BC30451: Name 'DNN_XSPF_Url' is not declared. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
Can anybody tell me what causes this error and how to correct this?
Thanks alot!
Jos.