update from 2.1.1 problem

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
1/8/2007 3:54:56 AM
Gravatar
Total Posts 27
~~~~~~~~~~~~~~

update from 2.1.1 problem

Hi Joe,

 

I am updating from 2.1.1 toe 2.1.8

First I got the error: Index was outside the bounds of the array

So I ran the create sql stored procs from 2.1.8

Now I have this error:

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: CS0117: 'mojoPortal.Web.SiteUtils' does not contain a definition for 'GetSiteRoot'

Source Error:

 

Line 109:			    <br class="clear" />
Line 110:			    <portal:SkinPreview id="SkinPreview1" runat="server"></portal:SkinPreview><br /><br />
Line 111:				<a href="http://www.mojoportal.com" ><img alt="mojoportal" id="logo" src="<%=SiteUtils.GetSiteRoot()%>/Data/SiteImages/poweredbymojoportal3.gif"  /></a>
Line 112:				<a href="http://validator.w3.org/check?uri=referer"><img src="<%=SiteUtils.GetSiteRoot()%>/Data/SiteImages/valid-xhtml10.png" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
Line 113:				<a href="http://jigsaw.w3.org/css-validator/validator?uri=<%=SiteUtils.GetStyleSheetUrl() %>"><img style="border:0;width:88px;height:31px" src="<%=SiteUtils.GetSiteRoot()%>/Data/SiteImages/vcss.png" alt="Valid CSS!" /></a>

 

 

So I am afraid I made a nice mess of it!

Can you help me?

Thanks in advance!

1/8/2007 3:59:38 AM
Gravatar
Total Posts 27
~~~~~~~~~~~~~~

Re: update from 2.1.1 problem

sorry, update was from 2.1 version, not from 2.1.1
1/8/2007 4:03:05 AM
Gravatar
Total Posts 18439

Re: update from 2.1.1 problem

Hi Roger,

Yes, some things got re-organized in the API. If you change SiteUtils.GetSiteRoot() to WebUtils.GetSiteRoot() it should resolve the problem.

Or you can do what I have done in the included skins, I have changed the syntax to use Page.ResolveUrl which I think is probably a little more efficient. Like this:

<a href="http://www.mojoportal.com" ><img alt="" id="img2" src='<%= Page.ResolveUrl("~/Data/SiteImages/poweredbymojoportal3.gif") %>'  /></a>

Hope it helps,

Joe
1/8/2007 4:10:28 AM
Gravatar
Total Posts 27
~~~~~~~~~~~~~~

Re: update from 2.1.1 problem

Yes that helped!

Instead of changing the code I copied a layout.master from 2.1.8 skin folder to my custom skin.

(I guess the layout.master was the only file I didn't copy....)

Roger

You must sign in to post in the forums. This thread is closed to new posts.