Login
Register
29-07-2010

Resources for the DotNetNuke Community


Support this site

  Support forums  

You need to be logged in in order to post to this forums.
SearchForum Home
  Modules  Printing SkinObjects  Error: The file...
 Error: The file '/my_portal/PagePrint.ascx'
 
imgOfflinejl2424
7 posts
Joined
4/28/2009

Error: The file '/my_portal/PagePrint.ascx'
Posted: 28 Apr 09 10:03 AM
It seems that the pageprint skinobject does not render correct ASPX code: While the PagePrint.aspx is installed correctly to DesktopModules/VMasanas - PagePrint/Pageprint.ascx, the [PAGEPRINT] skinobject in an HTML skin will render to <%@ Register TagPrefix="dnn" TagName="PAGEPRINT" Src="~/PagePrint.ascx" %>, so ASP will look for the pageprint.aspx in the wrong folder.
imgOfflinejl2424
7 posts
Joined
4/28/2009

Re: Error: The file '/my_portal/PagePrint.ascx'
Posted: 28 Apr 09 10:24 AM
Samke for the templateprint skinobject
imgOfflinednnjungle
151 posts
5th
Joined
3/13/2005

Re: Error: The file '/my_portal/PagePrint.ascx'
Posted: 28 Apr 09 12:09 PM

There should be a problem on your side since it does not happen to me. The skin on this site uses the [PAGEPRINT] token on an html skin and it get correctly converted to the righth path:

<  Register TagPrefix="dnn" TagName="PAGEPRINT" Src="~/DesktopModules/VMasanas - PagePrint/PagePrint.ascx" >


Disgrafic.com
imgOfflinejl2424
7 posts
Joined
4/28/2009

Re: Error: The file '/my_portal/PagePrint.ascx'
Posted: 28 Apr 09 1:06 PM
I just can tell that I had to manually correct the filepath in the module settings via the host menu, because there it was pointing to PagePrint.ascx but not to DesktopModules/VMasanas - PagePrint/PagePrint.ascx
imgOfflinejl2424
7 posts
Joined
4/28/2009

Re: Error: The file '/my_portal/PagePrint.ascx'
Posted: 29 Apr 09 5:14 AM Modified By jl2424  on 4/29/2009 6:27:47 AM)
Now that's weird: Everything worked fine yesterday, today I build my test environment again an I am getting the following error message in the "module definitions" and "extensions" pages:

DotNetNuke.Services.Exceptions.ModuleLoadException: startIndex cannot be larger than length of string. Parameter name: startIndex ---> System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at VMasanas.DNN.SkinObjects.TemplatePrint.TemplatePrint.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

While in the module definitions and extensions it is showing that error message, all normal pages have the print button and the template print works fine, module settings do not show a print button but no error message.

The module definition which I changed manually is still the same and pointing to the correct directory where the Skinobject is in.
imgOfflinejl2424
7 posts
Joined
4/28/2009

Re: Error: The file '/my_portal/PagePrint.ascx'
Posted: 07 May 09 12:37 PM
Any updates on this issue?
  Modules  Printing SkinObjects  Error: The file...
© Vicenç Masanas Terms Of Use Privacy Statement   
.