CSS broken after updating revision

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
12/2/2008 12:42:34 AM
Gravatar
Total Posts 6

CSS broken after updating revision

Hi.  I have been doing some development on MP and updated my SVN revision to 4497 and all the CSS layout on my pages broke.  I suspected a css file wasn't linking and I found this:

<LINK href="http://dev.myserver.com/mojoportal/Data/Sites/1/skins/styleshout-coolwater/csshandler.ashx?skin=styleshout-coolwater&config=style.config&add=" type="text/css" rel="stylesheet" />

This is obviously a bad href since there is no csshanlder.ashx in /styleshout-coolwater.  Any idea what the cause might be?  How to fix?

Thanks,
Marco

 

12/2/2008 4:44:47 AM
Gravatar
Total Posts 18439

Re: CSS broken after updating revision

Hi Marco,

See this page for notes about changes to skinning. Built in skins should work fine. styleshout-coolwater works fine here and on my sites. I've seen some strange things with svn lately where it doesn't always get all the files by svn update on root folder. You might try svn update on the Data folder/

There are some new files in the skin folders, but csshandler.ashx is not one of them.

The url is not incorrect, the csshandler.ashx does not have to really be in the skin folder because of a httpHandler web.config setting:

<add verb="*" path="*csshandler.ashx" type="mojoPortal.Web.UI.CssHandler, mojoPortal.Web"/>

In fact there is no file named csshandler.ashx, it comes from Web/Components/CssHandler.cs

Hope it helps,

Joe

12/10/2008 9:21:19 PM
Gravatar
Total Posts 6

Re: CSS broken after updating revision

Thanks.  I found the solution: after debugging CSShandler.ashx and realizing that it wasn't firing, I thought the problem was in the web.config.  After adding the handler manually in IIS7, the CSS started working again.  

Just for you info, I'm running build 2.2.7.9.  The reason is that I need the most mature e-commerce code that runs on .NET 3.5, and doesn't contain Silverlight code that my VS2008 can't seem to compile.  I'm integrating a back-end database using a dynamic data site, so the .NET 3.5 compatibility will now allow me to use Linq2Sql objects instead of CodeSmith generated business objects (or so I assume).

Marco

 

12/11/2008 6:05:36 AM
Gravatar
Total Posts 18439

Re: CSS broken after updating revision

Hi Marco,

To compile the Silverlight projects, you need to install the Silverlight Toolkit for VS 2008. You could always make your own custom .sln file and remove the Silverlight projects from your solution.

If you really want the best bits of ecommerce, you should use the code from svn trunk. Already since 2.2.7.9 was released a bug was reported about not being able to save new products. The bug only happened in MS SQL and I had not noticed it because I'm using MySql. It has since been fixed in svn trunk but its not fixed in any release version yet.

Hope it helps,

Joe

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