Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Red Cross problem
Terry Webb
#1 Posted : Friday, 25 November 2011 11:49:20 PM(UTC)
Rank: Member

Joined: 24/11/2011(UTC)
Posts: 7
Location: Brisbane, Australia

Hello

I have struck a problem with GSP that I have not been able to resolve, I admit I am not a programmer but someone who likes to dabble for my own interest. The problem I am having is I have had GSP working and I decided to add some other features to the site like YAF forum and screwturn wiki. After doing this is where I found the problem described above. I have looked through the forum here to find a similar problem, but have had no luck. I have to admit GSP was the least of my problems as it merged into my existing site very easily (Thanks to Roger Martin for that). I am also not able to provide any errors as there is none in the database.

I have used GSP in a previous personal site and it worked like a charm. I have merged the GSP web.config into my existing web.config and all seamed to work without a problem until the merge. The other sites are working fine. I am using asp membership with all packages, but I am not sure what I can give you to best seek assistance. Happy to provide what I can if I can get this problem sorted.

So far I have checked
1. Path to original file directory is correct because I can download the image and thumbnails and compressed are in the correct location.
2. I have reverted to the existing website provided and using the original Martin family image. Mime Type is configured for the type of image straight out of the box.
3. I am not using watermark as I have read that this has cause a IO error in the past.
4.I have an account that has full role membership and logging into the site is not a problem
5. Error log in GSP is empty.6. the gallery is in a sub-folder of the site Gallery\gs
6. Application information is Trust Level is full, .Net Framework is 4.0 IIS app pool identity is set up for network service permissions
7. GSP database is in SQL2008 Express and membership is in another database. but this appears to be working correctly.
8. upoloading is work correctly
Roger Martin
#2 Posted : Saturday, 26 November 2011 10:46:16 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

When you say "red cross problem", I assume you mean images are not appearing in the web browser and instead you see a little red X where you should see an image. Some tips:

1. Check the error log in the site admin area.
2. Use a tool like Firebug to look for network or javascript errors in the browser.

If you give me the path to your gallery, I can do #2.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Terry Webb
#3 Posted : Saturday, 26 November 2011 5:59:00 PM(UTC)
Rank: Member

Joined: 24/11/2011(UTC)
Posts: 7
Location: Brisbane, Australia

Hello Roger

1. The error log has nothing in it. I have read it directly from the gs_AppError table.

2. The link to the gallery has gone
Thanks

Terry
Roger Martin
#4 Posted : Saturday, 26 November 2011 10:54:21 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Using Firebug, I can see that your site is returning HTTP 302 for all media requests (these are the calls to getmedia.ashx). Check your web.config for 3rd party configurations that may be causing this. For example, I recently helped a user who was using SecuritySwitch which was causing HTTP 301 responses. In his case, the solution was adding this to web.config:

Code:
<!-- Security settings. http://code.google.com/p/securityswitch/ -->
<securitySwitch mode="On">
 <paths>
  <add path="~/gs/services/Gallery.asmx" security="Ignore" />
  <add path="~/gs/handler/getmedia.ashx" security="Ignore" />
  <add path="~/gs/handler/gettreeviewxml.ashx" security="Ignore" />
  <add path="~/gs/handler/upload.ashx" security="Ignore"/>
 </paths>
</securitySwitch>

Roger Martin
Creator and Lead Developer of Gallery Server Pro
Terry Webb
#5 Posted : Sunday, 27 November 2011 2:45:06 AM(UTC)
Rank: Member

Joined: 24/11/2011(UTC)
Posts: 7
Location: Brisbane, Australia

Hello Roger

No I am not currently using securitySwitch however as you suggested I downloaded it from nuget and added the lines that you referred. This did not work.
You made an interesting point however that all images were being returned using HTTP 302,
I think I have found the culprit, in the global.asax file. I had this line in the beginning

<%@ Application Codebehind="Global.asax.cs" Inherits="ScrewTurn.Wiki.Global" Language="C#" %>

By removing {inherits="Screwturn.Wiki.Global"} the images appeared and screwturn wiki stopped working, seams there is a conflict between the two applications.

Thanks
Terry Webb
#6 Posted : Saturday, 3 December 2011 5:19:58 PM(UTC)
Rank: Member

Joined: 24/11/2011(UTC)
Posts: 7
Location: Brisbane, Australia

Just an update on the problem - finally got it working

I had to remove the inherent line in the global file and add the contents of the screwturn wiki global file into the website global file and add a few lines to negate the gallery. Something like this

HttpRequest httpRequest = HttpContext.Current.Request;
string path = httpRequest.Url.PathAndQuery;
if (path.StartsWith("/Gallery/", StringComparison.OrdinalIgnoreCase) == false)
{
ScrewTurn.Wiki.UrlTools.RouteCurrentRequest();
}

Maybe not how a programmer would do it but it seams to work. I know it's not related to the GSP Gallery but I wanted to clarify that the problem was not related to GSP.

Well done Roger and many thanks.
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.