multi site single signon

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
3/2/2015 10:05:08 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: multi site single signon

Check System Log again. If there's an error loading the skin it will fall back to a default so the site won't just fail to load. But the underlying error should be logged.

3/2/2015 12:24:59 PM
Gravatar
Total Posts 7

Re: multi site single signon

Hi Jamie,

you're right : the log shows the error (see below).
It seems that the masterpage seek the "csshandler.ashx" in subfolder of subsite!
By changing the html in chrome, for eliminate the reference to the subfolder of the subsite, the skin is loaded correctly .
Can I change something alone for pointing the correct csshandler.ashx or should I wait bug fix?

Thank you in advance.

ERROR LOG:

2015-03-02 08:44:24,897 ERROR 5.175.48.17 - it-IT - /site2/csshandler.ashx?skin=art42-condominium&s=3&v=2.4.0.8&sv=00000000-0000-0000-0000-000000000000 - mojoPortal.Web.Global - 5.175.48.17 /site2/csshandler.ashx?skin=art42-condominium&s=3&v=2.4.0.8&sv=00000000-0000-0000-0000-000000000000 Referrer(http://localhost/site2/) useragent Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2316.0 Safari/537.36 
System.Web.HttpException (0x80004005): The file '/site2/csshandler.ashx' 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, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
   at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.SimpleHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

3/2/2015 12:35:02 PM
Gravatar
Total Posts 18439

Re: multi site single signon

that is exactly how the url for csshandler should be, otherwise it will not load the correct skin for the site, it needs that segment so the csshandler knows which site it is and therefore is able to choose the correct css.

the error you are having is specific to your environment, for some reason it is not using the handler mappings in Web.config

ie for IIS Classic in the <httpHandlers> section we have:

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

for IIS Integrated pipeline we have something similar in <system.WebServer><handlers>

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

these are wildcard mappings so the file should not have to really exist at the specified url, but that is not working in your environment for some reason.

you can fool it into working by actually create a folder /site2 and copy the file csshandler.ashx from the root into that folder

it could probably also be solved by some configuration fix but I don't know what is mis-configured in your environment

3/2/2015 1:06:20 PM
Gravatar
Total Posts 7

Re: multi site single signon


Hi Joe,

thanks a lot for your answer very punctual.

I checked in web.config exist both the Handlers .

However copying the files in the sub folder csshandler.ashx everything works correctly ;)

 

Again many thanks for the quick solution.

See you soon
 

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