Web app on SSL

  • Thread starter Thread starter spp
  • Start date Start date
S

spp

I have a web server with SSL (smart cards).
When I add a project from this server to a solution everithing works fine.
I get a message to introduce my pin and the project is added to my solution.
After save and close the solution when I try to open that solution I get

The default acces mode for this project is set to file share, but the
project folder at 'https://server/webapp' cannot be opened with the path
'\\server\webapp'. The two need to map to the same server location. HTTP
error 403: Forbidden.



So I have to remove the project from solution and add it everytime when I
want to open that solution.

How can I corect this ?
 
Hi Spp,

Thanks for your posting. From your description, you've a SSL protected iis
server and an ASP.NET projectd in it. Now when you adding it t a existed
solution, it worked well. But after you close the solution and reopen it ,
you got error indicate that the https url is not map to the fileshare
path, yes?

As for the problem, I think there must be something incorrect with the URL
path and the config project path in the solution file of the web project.
Is your IIS site configured as force using HTTPS or just optional and how
does you create that asp.net web project (via HTTPS url or http url and
enable https later)?
You can check your solution's .sln file to see what's the URL path in it
and compare with the one of the webproject's .csproj.webinfo file's
content.

BTW, generally we are more recommend to create and develop the web project
via http(ssl less) url and then enable the SSL at deployment time if
possbile.

If any new findings, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
My project was originally created on http. Later I enable https. In sln file
and in webinfo file i have https.
Is it something with certificates on server ? I ask this because when I try
for example to connect with Remote Computer to my servre and have the card
insert it doesn't authenticate me.
 
Hi,

When you access the https url in .webinfo via IE, will it prompt you
that the certificate isn't trusted or any other warning message? In
this case, VS.net will fail to open the project. You have to make
sure:

1) The certificate's CA cert has been installed in your trusted root
CA store.
2) The servername in the url matches the common name of the cert.

Thanks.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
 

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

Back
Top