My SharePoint Blog

Blogs On SharePoint Technologies


Search Site


My SharePoint Blog recommends any of the following books...


Recent comments

Tags

Don't show

    Categories


    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2009

    Suppress Microsoft Office Document Authentication Prompt In SharePoint WSS 3.0

    Problem: Clicking a Microsoft Office document (Word, Excel, PowerPoint, etc) in a document library re-challenges for authentication on a secure site.

    Reason: By default when you click the document name or icon you are re-challenged for your log-on credentials because the document is passed to Office for handling. Office cannot retrieve the session cookie from IE because it is in a separate process. This is a nuisance for most users because they are not interested in editing the document in the first place and they don't know that it is possible to...  Hover the item --> Select the drop down --> Send To --> Download A Copy

    This will download the file without the Office/SharePoint hooks for editing. This is not a user friendly way to view a document.

     

    My Desired Goal: Have the link open the document directly.

     

    Fix:

    Backup and Open: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\CORE.JS

    Find:

    function DispDocItemEx(ele, fTransformServiceOn,
         fShouldTransformExtension, fTransformHandleUrl, strProgId)
    {

    Add below:

    /*************************************************************
    Suppress Document Authentication Prompt Mod for WSS 3.0
    by Kevin Cornwell 2/28/2007
     
    Open document without SharePoint hook to edit,
    thus suppressing the authentication prompt.
    *************************************************************/
     
    var _ele;
     
    if (_ele = ele.toString()){
     
        if (_ele_ext = _ele.substring(_ele.lastIndexOf('.')+1).toLowerCase()){
     
            /* list of office docs */
            var arr_office_ext = new Array('doc','xls','dot','bmp','gif','jpeg',
                                           'jpg','csv','docm','docx','docmhtml',
                                           'docxml','dothtml','gcsx','ico','mdb',
                                           'mde','mdn','png','pot','pothtml','potm',
                                           'potx','pps','ppt','pptm','pptx','pub',
                                           'xlb','xlc','xls','xlsm','xlt','xltm',
                                           'xltx','xlw','xlxml');
            var _i;
            var b_office_doc = false;
     
            /* check for ext in array */
            for (_i=0; _i < arr_office_ext.length; _i++) {
                if (arr_office_ext[_i] === _ele_ext){
                    //alert(_ele);
                    b_office_doc = true;
                break;
                }
            }
     
            /* send only if office ext */
            if (b_office_doc){
     
                /* Open the doc via download.aspx (supress sp editing) */
                     STSNavigate(ctx.HttpRoot + '/_layouts/download.aspx?SourceUrl=' + _ele);
     
                /* Kill the “regular” sp handling of the doc (edit mode)
                   onClick(true) and simply download the doc. */
                return false;
            }       
        }
    }
     
     
    /* End mod ***************************************************/

    Restart your browser and test. To clear the browser cache, click CTRL + F5.

     

    Notes: You will still have the capability to edit/save to the SharePoint site directly:    Hover the item --> Select the drop down --> Edit in Microsoft X.  Not tested in any other flavor of SharePoint.


    Categories: SharePoint
    Posted by Kevin on Wednesday, February 28, 2007 1:02 PM
    Permalink | Comments (2) | Post RSSRSS comment feed

    SharePoint 3.0 (WSS) and Crystal Reports 10

    If you are running Crystal Reports in an excluded directory on a SharePoint extended site, Crystal Reports will not build the report because certain browsers are not GZIP compliant (Internet Explorer 6.0 confirmed broken). To fix, open the MetaBase Explorer in your IIS recourse kit, browse to your site root tree and set DoDynamicCompression to 0. No restart necessary.

     

    Summary: During the install process SharePoint sets GZIP compression to true (0) in the respective website MetaBase. Client browsers that are not fully compliant with GZIP will have problems with ActiveX controls as it related to Crystal Reports.


    Categories: SharePoint
    Posted by Kevin on Tuesday, February 20, 2007 2:02 PM
    Permalink | Comments (0) | Post RSSRSS comment feed

    SharePoint WSS 2.0 Cannot Delete a Folder Named “Forms”

    Here are the details of a MS support call related to this bug.

    Case # SRX060517602973

    416-246-5580 x5373

    v-11c0hu  [at]  mssupport.microsoft.com

    Problem: Cannot delete a folder named “Forms” in a subfolder in a Document Library.

    Solution (workaround): Delete the parent folder. This Bug may be fixed in the next release of SharePoint.

    Email…
    Dear Kevin,
    It was my pleasure working with you trying to delete your Forms folder of a sub directory of a document library. Based on our recent communication I would like to consider this issue resolved. I’ll close the case at this time. If you find that the issue has not been fully resolved, please notify me and I will reopen the case for more work. I am providing you with a summary of the key points of the case for your records. If you ever have any questions please feel free to call me. My contact information is below.
    As discussed during our phone conversation SharePoint has been designed to prevent the deletion folders bearing the name of ‘Forms’. By default, SharePoint places a system folder for itself at the root level of all document libraries with the name ‘Forms’. This folder is essential in that it holds the different views which are used by each document library; for that reason it is protected from accidental deletion. Unfortunately, the product has not been designed to differentiate between root and subfolders ‘Forms’ folders. This error is a bug of which Microsoft is aware.
    In an effort to help define the successful conclusion of this case, I have put together the following Case Resolution Agreement. Please review the following and ensure that we have an understanding of what constitutes a successful resolution of your case with Microsoft Product Support.
    —————————————————–
    CASE RESOLUTION AGREEMENT:
    —————————————————–
    This case will be resolved when I properly explain the reason why you are not able to delete ‘Forms’ folders made under a subfolder in a Document Library. (This is an ongoing issue that Microsoft is aware of at this time.)
    Before I close your case, I would like to verify that you are very satisfied with the service you received from Microsoft Enterprise Platforms Support regarding this issue. Please let me know if there is anything I or my manager David Kileeg (v-11davk@mssupport.microsoft.com) can address to ensure you are happy with the overall service I provided.
    Best Regards,
    Colin Hughes-Jones

    Categories: SharePoint
    Posted by Kevin on Wednesday, February 14, 2007 10:02 AM
    Permalink | Comments (0) | Post RSSRSS comment feed

    WSS 2.0 - Remove the SharePoint team site from the Root of an web site without Un-extending the Team site.

    Details regarding a MS support call…

    ________________________________________
    From: Muthanna Kuppanda [mailto:Muthanna.Kuppanda@]
    Sent: Wednesday, August 09, 2006 6:28 PM
    To: kevin.cornwell@l
    Subject: RE: Closing Case Id:- SRX060809602716;Wants to Exclude Root From the Extended Team Site- Use custom Default.asp
    Importance: High

    Hello Kevin ,

    My name is Muthanna and I am manager here at Microsoft Product Support Services. You have been working with Srivastava Hemendra on the above support incident, and he indicates you are ready to close this issue. I would like to take this opportunity to make sure all of your questions were answered and that the service provided by Srivastava Hemendra met your needs. In case you have any concerns about the product or the support experience, please let me know of a suitable date and time that I can call you and we can have a discussion on the same. My working hours are from 7:30 AM CST to 4:30 PM CST Mon - Fri .

    Thanks in advance for taking time to provide feedback or other comments about your support experience with Microsoft.

    Regards,
    Muthanna Ravi Kuppanda
    Team Manager - SharePoint
     muthanku@
    425-704-2255 Extn 36325
     Hours: Mon - Fri, 7:30 AM - 4:30 PM CST

    Technical: In the event that you are unable to contact me, please contact my tech lead sharatg@
    Managerial: In the event that you need managerial assistance please contact my backup manager subhagas@. You can email my manager at mailto: vijbachu@.
    CASE_ID_NUM: SRX060809602716
    MESSAGE: TM Case Closure Follow-up
    01111110
    ________________________________________
    From: Srivastava Hemendra
    Sent: Thursday, August 10, 2006 4:44 AM
    To: kevin.cornwell@
    Cc: Muthanna Kuppanda; Adithya Dev
    Subject: Closing Case Id:- SRX060809602716;Wants to Exclude Root From the Extended Team Site- Use custom Default.asp

    Hello Kevin,

    It was my pleasure to assist you with your issue. I am providing you with a summary of the key points of the case for your records. If you have any questions please feel free to call me; my contact information is listed below.

    Based on our last communication, it appears that this case is ready to be closed. If this is premature or if you need additional assistance with this case SRX060809602716, please let me know as soon as possible. Otherwise, I will close this case at the close of business on August 9, 2006.

    Thank you for choosing Microsoft.

    —————————————————–
    CASE RESOLUTION AGREEMENT:
    —————————————————–
    Kevin wants an Asp Page to be the Default page for a Team Site.

    We will consider the case resolved when we are able to configure an Asp page as the default page for a site already extended as a SharePoint Site.

    —————————————————–
    RESOLUTION:
    —————————————————–
    -Kevin wanted to remove the SharePoint team site from the Root of an Extended Team site without Un-extending the Team site.
    -Assisted him in removing [Root] from the URL namespace that are managed by Windows SharePoint Services, also assisted him in setting up a new top-level Web site (Kevin).
    -Removed SharePoint from a new Site http://Teas-207:82 and set up http://Teas-207:82/Kevin
    -Kevin was able to browse to http://Teas-207:82/kevin successfully
    -He was also able to browse to Default.asp page that he had set up as the Default Content page for the root of the http://Teas-207:82 site.
    -Kevin agreed to close the case.
    ——————————–Resolution—————————————–
    -Ran the IIS manager.
    -Unextended the Site at Default Web Site.
    -Created a new Site in IIS at port 82 :- (SharePoint) Changed the path of the Home directory to point to the location on the Local Drive containing the Asp Page.
    -Checked the Properties of the SharePoint site and moved the Default.asp page in Enable Default Content page to the top.
    -Extended the SharePoint Site.
    -Browsed to the SharePoint Central Admin Page > Virtual Server settings and clicked on SharePoint.
    -On the Virtual Server Settings page Clicked on Define managed paths
    -Added Kevin in the (Add a New Path ) Path description and clicked on Included path (Radio Button) and selected it as Type - Explicit Inclusion.
    -On the same page Under the Included Paths Select Root and Click on the link Remove selected paths.
    -This will remove the team site from the path http://teas-207:88
    -We then browsed to the Central Admin page and clicked on Configure virtual server settings page.
    -Clicked on SharePoint
    -Clicked on the Link Create top-level Web site under the section Virtual Server Management.
    -Under the section Web Site Address > Click on radio Button -Create site at this URL and drop down and select Kevin in the Drop down list.
    -This will extend the site http://teas-207:88/kevin
    -Now if you browse to http://teas-207:88/kevin you will get a SharePoint Team site.
    -When you browse to http://teas-207:88 you will get your default page i.e. Default. asp.
    ——————————————————————————————————–

    Best regards,

    Hemendra Srivastava
    Microsoft SharePoint Technology

    Categories: SharePoint
    Posted by Kevin on Wednesday, February 14, 2007 10:02 AM
    Permalink | Comments (0) | Post RSSRSS comment feed