Hello all,
Just beginning to work with the ContextCapture Web Viewer to show it's potential to my supervisor, but I am having some trouble getting it to work.
Specifically I am working in IIS Express (allows for web development without admin rights) using the Command Line. The localhost I set up has the Production folder copied across from the Web Ready output (with both App and Scene folders).
Trying to access the production, a fire hydrant, is not working when I use "localhost:[portnumber]/[ProductionFileName]/App". The page itself says "We are sorry, but there seems to be a problem with loading the scene. This might be a browser problem, so please try a different browser, such as Chrome". I have tried both Chrome and Microsoft Edge, with the same output.
On Command Line, this is the key output relating to the .3mx:
"Request started: "GET" localhost:9999/.../FH.3mxRequest ended: localhost:9999/.../FH.3mx with HTTP status 404.3"
Although the FH Scene is located within that folder. Link for those who aren't sure what the error is: https://www.webhosting.uk.com/kb/iis-http-error-404-3-not-found-add-a-mime-map/
Could it be a problem to do with access issues? Do I need to do any more work than described in this link here? https://docs.bentley.com/LiveContent/web/ContextCapture%20Help-v10/en/GUID-3F710259-3B5A-4B00-8C2A-AE41C0A43EBF.html
Thanks in advance,
Hugh
You have to add also 3mx and 3mxb to MIME types.
Hi Oto,
I've never really worked with adding MIME types before, so before I jump into it, would this be a good guide to follow?
https://stackoverflow.com/questions/43868794/how-to-allow-iis-express-to-access-any-file-extensio
With the mime types outlined here?
https://datatypes.net/open-3mx-files
https://datatypes.net/open-3mxb-files
Cheers,
I do not remember the details but it was very simple in IIS to add access for 3mxb
Awesome, thank you Oto,
I followed the instructions above and was able to install them. Doing a short write up now for the answer.
Thanks again!
Here is the answer I came to in the end that fixed it.
Go to the Program Files that your IIS Express is located in. Enter the IIS Express folder and go to the AppServer folder. Open "applicationhost.config" with a text editor (this is the template file that all IIS Express localhosts are based on).
Enter the editor, and find the static content section (Line is <staticContent lockAttributes="isDocFooterFileName">)
Add the following lines (in alphabetical order with the other MIME types present):
<mimeMap fileExtension=".3mx" mimeType="application/octet-stream" />
<mimeMap fileExtension=".3mxb" mimeType="application/octet-stream" />
Save and restart your IIS Express server. Should be able to open .3mx productions in IIS Express now.
Cheers for all the help!
Answer Verified By: Hugh Barlow