Unable to open Web project after requiring SSL

M

Mek

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 https://Localhost: 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 https://[IP address]? Anybody
got any ideas?
 
N

Nicole Calinoiu

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top