STSNavigate() still prompting for credentials when trying to open a document

Here is my scenario. We have setup a public facing site the utilizes a Web Application that searches a internal SharePoint 2010 site. The web app utilizes the SharePoint QueryService to search the site. We provide credentials to the service as the SharePoint
site is not an anonymous site (although if the QueryService worked with the site being anonymous that would satisfy our requirements). The Web server allows anonymous access to the web app through IIS. I have found that utilizing the STSNavigate() function
SUPPOSED to allow the document to be downloaded or opened without prompting for credentials. I modified my search results link to include the function on click and low and behold it still prompts for credentials the same way it would if the url just had the
link to the file. I am on a time clock here and I am running to the end of my rope. Any suggestions?

Hi,
According to your post, my understanding is that STSNavigate() still prompt for credentials when trying to open a document.
Per my knowledge, if you try to open an Office file directly from a remote place, Office wants to know who the hell you are. If the server responses with the
Microsoft Office Protocol Discovery or a
FrontPage Protocol or a
WebDav Protocol
Then  it ask you for  credentials.
As a workaround, I recommend to  “init.js” located in \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033 folder.
You need to add this it:
STSNavigate(ctx.HttpRoot + "/_layouts/download.aspx?SourceUrl=" + o);return false;
For more information, you can refer to:
SharePoint login prompt when accessing files in a Document Library Solution
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • Getting Prompt for Credentials When Opening InfoPath 2010 Form in Sharepoint 2010

    I have a domain user who runs Office 2010 x32 and uses a Sharepoint 2010 site daily. Lately a specific page on that site has been randomly giving prompts for credentials when opening existing documents and creating new ones. The process can be most easily
    replicated by opening the new document template in Infopath by going to Documents -> New in the ribbon bar of the SP page. Most of the time the Windows credentials for the user are passed to Infopath/Sharepoint automatically (which is normal), but on the
    fourth or fifth attempt to create a new form, the prompt appears. The user can still enter the credentials and open the blank template form, but a prompt should not appear. The user is also the administrator for that page, so I'm thinking it's not a permissions
    issue.
    The user is running IE 9 on Windows 7 Pro x64. I have performed the following:
    Reset advanced IE settings and all user cache data
    Cleared cached Sharepoint credentials in Windows credential manager
    Re-applied group policy for the machine using gpupdate /force
    Logged in with a clean temporary profile
    Logged in to another domain account using the user's Sharepoint credentials
    Cleared Infopath cache
    Re-installed Office 2010 x32
    The problem only occurs only on this particular machine. There are no Sharepoint or authentication-related errors or warnings in the application and system event logs. There are also no error messages on-screen when the prompt appears. I also considered
    the possibility of this being a performance related issue in the case that maybe Infopath was taking too long to start, causing the credential pass-through process to time out and fall back to a prompt. I ran disk cleanup, deleted some temporary files, and
    checked for excessive CPU/memory load. I didn't find any issues and doing these things did not help.
    I'm convinced there is another setting somewhere in Windows that is causing this. Interestingly it always happens after four or five attempts, never the first time. Can someone point me in the right direction?

    Hi Titan, this sounds like an IE security setting issue. Things to do:
    1. In Internet options>Security>Local Intranet, make sure "Enable Protected Mode" is not selected.
    2. Under Sites>Advanced, add https://*.sharepoint.com (and make sure "Require server verification..." is not checked).
    3. Under Security>Custom Level, scroll all the way to the bottom and make sure "Automatic logon with current user..." is checked.
    cameron rautmann

  • I have Photoshop CS5.1 (bought in 2011). The photoshop Camera Raw plug-in is not recognizing the format of my new Nikon D610. I updated the version of my Camera Raw plug in and am still getting this message when trying to open images in photoshop. Please

    I have Photoshop CS5.1 (bought in 2011). The photoshop Camera Raw plug-in is not recognizing the format of my new Nikon D610. I updated the version of my Camera Raw plug in and am still getting this message when trying to open images in photoshop. Please help.

    This link shows that ACR 8.3 supports the Nikon D610 and 6.7.1 was the final version for CS5.
    Camera Raw plug-in | Supported cameras
    So you can upgrade to CS6 and ACR 8.7.1
    or using the DNG converter, convert your Nikon raw files to dng format to open in CS5.
    Here is the download link: Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Adobe DNG Converter 8.7.1
    or Windows: Adobe - Adobe Camera Raw and DNG Converter : For Windows : Adobe DNG Converter 8.7.1
    And here is a great video tutorial on how to use the converter.
    https://www.youtube.com/watch?v=0bqGovpuihw
    Gene

  • My MBP Screen goes gray and asks for restart when trying to open Adobe raw

    My MBP Screen goes gray and asks for restart when trying to open Adobe raw files. Even when I try to populate raw images in the brige the scree wipes gray and says I have to restart. I am using CS2 and the latest version 3.7 of Adobe camera raw. I can however open raw images in preview. Please help! OS ver. 10.4.9 2.16ghz intel duo core processor.

    Welcome to Apple Discussions!
    What you are getting is a kernel panic, caused by one of the issues my FAQ* discusses:
    http://www.macmaps.com/kernelpanic.html
    * Links to my pages may give me compensation.

  • "An error occurred sending the command to the application" When trying to open excel document from outlook 2007

    Error message "An error occurred sending the command to the application" When trying to open excel document from outlook 2007.
    OS: Windows Server 2008 R2
    If I save the document then it opens fine, messing with default file associations does not resolve this problem, I've googled for ir it and some suggest unticking compatibility mode or "run as admin" for excel application, neither is selected in my case.
    Outlook is configured to run as remote application from remoteApp server, this error is only occurring for one user, for others excel documents open just fine.

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, we can Create a trusted location follow these steps
    Click the Microsoft Office Button , and then click Excel Options.
    Click Trust Center, click Trust Center Settings, and then click
    Trusted Locations.
    If you want to create a trusted location that is not local to your computer, select the Allow trusted locations on my network (not recommended) check
    box.
    Click Add new location.
     IMPORTANT   We recommended that you don't make your entire
    Documents or My Documents folder a trusted location. Doing so creates a larger target for a hacker to potentially exploit and increases your security risk. Create a subfolder within Documents or My Documents, and make only that folder a trusted location.
    In the Path box, type the name of the folder that you want to use as a trusted location, or click Browse to
    locate the folder.
    If you want to include subfolders as trusted locations, select the
    Subfolders of this location are also trusted check box.
    In the Description box, type what you want to describe the purpose of the trusted location.
    Click OK.
    More detailed information you can refer to this link:
    http://office.microsoft.com/en-us/word-help/create-remove-or-change-a-trusted-location-for-your-files-HA010031999.aspx?CTT=1#BM12
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Hope that helps.
    Sincerely
    William Zhou CHN
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Prompted for credentials when running the Recovery Audit Report on MBAM Help Desk web portal

    I am prompted for my credentials when I try to run the Recovery Audit Report on MBAM Help Desk web portal.  I am a member of the MBAM Read Only Reports group which I specified during the web portal configuration wizard.  I would like to suppress
    the prompt for credentials.

    Add the URL to the Local Intranet sites did not work.  The Help desk  web portal is on port 8088 and it does not allow you to specify the port when you add the URL to the Local Intranet sites.  I am able to access the Reports page from the
    Help Desk web portal when I open a browser on the IIS server, but the Reports page does not open without a prompt when I open a browser on a client.  Strange.

  • Outlook prompts for credentials when left open for multiple days

    Hi,
    We have a system setup with Outlook 2010 on it (connected to Exchange Online) and a 3rd party piece of software that interacts with it to send and process incoming messages.  This system remains up and running with no user interaction indefinitely. 
    The problem we're having is that after about a week or so, Outlook stops processing emails and prompts for credentials.  Outlook has been set to remember the password (and it's not an issue of the password being expired).  Is there a setting to stop
    this (I'm assuming it's Exchange that's the culprit)?

    First of all exchange online is not the culprit in this case. Can you check what method you're using to authenticate the user? ADFS? DirSync with Password Sync or cloud identitiy? Once checked please make sure that the time interval setup for login prompt
    once the user account is inactive is setup unlimited for this user. Thanks.
    Kindly Mark this as answer if found helpful. Thanks.
    Regards, Riaz Javed Butt | Consultant Microsoft | mstechtalk.com

  • Office O365 prompting for credentials when opening files from OneDrive and selecting "Edit in Word"

    When logged into my OneDrive IE 9 and select a word or excel file to  "Edit in Word" or "Edit in Excel"I get prompted with the following Sign In message. 
    "Call us overprotective, but we need to verify your account again before opening this document."  
    When I enter my live ID and password it then asks again for my user ID and then password over and over and I can never open the document to edit in my local copy of Word or Excel 2013.
    I have done the basic internet troubleshooting and deleted all my temporary internet files. I have also re-installed MS office 2013 from my O365 account without issue. 
    Any help on this would be greatly appreciated.
    Thanks Much. 

    Hi,
    I've seen this issue on Office 365 Community before, it should be like:
    Some users resolved the issue by pressing the Enter key instead of clicking on the Next button, try if this works for you.
    You can also try with another Web Browser if you have, if with another browser it works fine, consider to reset the Internet Explorer:
    Internet Options -> Advanced -> Reset Internet Explorer Settings -> Reset.
    Let me know if you need further assistance.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • No prompt for authentication when trying to connect to VPN

    Using OS X Mountain Lion 10.8.5, I created a new VPN Cisco IPsec connection with the native VPN client.
    I can manage to connect, whereas colleagues of mine (same network, same configuration, same operating system) can.
    The point is that I'm never prompted for the password to connect to the VPN: the prompt window simply doesn't show.
    Here are the logs from the console:
    Sep 18 08:31:42 ******* configd[17]: IPSec connecting to server ***.***.***.***
    Sep 18 08:31:42 ******* configd[17]: IPSec Phase1 starting.
    Sep 18 08:31:42 ******* configd[17]: SCNC: start, triggered by SystemUIServer, type IPSec, status 0
    Sep 18 08:31:42 ******* racoon[3985]: IPSec connecting to server ***.***.***.***
    Sep 18 08:31:42 ******* racoon[3985]: Connecting.
    Sep 18 08:31:42 ******* racoon[3985]: IPSec Phase1 started (Initiated by me).
    Sep 18 08:31:42 ******* racoon[3985]: IKE Packet: transmit success. (Initiator, Aggressive-Mode message 1).
    Sep 18 08:31:42 ******* racoon[3985]: IKEv1 Phase1 AUTH: success. (Initiator, Aggressive-Mode Message 2).
    Sep 18 08:31:42 ******* racoon[3985]: IKE Packet: receive success. (Initiator, Aggressive-Mode message 2).
    Sep 18 08:31:42 ******* racoon[3985]: IKEv1 Phase1 Initiator: success. (Initiator, Aggressive-Mode).
    Sep 18 08:31:42 ******* racoon[3985]: IKE Packet: transmit success. (Initiator, Aggressive-Mode message 3).
    Sep 18 08:31:42 ******* racoon[3985]: IPSec Phase1 established (Initiated by me).
    Sep 18 08:31:42 ******* racoon[3985]: IPSec Extended Authentication requested.
    Sep 18 08:31:42 ******* configd[17]: IPSec requesting Extended Authentication.
    Sep 18 08:31:42 ******* configd[17]: VPN Connection:  Enter your user authentication
    Sep 18 08:31:42 ******* configd[17]: IPSec Controller: XAuth authentication failed
    Sep 18 08:31:42 ******* configd[17]: IPSec disconnecting from server ***.***.***.***
    Sep 18 08:31:42 ******* racoon[3985]: IPSec disconnecting from server ***.***.***.***
    Sep 18 08:31:42 ******* racoon[3985]: IKE Packet: transmit success. (Information message).
    Sep 18 08:31:42 ******* racoon[3985]: IKEv1 Information-Notice: transmit success. (Delete ISAKMP-SA).
    Sep 18 08:31:42 ******* racoon[3985]: IPSec disconnecting from server ***.***.***.***
    If I'm not wrong, the window requesting the password should open after the line I highlighted (that's the behaviour we noticed on my colleagues' macbooks), but it doesn't.
    Does anyone knows how I can fix that problem? Thanks for your replies.

    Did you find a solution to this?  I have searched for several hours and found a few references to this behaviour (same people) but no resolution.
    Same issue for me, I see the "enter your user authentication" dialogue box, but there are no text boxes to enter credentials, only OK or CANCEL.
    Thanks

  • Got errors when trying to open word document with Office Web App Server and customized WOPI host

    I am configuring the Office Web App Server with our ASP.NET MVC WOPI host based on this example. https://code.msdn.microsoft.com/office/Building-an-Office-Web-f98650d6. While both the OWA server and WOPI server has been set up and I can use Excel and PowerPoint
    app to open and edit xls and ppt file now, there are problems opening word documents no matter I enable or disable the editing function of OWA server.
    When I open a word document while enabling editing I got this error:
    If I disable editing I got this message:
    I have tried several file so I thought it is not the files' problem. Also I didn't find any exception in the log of OWA server. 

    Hi Gary Jiang,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing issues about
    apps for Office.
    Based on the description, it seems that you got an issue when you deploy the code sample. If I understood clearly, I suggest that you contact the author of the code sample from the "Q and A" tab.
    Also if you have the question about WOPI, I suggest that you get more effective response from
    Office
    Protocols forum.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Text frames not supported and images can't be imported when trying to open word document, can this be fixed?

    trying to open a word document in pages, no images, diagram r tables are seen, states problems are text frames not supported and that images can not be imported. the document opens fine in mircosoft office. can this be fixed or do i need to buy microsoft office for the imac, thanks andrea

    Pages isn't a perfect converter of Word documents. They are differently coded. Some documents opens well but some don't.
    You could try opening the document in LibreOffice, a free clone of MS Office.

  • Outlook prompts for credentials when used over DirectAccess

    Hello; I have recently setup a DirectAccess Server for our network.  The DirectAccess Server is running Windows Server 2012R2. It all appears to be running just fine. The clients are connecting fine and have access to all of our internal network resources,
    including the Exchange Server. 
    However, when using MS Outlook to connect to the internal Exchange Server, we are seeing a strange behavior.  The Outlook client initially connects just fine.  It says "CONNECTED TO: Microsoft Exchange" down in the status bar, and the
    user's mailbox gets updated just fine.  But then, after just a few minutes, MS Outlook will prompt the user for their credentials.  If the user enters their credentials, the pop up goes away, but then comes right back after another minute or two. 
    As far as I can tell, the DirectAccess connection is stable, as the user has uninterrupted access to our other internal resources.  I've verified the Outlook's connection to the Exchange is using RPC/TCP.
    Can anyone shed some light on to what is going on here and how I may resolve this issue?

    Hi,
    A simple assumption, would clearing the credentials from Windows Credential Manager work?
    1. Launch the Credential Manager (from [Control Panel] and [User Settings])
    2. In the Generic Credentials section you’ll see a setting for [MS Outlook]. Click the downward-pointing arrow to the right of that value
    3. The section will expand to show further details. Under those details is a link to Remove from vault. Click this and Outlook will no longer have a stored copy of your password
    The next time the users need to enter a password, select the option that let Outlook remember the credentials.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Ipad not prompting for password when trying to access a wireless router

    bought new ipad cannot access internet thru wireless router have 2 iphones that work.  try to access a protected wireless network but is not asked for password just told cannot access.

    This link may be helpful.
    http://support.apple.com/kb/TS1398

  • 1014:1014: error I keep getting when trying to open PDF document from online source.

    need help trying to resolve 1014:1014 error when I open online PDF documents

    Hi Christoph,
    The problem is elsewhere, I asked the user to log in at a different workstation and she is able to display documents from SAP at another PC. So the problem is not in SAP but either with the SAPGUI or in Windows...
    I requested a SAPGUI reinstall, we'll see whether that solves the problem.
    But it is certainly not related to DMS.
    Thanks,
    Krisz

  • Pages gives an error, 'Cannot read file' , when trying to open pages document

    I recently deleted a pages file. I recovered it using disk drill and now Pages refuses to open it. It gives me an error that it cant read the file. The file size is exactly the same as i had created earlier. Please help me out on this. This is a very important essay and i spent weeks tyiping it. The file size is about 10.6 mb with all graphics and images. Please help me out

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, we can Create a trusted location follow these steps
    Click the Microsoft Office Button , and then click Excel Options.
    Click Trust Center, click Trust Center Settings, and then click
    Trusted Locations.
    If you want to create a trusted location that is not local to your computer, select the Allow trusted locations on my network (not recommended) check
    box.
    Click Add new location.
     IMPORTANT   We recommended that you don't make your entire
    Documents or My Documents folder a trusted location. Doing so creates a larger target for a hacker to potentially exploit and increases your security risk. Create a subfolder within Documents or My Documents, and make only that folder a trusted location.
    In the Path box, type the name of the folder that you want to use as a trusted location, or click Browse to
    locate the folder.
    If you want to include subfolders as trusted locations, select the
    Subfolders of this location are also trusted check box.
    In the Description box, type what you want to describe the purpose of the trusted location.
    Click OK.
    More detailed information you can refer to this link:
    http://office.microsoft.com/en-us/word-help/create-remove-or-change-a-trusted-location-for-your-files-HA010031999.aspx?CTT=1#BM12
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Hope that helps.
    Sincerely
    William Zhou CHN
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Maybe you are looking for

  • Why is the library Menu is gray?

    Why the menu on the left side of the iphoto is gray and not color?

  • Wireless keyboard unable to connect to iPad mini

    I have had difficulty connecting my Apple wireless keyboard with my iPad mini. I continually receive the same message- make sure your devilce is on and within range. I have put new batteries in the keyboard and even attempted to connect the keyboard

  • Playlists delete during sync

    When I sync my ipod it deletes any playlists that I have made on my ipod and replaces them with ones I don't want from my itunes on my computer. It is driving me mad as I have to manage all my playlists on Itunes which is slow on my machine anyway.

  • Shell Scripts for installation / migration of an object

    Hi All, We are on Oracle Applications R12 and we are settling down with it. Our database and app servers are on Linux. To migrate objects from one instance to another or to install objects, we use two different approaches. One is to move objects manu

  • Wireless/Mobility user throughput

    I have an associate who is trying to answer the question (in a report)  about how much bandwidth and throughput does a cellphone consume when the user is downloading data to his cellphone.  He does not specify across what medium  (LAN or WAN or WLAN)