Note that there are some explanatory texts on larger screens.

plurals
  1. POServing .config files
    primarykey
    data
    text
    <p>We have a legacy (classic asp) CRM that I maintain in my organization. Users may upload files through the web front, they are stored on a network share and the filename, uploader, etc is saved to a database. Everything is well and good with the exception of .config files. </p> <p>For some reason certain people can download these just fine, but other people recieve this error: <em>The type of page you have requested is not served because it has been explicitly forbidden. The extension '.config' may be incorrect.</em></p> <p>it would seem that on some users computers the link for the file is "file://networkshare/filename" (which works) and on other machines it is "http://networkshare/filename". (which doesn't work)</p> <p>I have the mime type for .config set to text/plain in iss6. All users are running IE8.</p> <p>The code on the page creates a href links based on records returned from the database.</p> <p>Why then is there there the difference in the way the link is rendered differently in the same browser on different pc's? How do I allow .config files allowing people to view the sites web.config?</p> <p>The code that builds the link is:</p> <pre><code>function getlink(file_nm,path) { thisPage.navigate.CheckDocumentAttachedToRequest(file_nm, path) var sDocLink = path.replace(/\//g,"\\") + "\\" + file_nm; return "&lt;A class=\"parislink2\" TARGET=\"_BLANK\" HREF=\"\\\\" + thisPage.get_sServerName() + "\\" + sDocLink + "\"&gt;" + file_nm + "&lt;/A&gt;"; } </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload