|
Member
|
christine
-
8/20/2013 4:11:32 PM
Attached pdf Documents returning 404 Error
Hello,
I am having an issue with attached pdf documents.
I have a document type that allows a pdf to be attached, which is then displayed in an iframe. However, the pdf returns a 404 error on the staging site that is set up but the pdf shows up just fine on the local dev environment site. Even navigating to the pdf directly from the preview option in the attachments section of the document returns a 404 on the staging site.
I have looked at settings on both sites and they seem to be identical and the expanded issue from IIS is just 404.0 so there is not much help there. Also have tried deleting and reattaching the pdf document on the staging site and pushing the document up to the staging site from the local dev site with no luck.
We are using IIS7 Kentico version 7.0.13 and 7.0.4738 on both local dev and staging site
Any help at all would be greatly appreciated!
- Christine
|
|
|
Kentico Customer Success
|
kentico_martind2
-
8/20/2013 6:04:33 PM
RE:Attached pdf Documents returning 404 Error
Hello Christine,
if you go through the Settings in the CMS Site Manager, are they exactly the same? And also please compare both web.config files as well as IIS settings, are they using the same version and type of application pool?
Best Regards, Martin Danko
|
|
|
Member
|
christine
-
8/21/2013 7:57:13 AM
RE:Attached pdf Documents returning 404 Error
Hello Martin,
Thank you for the reply!
The settings are the same in both instances of the CMS Site Manager.
The web.config files are identical for the most part except for some additional caching settings and an additional call to a web service in the staging web.config file. All of that was configured through IIS however, so it should not be causing the problem.
The local dev site uses the default web server in Visual Studio 2012, which is the ASP.NET Development server I believe, and the staging site uses a v4.0 Integrated application pool.
- Christine
|
|
|
Member
|
christine
-
8/21/2013 8:42:15 AM
RE:Attached pdf Documents returning 404 Error
Also, pdf files that are attached from the Media Library using the getmedia url work. Its just attachments using the getattachment url that seem to not work.
|
|
|
Kentico Support
|
kentico_jurajo
-
8/21/2013 8:48:04 AM
RE:Attached pdf Documents returning 404 Error
Hi,
What are your URLs and SEO settings in Site Manager -> Settings section? Especially the files friendly URL extension setting - I would recommend leaving the default .aspx value there. Also, please check if you have this in your web.config file:
<system.webServer> <modules runAllManagedModulesForAllRequests="true">
Best regards, Juraj Ondrus
|
|
|
Member
|
christine
-
8/21/2013 8:54:23 AM
RE:Attached pdf Documents returning 404 Error
Hello Juraj,
Thank you for the reply!
Currently the URLS and SEO settings have everything unchecked except 'Remember original URLs when moving documents' and 'Allow permanent 301 redirection'. The 'Friendly URL extensions' is blank on both sites.
The <modules> section does not exist in either web.config file.
- Christine
|
|
|
Kentico Support
|
kentico_jurajo
-
8/21/2013 9:20:44 AM
RE:Attached pdf Documents returning 404 Error
Hi, So, if you are using extension less configuration, please see the documentation and add the line to the web.config file as described. Also, I asked about the "Files friendly URL extension", what is its value please? Best regards, Juraj Ondrus
|
|
|
Member
|
christine
-
8/21/2013 9:23:01 AM
RE:Attached pdf Documents returning 404 Error
Sorry, I meant to say that both Files Friendly URL extension and Friendly URL extension are both.
|
|
|
Member
|
christine
-
8/21/2013 9:23:11 AM
RE:Attached pdf Documents returning 404 Error
*blank
|
|
|
Kentico Support
|
kentico_jurajo
-
8/21/2013 9:31:37 AM
RE:Attached pdf Documents returning 404 Error
Hi,
could you please read my posts I posted before and use the suggestion to leave the default value (.aspx) for given setting?
Best regards, Juraj Ondrus
|
|
|
Member
|
christine
-
8/21/2013 9:57:21 AM
RE:Attached pdf Documents returning 404 Error
I am working on setting it up currently, I will let you know if it works. Thank you again for your help!
|
|
|
Member
|
christine
-
8/21/2013 1:41:12 PM
RE:Attached pdf Documents returning 404 Error
Hi Juraj,
It works now, thank you!
Do you have any idea why it was working on the dev site?
Thank you again!
- Christine
|
|
|
Kentico Support
|
kentico_jurajo
-
8/22/2013 1:11:34 AM
RE:Attached pdf Documents returning 404 Error
Hi,
There must have been some difference. Maybe IIS setup in different way.
Best regards, Juraj Ondrus
|
|