Using gallery2 for showing images

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/15/2011 3:17:32 PM
Gravatar
Total Posts 76

Using gallery2 for showing images

Hello,

I believe for almost 2 years i'm using gallery2 (http://gallery.menalto.com/) for showing images in my website.
I'm using Iframe to show the page from gallery2.

I worked always fine.

But now it seems by updating my site with a newer version of Mojoportal Gallery2 doesn't work anymore?

When i use my old Web.config it works well, but when using the newer Web.config i get an "500 - Internal server error".

What has changed in the new Web.config what could cause this error?

Thnx in advanced.

 

9/16/2011 6:19:31 AM
Gravatar
Total Posts 18439

Re: Using gallery2 for showing images

Hi Hanzie,

If you changed mojoPortal to .NET 4 and the other app is using .NET 3.5 it may cause problems running them together.

Also you may want to look at the links in the first item of our developer FAQ about web.config compatibility problems.

and you should also start with basic troubleshooting and see if you can find the error details.

Hope that helps,

Joe

9/18/2011 7:17:54 AM
Gravatar
Total Posts 76

Re: Using gallery2 for showing images

Hello Joe,

In the web.config i filtered the sections which cause errors.
These are the sections:

<!-- Handlers for IIS 6.0 and IIS 7.0 Classic mode -->
    <httpHandlers>

<!-- Modules for IIS 6.0 and IIS 7.0 Classic mode -->
    <httpModules>

<!-- Modules for IIS 7.0 Integrated mode -->

When i uncomment these lines, gallery2 works.

So it seems it has something to do with ISS 7.0 on my host ?!!

Any suggestions please? Thnx

9/19/2011 7:17:36 AM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: Using gallery2 for showing images

Are you getting the 500 for your mojoPortal site or just the page where you are using the Iframe to display the content from Gallery2?

9/19/2011 1:40:12 PM
Gravatar
Total Posts 76

Re: Using gallery2 for showing images

Hello,

I'm getting the error on every page i try to load. Iframe or no Iframe.
I believe the problems are coming from the http-handlers. How to write down the http-handlers in the web.config depends on which IIS-server the site runs. When i delete the http-handlers in the web.config the gallery2 runs fine but loading pages in Mojoportal gives errors. The home-page however is giving no errors.

I asked my host, he says the site is running on win64 IIS 6.0 service pack 2 (application pools running in Integrated mode).

When i run the site on my local computer (IIS 7.0 Integrated mode) with the same web.config i get error:

HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Who can tell me more about how to write down the http-handlers en -modules for different IIS-servers. What do i have to change in the web.config file of mojo-portal to get Gallery2 and Mojoportal running fine.

It worked before with previous mojoportal, but i don't have the old web.config.

Please help, thnx

9/19/2011 2:55:02 PM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: Using gallery2 for showing images

I do not think that Gallery2 has anything to do with. It is a PHP application and should not be affect in any way with your web.config. It maybe that you are using the wrong web.config for your version .Net version you are using. I would download the verify what pervious version of mojoPortal you were running and if it is the .Net 5 or 3.5 version.

There could also be some issue with you host. From the information you were given it is hard to tell what version of .Net the server and site are configured for. And as Joe mentioned check the error log that will provide more insight into your problem.

9/21/2011 4:22:31 PM
Gravatar
Total Posts 76

Re: Using gallery2 for showing images

Hello,

My host is running Asp.Net 4.0

I downloaded the latest mojoportal source, added my own custom features and published it using Unleash-it.
Everything works fine, except Gallery2.

Is anybody else able to run both Gallery2 and Mojoportal on 1 server with the web.config from mojoportal. Using IIS 6 or 7 and Asp.net 4.0

When i try it on my local computer with IIS7 integrated mode i get same errors. The error report points to <http-handlers> in the web.config.

Don't understand.

Think i'm gonna try an older mojoportal-version. That wil be tommorow-night.

9/23/2011 1:55:46 PM
Gravatar
Total Posts 18439

Re: Using gallery2 for showing images

Hi Hanzie,

It is possible that Gallery 2 has a Web.config file even if it is a php app. I would look for it in the gallery2 folder.

I recommend study the links in my first reply on this thread, it sounds like a conflict of Web.config files, the solution is in the links from the faq page that involve using <location element in Web.config.

Hope that helps,

Joe

9/25/2011 1:54:51 PM
Gravatar
Total Posts 76

Re: Using gallery2 for showing images

Hello Joe,

Trying to Run Gallery2 and mojoportal now on my local computer using IIS7.

When i first install Gallery2 it runs fine. I then downloaded latest mojoportal-version using tortoise.

When i upload mojoportal and aces localhost:80 i get following error:

HTTP-fout 500.19 - Internal Server Error

1056:     <!-- Handlers for IIS 7.0 Integrated mode -->
1057:     <handlers>
1058:       <!-- This is causing errors on some Win 2008 installations

Gallery2 has no web.config file.
Also wrapping the sytem.web section in a <location-tag> doesn't help.

Any suggestions? THNX

9/26/2011 9:14:00 AM
Gravatar
Total Posts 18439

Re: Using gallery2 for showing images

Sorry but I have no idea. If you have Cold Fusion installed it may cause such errors but other than that I have no idea and am not familiar at all with Gallery 2

Maybe gallery 2 needs a Classic mode app pool not an Integrated app pool.

Best,

Joe

9/26/2011 1:30:03 PM
Gravatar
Total Posts 76

Re: Using gallery2 for showing images

Hello Joe,

Thnx for the reply.

What to adjust in web.config or IIS to use Classic mode app pool not an Integrated app pool.

Thnx in advanced!!!


Edit: When i cut out section <http handlers> and <modules> in <system.webserver>  mojoportal and gallery2 load normally, only i can't change page in mojoportal.  

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