Unable to open Web project after requiring SSL

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Unable to open Web project after requiring SSL

    After installing SSL, everything appears to be working, except one thing --
    no Web project in a virtual directory that requires SSL will open in Visual
    Studio. It raises the error:

    "Unable to open Web Project 'Admin'. Unable to validate that the file path
    '[path]\Admin' matches the URL path 'https://Localhost:/Admin'. A connection
    with the server could not be established" (where [path] is a placeholder for
    the project location, and yes, it is correct)

    Now, originally I was getting the above error because it was trying to
    connect to 'http://[IP Address]/Admin'. To fix the problem, I went into the
    ..webinfo file and changed 'http' to 'https'. That got it to access the
    project using SSL, which was great, but for no apparent reason it immediately
    stopped using [IP address] and instead used Localhost:.

    Now, the reason it can't find these files is no mystery. The Admin project
    is not on Localhost. The IP address it is located at does not correspond to
    Localhost. If Visual Studio could find the project at Localhost, that would
    mean something was seriously wrong. The problem is that nowhere at no time
    have I ever set it to look for the project at [url]https://Localhost:[/url] and it never
    has. So why did it suddenly decide that's where the project is even though
    every configuration file tells it to look in [url]https://[IP[/url] address]? Anybody
    got any ideas?
    Mek Guest

  2. Similar Questions and Discussions

    1. Unable to Validate Configuration of a PHP Project
      Would it work if I develop on my Mac using a local version of MAMP and then copied the files up to my shared hosting solution??? I am in the same...
    2. unable to create Web project
      John Baima wrote: This problem really sucks and the docs are really bad. Here are the three things I found which solved the problem for me : ...
    3. ANN: open source web project SCCBridge
      Hello, I'm glad to announce that first fully functional version of "RepositoryExplorer" is released. This is open source .NET GUI application...
    4. Unable to get the project file from Web server
      Hi, I have an ASP.NET application that somebody gave it to me but when I attempt to run it I get the following error in a dialog with a title...
    5. Help:Could not open web .application project
      I an facinga strange problem. When I try to open any of my web application project I get a Web Access Denied MEssage saying that. the wwwroot is...
  3. #2

    Default Re: Unable to open Web project after requiring SSL

    Have you also modified the URL for the project file in the solution file
    (.sln) via which your project is loaded? Another potential issue is your
    use of an IP address rather than the same server name. In order for VStudio
    to be able to load the project files over SSL without any errors, the URL
    should use the same server name as the SSL certificate installed on the
    server. Basically, if you can't browse to the URL in Internet Explorer
    without receiving any SSL certificate warnings, you probably won't be able
    to load the project in VStudio.


    "Mek" <Mek@discussions.microsoft.com> wrote in message
    news:221C7561-D3ED-45E0-92C2-566FE85E3C96@microsoft.com...
    > After installing SSL, everything appears to be working, except one
    > thing --
    > no Web project in a virtual directory that requires SSL will open in
    > Visual
    > Studio. It raises the error:
    >
    > "Unable to open Web Project 'Admin'. Unable to validate that the file path
    > '[path]\Admin' matches the URL path 'https://Localhost:/Admin'. A
    > connection
    > with the server could not be established" (where [path] is a placeholder
    > for
    > the project location, and yes, it is correct)
    >
    > Now, originally I was getting the above error because it was trying to
    > connect to 'http://[IP Address]/Admin'. To fix the problem, I went into
    > the
    > .webinfo file and changed 'http' to 'https'. That got it to access the
    > project using SSL, which was great, but for no apparent reason it
    > immediately
    > stopped using [IP address] and instead used Localhost:.
    >
    > Now, the reason it can't find these files is no mystery. The Admin
    > project
    > is not on Localhost. The IP address it is located at does not correspond
    > to
    > Localhost. If Visual Studio could find the project at Localhost, that
    > would
    > mean something was seriously wrong. The problem is that nowhere at no
    > time
    > have I ever set it to look for the project at [url]https://Localhost:[/url] and it
    > never
    > has. So why did it suddenly decide that's where the project is even
    > though
    > every configuration file tells it to look in [url]https://[IP[/url] address]?
    > Anybody
    > got any ideas?

    Nicole Calinoiu Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139