Joao Livio { MIX ~ UP on USA}

SharePoint List redirect to Login Page when clicking some Document Types

In a FBA (Forms Based Authentication) scenario, for some document types like XLS, XLSX, DOC, DOCX, … instead of open or download it simply redirect to the login page, this is because you have to activate in the option “Opening browser-enable documents“ in the List Definitions

Display as webpage

image

Not working?,

FIRST

go to Authentication Providers in Central Application and disable "Enable Client Integration"

editclientintegration

SECOND

Go to your Web.Config and delete the verb "OPTION," only this text in the line.

RESUME

I was able to resolve this issue by

1 - Disable "Enable Client Integration" in "Autentication Providers" for FBA

2 - Remove the "OPTIONS," from Web.Config

3 - Edited the "serverfilesExcelServer.xml" file IN "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML" and comment the line bellow, this is only for XLSX files, since whe have "Excel Services" on for more 2 WebApplications, it was tested and no issues blocking any thread.

<?xml version="1.0" encoding="utf-8" ?>

<!-- Copyright (c) Microsoft Corporation. All rights reserved. -->

<ServerFiles>
    <Mapping FileExtension="odc" RedirectUrlTemplate= "/_layouts/xlviewer.aspx?id=|0" NoGetRedirect="TRUE"/>
    <!-- <Mapping FileExtension="xlsx" RedirectUrlTemplate= "/_layouts/xlviewer.aspx?id=|0" NoGetRedirect="TRUE"/> -->
    <Mapping FileExtension="xlsb" RedirectUrlTemplate= "/_layouts/xlviewer.aspx?id=|0" NoGetRedirect="TRUE"/>
</ServerFiles>
Leave a Comment

(required) 

(required) 

(optional)
 

(required) 

If you can't read this number refresh your screen
Enter the numbers above: