locked
Clickonce deployment on remote server RRS feed

  • Question

  • Hi,

    I have a project that can successfully deploy on local IIS (http://localhost/TestProject) but can't be deployed onto a remote development server.  The error I get is Failed to connect to 'http://<My Dev Server>/TestProject/' with the following error: Unable to create the Web site 'http://<My Dev Server>/TestProject'.  The server returned an invalid response.  Please try again.  If the problem persists, contact your server administrator.

    I tried deploying using UNC path and it works but I'd like to do it through web URL.  I'm using clickonce publishing wizard and I'm already part of the local admin of that dev server and that server/website already has Front Page Extension 2002 installed.  BTW, a coworker of mine is able to publish to this dev server using URL.

    The error message was not clear enough.  Please help.

    Thanks a lot.

    Wednesday, June 30, 2010 10:27 PM

Answers

  • Hi,

    I'm not an IIS expert, but maybe one of the Microsoft people will respond. You can also try posting the question in the IIS forum http://forums.iis.net

    If you use FTP, it will prompt you for credentials. For HTTP, it probably uses Windows security, but I don't know for certain.

    RobinDotNet


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev
    • Marked as answer by Aland Li Friday, July 9, 2010 12:00 PM
    Friday, July 2, 2010 4:56 PM

All replies

  • If your coworker can publish using http to that server and you can't, then it's a permissions problem. I would double-check your URL and the permissions you have on the server.

    By the way, you can also publish using FTP. So your publishing file location would be something like ftp://myserver.com/myproject/ and your installation URL would be something like http://myserver.com/myproject/

    Also, is that all you get is that one error? There's no other information?

    RobinDotNet 


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev
    Friday, July 2, 2010 1:55 AM
  • Hi Robin,

    Thanks for your response.  Yes, that error is the only thing.  I'm also in the myserver\Administrators group on that server already, same as my coworker.  I also tried to explicitly grant my domain user local admin to that server but it didn't help.  btw, how do I know which user account is being used to connect to that server when I'm publishing inside VS?  Is there a way to check/change it?  I haven't tried ftp yet but if nothing works, doing thru UNC share path is fine with me, just that I'll modify the project and change everyone's else way of publishing this project also.

    Friday, July 2, 2010 3:48 PM
  • Hi,

    I'm not an IIS expert, but maybe one of the Microsoft people will respond. You can also try posting the question in the IIS forum http://forums.iis.net

    If you use FTP, it will prompt you for credentials. For HTTP, it probably uses Windows security, but I don't know for certain.

    RobinDotNet


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev
    • Marked as answer by Aland Li Friday, July 9, 2010 12:00 PM
    Friday, July 2, 2010 4:56 PM
  • Hi KTNguyen,

    From my experience, there so many problems when we publish the project to a remote IIS server. I sggest you loggin that the remote machine via remote desktop or other tools and publishing on that machine directly.

    Regards,
    Aland Li


    Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
    • Marked as answer by Aland Li Friday, July 9, 2010 12:00 PM
    • Unmarked as answer by RobinDotNet Friday, July 9, 2010 6:00 PM
    Wednesday, July 7, 2010 11:18 AM
  • Aland -- I'm not sure I understand your response. People regularly deploy ClickOnce application to remote server machines. I think it would be rare to have Visual Studio installed on the web server in order to deploy C/O apps to it.

    KTNguyen -- it is likely that your administrators do not allow you to publish using http to the webserver. We always publish using FTP. My server guys said that allowing someone to publish via HTTP directly to the webserver would be a security risk. Can your coworker publish with HTTP?

    RobinDotNet

     


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev
    • Proposed as answer by RobinDotNet Friday, July 9, 2010 6:03 PM
    Friday, July 9, 2010 6:02 PM