TF30063: You are not authorized to access Microsoft-IIS/6.0. how to solve this error????

Answered TF30063: You are not authorized to access Microsoft-IIS/6.0. how to solve this error????

  • Monday, September 24, 2012 7:05 AM
     
     

    I am trying to download a latest file from tfs server.the download operation is working fine at debugging mode.but whenever I run this code through localhost it showing a error message.TF30063: You are not authorized to access Microsoft-IIS/6.0.how to solve this..

    thanks in advance

    sathya

All Replies

  • Monday, September 24, 2012 8:42 AM
     
     

    I think you got to provide more inputs.

    I am trying to download a latest file from tfs server.

    Are you doing this programatically? Which API are you using for it?


    If this answers your question, please Mark it as Answer. If this post is helpful, please vote as helpful.

  • Monday, September 24, 2012 1:18 PM
     
     

    Hi Sathya,

    I am assuming that you are doing it programatically. So, I believe when you debug it, Visual Stuido automatically uses credentials you are logged in with to connect to TFS server, however when you run it by hosting it on your localhost, you need to ensure that you app is running under correct identity so that it get's authenticated by TFS Server. This link would be also helpful in this regards.

    HTH

    Sameer


    If this answers your question, please Mark it as Answer. If this post is helpful, please vote as helpful.

  • Monday, September 24, 2012 1:45 PM
     
     

    Hi..I can connect TFS server programatically, and got item based on Item ID and Changeset ID.but at the download moment only it's throwing error message .how to solve this issue?

    [versionControlClass]

    public TfsItem GetItem(int itemid, int changesetid)
            {
                return new TfsItem(_versionControlServer.GetItem(itemid, changesetid));
            }

    [my file downlod class]

    TfsItem ti = vcs.GetItem(itemNum, chanesetNum);

      ti.DownloadFile(finalPath);

    but [ ti.DownloadFile(finalPath);] this line returning error..

  • Monday, September 24, 2012 1:45 PM
     
     

    This looks like a version vontrol Proxy issue. Try doing other Version Control operations that are not related to downloading the file? For instance-can you view the history of a file that has been checked in?

    Try this out might help you:

    In Visual Studio, go to Tools > Options > Source Control > Visual Studio Team Foundation Server. At the top of the pane you should see a checkbox titled "Use proxy server for file downloads". Is that checkboxk marked? What is the value in the text box below it? My guess is that your account does not have enough privileges to access the web server on that machine. This would explain why you are getting error messages from IIS authenticiation and not TFS authorization.

    Try to disable this checkbox and then try to get a file? Does the download succeed at that point?


    Mark it as helpful if so!!! thanks, Mithilesh

  • Monday, September 24, 2012 1:54 PM
     
     

    Hi..

    I checked my solution that Use proxy server for file downloads-checkBox is already disabled mode.Now I can download files at debugging mode on using this code but IIS mode is not working.

    How to I download tfs file  using version control in some other way??

    and how to download through IIS?

    please help

    thanks

    sathya



    • Edited by sathyaraj.p Monday, September 24, 2012 2:01 PM
    •  
  • Monday, September 24, 2012 3:03 PM
     
     

    I suggest trying out following:

    1. Ensure that you are connecting to TFS Server by passing proper credentials either through the constructor or by using the Authenticate method.

    2. I'm assuming you are running it as web app from local IIS Server, if so, ensure that application is running with proper identity in IIS as I suggested earlier (refer to the links in my earlier comment):

    you need to ensure that you app is running under correct identity so that it get's authenticated by TFS Server. This link would be also helpful in this regards.

    HTH

    Sameer


    If this answers your question, please Mark it as Answer. If this post is helpful, please vote as helpful.

  • Monday, September 24, 2012 3:15 PM
     
     
    try giving your local tfs folder full right to IUR_User and then try.

    Mark it as helpful if so!!! thanks, Mithilesh

  • Tuesday, September 25, 2012 4:52 AM
     
     

    I am using win xp for development. As I mentioned earlier when in debug mode the "ti.downloadfile(path)" works fine. It fails when I try to do the same thing using localhost.

    I tried giving everyone,iusr permission to download path will full control, but it didn't help.

  • Wednesday, September 26, 2012 7:39 AM
     
     

    Hi sathyaraj.p,

    Thank you for visiting the MSDN forum. I’m afraid that it is not the correct forum about this issue. I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks for your understanding.


    Bob Shen [MSFT]
    MSDN Community Support | Feedback to us

  • Wednesday, September 26, 2012 8:06 AM
    Answerer
     
     

    Hello,

    the following forum discusses TFS: http://social.msdn.microsoft.com/Forums/en-US/category/vstfs

    With access denied errors, I would try to ask in the configuration section.

    Florian

  • Wednesday, September 26, 2012 11:58 AM
     
     Answered

    Hi,

    Before that I checked windows xp and iis 5.1.That time I was got error.

    -----------

    But now I checked with  windows 7 and iis 6.0 machine,then  everything is  working fine.

    Thanks for your reply.

    sathya

    • Marked As Answer by sathyaraj.p Wednesday, September 26, 2012 11:58 AM
    •