Login
Register
17-05-2008

Resources for the DotNetNuke Community
Join WebHost4Life.com
Support this site

  Support forums  

You need to be logged in in order to post to this forums.
SearchForum Home
  DotNetNuke Development  HelloWorld Tutorial  SkinObject Basi...
 SkinObject Basics - Please help!
 
imgOfflineDotNetNinja
3 posts
Joined
4/6/2007

SkinObject Basics - Please help!
Posted: 05 Apr 07 3:09 PM

I am at the end of my rope here, and I'm desperately hoping someone can help me.

I've created a couple of new skin objects, but I can't get either of them to work properly when published.  These objects render and display just perfectly on my development machine, but when published to the server, the skin won't load.

The error message I get is:

Could Not Load Skin: /Portals/_default/Skins/Project2/HomePageLayout.ascx Error: Could not load file or assembly 'App_global.asax, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

I don't know what to do.  I've gone over the dotnetnuke skin objects with a fine tooth comb and made sure that I have absolutely everything in place just as they do, namespaces, file locations, registered in the skin ascx, etc.  I've tried everything I can think of and I'm stumped now.  I've even made sure that the skin object is configured and listed in the Skin Objects list under Module definitions.

If I remove the tag that contains the skin object, everything is fine.  And again, the frustrating thing is, it works just fine on my development machine, but just doesn't work on the server.  I can't imagine what is out of place.

I have the book Professional DotNetNuke 4, but details on skin objects are sorely lacking here.  If anyone can help or is aware of any place where there is thorough detailed documentation on skin objects, I would appreciate your comments.

Thank you.

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: SkinObject Basics - Please help!
Posted: 06 Apr 07 12:09 AM

Are you using the same DNN version on devel and server? Also are you sure you uploaded all the files required for the sko to be used?

If your server is working fine normally this seems to me as an installation issue.


Disgrafic.com
imgOfflineDotNetNinja
3 posts
Joined
4/6/2007

Re: SkinObject Basics - Please help!
Posted: 06 Apr 07 9:21 AM

My development environment has 4.3.5 installed and the server has 4.4.1.

I would agree with you that it is an installation issue of some sort.  I just don't know what it is I'm overlooking.

I am copying the ascx file and the corresponding compiled dll file.  I am putting the ascx file into the admin/Skins directory and the .dll into the bin directory on the server.  Is there some other file or files I am overlooking?  Something is out of sync somehow, but I just don't know what.

Thank you for your help.

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: SkinObject Basics - Please help!
Posted: 06 Apr 07 11:52 PM

Not sure if this could be the problem but you don't have to put your skos in admin\skins! A skin object is considered as a "kind" of module so it should be installed in Desktopmodules folder as usual. Take for example any of the skin objects you can download from this site look how they're installed.


Disgrafic.com
imgOfflineDotNetNinja
3 posts
Joined
4/6/2007

Re: SkinObject Basics - Please help!
Posted: 09 Apr 07 12:00 PM Modified By DotNetNinja  on 4/9/2007 12:08:08 PM)

Thanks for the info.  I tried your suggestion.  I removed any files relating to the old way I had implemented the skinobject from the server.  Then I recreated the skinobject as a desktop module in the desktop modules folder within its own folder, compiled it, uploaded to the server, defined the definition within module definitions defining it as a skin object, and then tried to use it.

BAM!  Same problem.  Like all times before, it worked this way just fine on my development pc, but did not work on the server.  I'm wondering if there is some problem relating to the way I'm trying to implement the skin object.

What I'm doing is within markup of my ascx skin file, I enter the register statement at the top of the file like this:

<%@ Register TagPrefix="tax" TagName="BANNERROTATOR" Src="~/DesktopModules/BannerRotator/STWM_BannerRotator.ascx" %>

then, I manually key in the location of the skinobject within the table like this:

<tr>
<td style="width: 992px;" bgcolor="#C0C0C0">
<tax:BANNERROTATOR runat="SERVER" />
</td>
</tr>

This works fine on my development PC, but on the server, I get the following error:

AssemblyVersion: 04.03.07
PortalID: 0
PortalName: Application
UserID: 3
UserName: Superuser
ActiveTabID: 60
ActiveTabName: Home
RawURL: /tabid/60/Default.aspx
AbsoluteURL: /Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 2212be61-2b71-4c6f-9df9-8368a9f63966
InnerException: Unhandled error loading page.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Signature._GetSignature
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Unhandled error loading page. ---> System.Web.HttpParseException: Could not load file or assembly 'App_global.asax, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. ---> System.Exception: Could not load file or assembly 'App_global.asax, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'App_global.asax, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'App_global.asax, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle) at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle) at System.Signature..ctor(Void* pCorSig, Int32 cCorSig, RuntimeTypeHandle declaringTypeHandle) at System.Reflection.RuntimePropertyInfo.get_Signature() at System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.PopulateProperties(Filter filter, RuntimeTypeHandle declaringTypeHandle, Int32* tkAssociates, Int32 cProperties, Hashtable csPropertyInfos, List`1 list) at System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.PopulateProperties(Filter filter, RuntimeTypeHandle declaringTypeHandle, Hashtable csPropertyInfos, List`1 list) at System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.PopulateProperties(Filter filter) at System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.Populate(String name, MemberListType listType, CacheType cacheType) at System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.GetMemberList(MemberListType listType, String name, CacheType cacheType) at System.RuntimeType.GetPropertyCandidates(String name, BindingFlags bindingAttr, Type[] types, Boolean allowPrefixLookup) at System.RuntimeType.GetProperties(BindingFlags bindingAttr) at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetProperties(Type type) at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetProperties() at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties() at System.ComponentModel.TypeDescriptor.GetProperties(Type componentType) at System.Web.UI.ControlBuilder.get_PropertyDescriptors() at System.Web.UI.ControlBuilder.ValidatePersistable(PropertyInfo propInfo, Boolean usingSetAttribute, Boolean mainDirectiveMode, Boolean simplePropertyEntry, String filter) at System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) at System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. --- 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) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) 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.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.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.Framework.DefaultPage.LoadSkin(String SkinPath) in E:\Inetpub\testapplication.com\Default.aspx.vb:line 229 --- End of inner exception stack trace ---
Source:
Server Name: WEBSERVER

Any thoughts?

Thank you.

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: SkinObject Basics - Please help!
Posted: 24 Apr 07 7:03 AM

Sincerely I don't know what's the problem here but seems like an incompatibility between your 4.3.7 and the 4.4.1 on the server.

Can you try installing a local dnn 4.4.1 and compiling the module on that version? Maybe this helps to find the problem.


Disgrafic.com
  DotNetNuke Development  HelloWorld Tutorial  SkinObject Basi...
© Vicenç Masanas Terms Of Use Privacy Statement   
.