Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Created and updated on hosting server but Error in finding a file, Created and updated on hosting server but Error in finding a file,
Previous
 
Next
New Post
7/10/2009 1:50 AM
 

Dear All,

I created a web site in dotnetnuke and uploaded it online(HostingServer), but it is not working and it is giving me an error "Object reference set to an instance".

When i tracked it down on hosting server , i found that it is at the follwoing code position , error is listed below the code.

It does not find ADMIN/SKINS/Language.ascx file even though it is present at the same location.

Kindly advise me whats the problem and how can i solve it, because i am stucked and cannot move forward with the web site.

I think it is not loading the ctlSkin object properly and it gives me an error on default.aspx.vb page at ctlSkin.ID="DNN"

Thank you in advance

 

 

-------------------------------------------------------------------------------------------------------

 Private Function LoadSkin(ByVal SkinPath As String) As DotNetNuke.UI.Skins.Skin
            Dim ctlSkin As DotNetNuke.UI.Skins.Skin = Nothing

            Try
                If SkinPath.ToLower.IndexOf(Common.Globals.ApplicationPath.ToLower) <> -1 Then
                    SkinPath = SkinPath.Remove(0, Len(Common.Globals.ApplicationPath))
                End If
                Response.Write("~" & SkinPath)



                ctlSkin = CType(LoadControl("~" & SkinPath), DotNetNuke.UI.Skins.Skin)

                ' call databind so that any server logic in the skin is executed
                ctlSkin.DataBind()
            Catch exc As Exception
                ' could not load user control
                Response.Write(exc.Message)
                Response.Write("<br/>")
                Response.Write(exc.InnerException)
                Response.Write("<br/>")
                Response.Write(exc.Source)
                Response.Write("<br/>")

                Response.Write(exc.StackTrace)
                Response.Write("<br/>")
                Response.End()
                Dim lex As New PageLoadException("Unhandled error loading page.", exc)
                If PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName) = True Or PortalSecurity.IsInRoles(PortalSettings.ActiveTab.AdministratorRoles.ToString) = True Then
                    ' only display the error to administrators
                    SkinError.Text &= "<div style=""text-align:center"">Could Not Load Skin: " & SkinPath & " Error: " & Server.HtmlEncode(exc.Message) & "</div><br>"
                    SkinError.Visible = True
                End If
                LogException(lex)
                Err.Clear()
            End Try

            'check for and read skin package level doctype
            SetSkinDoctype(SkinPath)
            Response.Write(ctlSkin.ID)
            Response.End()
            Return ctlSkin
        End Function

 

--------------------------------------------------------------------------

--~/Portals/_default/Skins/MinimalExtropy/index.ascxThe file '/Admin/Skins/Language.ascx' does not exist.
System.Web.HttpParseException: The file '/Admin/Skins/Language.ascx' does not exist. ---> System.Web.HttpException: The file '/Admin/Skins/Language.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(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.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.BaseTemplateParser.GetReferencedType(VirtualPath virtualPath, Boolean allowNoCompile) at System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath virtualPath) at System.Web.UI.MainTagNameToTypeMapper.ProcessUserControlRegistration(UserControlRegisterEntry ucRegisterEntry) at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
System.Web
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() 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.Compilation.BuildManager.GetVPathBuildResult(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.Framework.DefaultPage.LoadSkin(String SkinPath)

 
New Post
7/10/2009 4:49 AM
 

there seem to be necessary files missing from the installation, in this case the languaeg selector.

please reunzip the installation package and make sure, full permissions are granted to asp.net account (local "Network Service" account by default).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/12/2009 7:29 AM
 

It is working fine locally on my machine but when i updated all the files on the hosting directory. it started showing me the error i mentioned above.

 

This is the line where the problem is on default.aspx.vb LoadSkin method.......... Does DotNetNuke.UI.Skins.Skin loads any path be default?

             ctlSkin = CType(LoadControl("~" & SkinPath), DotNetNuke.UI.Skins.Skin)

 

 

Kindly advise

 

Thank you, Kind Regards

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Created and updated on hosting server but Error in finding a file, Created and updated on hosting server but Error in finding a file,


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out