|
|
|
|
Forum Members Gamma GenoPro version: 3.0.1.5
Last Login: Wednesday, November 11, 2020
Posts: 3,
Visits: 15
|
Done...!
Hi Ron, thanks for bashing away at this problem for me. I think I have done it. My site now works and all the svg diagrams are displayed and are interactive as desired.
The solution appears to have been the following:
In the absence of any web.config file and relying solely on my host servers default IIS configuration, it interpreted the mimeMap fileExtension=".svg" as mimeType="application/octet-stream"...! (and subsequently displayed the code 200 - OK when accessing these pages). All I saw however was a blank screen (because it was not loading the .svgz file...!)
So I created my web.config file with all the mimeMAP elements you suggested EXCEPT the .svg mimeMap element (ie left out the line [mimeMap fileExtension=".svg" mimeType="image/svg+xml" /] and now I get code 200-OK when accessing .svgz pages, so everything now functions normally.
Needless to say I tried numerous other changes (read/write permissions; pipeline mode from integrated to classic; including this system.webServer element [validation validateIntegratedModeConfiguration="false" /]) all to no avail. Everything has been returned to its default settings and the site still works.
What gets me though, is I am sure I tried this code modification yesterday but without success. I'm going to put it down to a new day and fresh eyes and voila problem solved. Either way, thank you Ron for you valuable guidance. It has been much appreciated.
Joe
: :
|
|
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 2 days ago @ 9:23 PM
Posts: 3,464,
Visits: 26,854
|
Sorry maybe a little out of my depth here. It was way back and only IIS 4.0 when I got my MCSE  Anyways I have just tried my suggested settings 'as is' on Vista Premium running IIS 7.0 and accessed it and genomaps fine from another PC on XP. I just dumped the web.config file into the root folder (i.e. that used for the report). Could it be a permissions issue? Have you tried opening access to web.config?
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
|
|
Forum Members Gamma GenoPro version: 3.0.1.5
Last Login: Wednesday, November 11, 2020
Posts: 3,
Visits: 15
|
Thanks for that Ron,
Unfortunately, close but no cigar..!
I've used the code you suggested but it returns the http status code, 500 - Internal server error. I've played around with your suggested code with the following results:
If I remove all of the child elements from staticContent, the pages and website works as before, ie the entire genealogy html report is fine except for when requesting a .svg file when (ironically the http status code shown is 200-OK) nothing is retrieved. When I include any or all of the mimeMap elements in my web.config file, I receive the status code 500.
So, ?xml version="1.0" encoding="UTF-8"?> configuration> system.webServer> staticContent> /staticContent> /system.webServer> /configuration> makes no difference to the site and things remain as before.
If I use the default set of child elements for mimeMap from http://msdn.microsoft.com/en-us/library/ms689529.aspx, I still get code 500. So I do not think its a syntax error.
If I use the child element clear /> under staticContent>, then I receive code 404-Page cannot be found. So obviously the web.config file has a profound effect on the application.
The web.config file currently resides at the application root. I have tried it at the site root level but it makes no difference (This is expected as configurations are supposedly inherited)
Any further ideas Ron?: :
: :
|
|
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 2 days ago @ 9:23 PM
Posts: 3,464,
Visits: 26,854
|
Hi Joe, try this for starters<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> <mimeMap fileExtension=".svgz" mimeType="image/svg+xml" /> <mimeMap fileExtension=".es" mimeType="application/x-javascript" /> <mimeMap fileExtension=".gno" mimeType="application/octet-stream" /> <mimeMap fileExtension=".ged" mimeType="text/text" /> <mimeMap fileExtension=".emf" mimeType="image/x-emf" /> <mimeMap fileExtension=".djvu" mimeType="image/djvu" /> </staticContent> </system.webServer> </configuration>
|
If you have Vista (Premium?) you can run up IIS 7 nd try it I guess.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
|
|
Forum Members Gamma GenoPro version: 3.0.1.5
Last Login: Wednesday, November 11, 2020
Posts: 3,
Visits: 15
|
Hi guys,
I have recently changed my ISP and subsequently my web site hosting provider. My new hosting server runs with Microsoft-IIS/7.0 BUT I do not have access to the IIS Manager on the server. Needless to say I need to configure the IIS if I am to have any chance of displaying my HTML report and the .svg files correctly. The suggestion from the support crew at my host provider is: "Since you are on IIS7 you would actually have to add these MIME types through your web.config file."
I have read the excellent article http://www.genopro.com/help/report-generator/web-publishing/hosting/ and now seek your guidance in writing the correct code for my soon-to-be web.config file which will add the 7 MIME types as described in the above article.
I know the start and finish of the XML file but I am missing the middle:
>?xml version="1.0" encoding="utf-8"?> >configuration> >system.web> ????...blah blah blah...????
>/system.web> >/configuration>
I had a good look around google for guidance but it's general and non specific. Perhaps one of you learned gentlemen could shine some light on ????...blah blah blah...???? fo me.
Thanking you in advance.
Joe
: :
|