Last post Dec 05, 2017 02:42 AM by Deepak Panchal
Dec 02, 2017 01:19 PM|kaustavdey|LINK
Dec 02, 2017 02:03 PM|mgebhard|LINK
I have a website working fine in Visual Studio 2010 where a virtual path is configured to a folder
Now I am trying to debug the same piece of code(website) using Visual Studio 2015. While running from my development system , the url is coming as http://localhost:6815/ , but it should come as http://localhost:6815/appfolder. Since the "appfolder" is not coming
, HttpRequest.Applicationpath is coming as / but I need it to come as /appfolder and because of this my js files are not working as expected.
I tried to add the virtual directory in the .vs application host config file in the solution folder but it did not help.
Pls suggest how to resolve .
Your project has file reference bugs. IIS Express acts more like a production web app where the app root is the application rather than the application name found in Local IIS. I would fix the references or you'll have the same issue if this site is
ever deployed to a production server using a registered domain.
You can update the Visual Studio project to start IIS rather than IIS Express if you like. Just open the project properties, open the web tab, select Local IIS from the drop down and enter the Project URL. If the app is already set up as a virtual directory
then you don't have to create one.
Dec 02, 2017 02:16 PM|kaustavdey|LINK
Dec 02, 2017 02:38 PM|mgebhard|LINK
The website is already running in the windows IIS production server having a virtual directory in inetpub.<br>
Only in my local machine, all the functionalities are not working as the HttpRequest.ApplicationPath is coming as / instead of the virtual folder.So while debugging in Visual Studio 2015 I am facing the problem. It works fine in vs 2010.<br>
Moreover, it is a website , not a web application so in properties I don't have the web tab.
Again, it has to do with how IIS Express works. IIS Express expects the application to be the root app. IIS uses ports to distinguish between app as opposed to perhaps a virtual directory in IIS. It sounds like you've configure the production app without
a domain? Perhaps you are using an the system IP or computer name? Or perhaps this app is part of a larger app?
Anyway, as stated above configure the project properties to point to the Local IIS virtual directory. Do not use IIS Express.
Dec 03, 2017 05:41 AM|kaustavdey|LINK
Dec 04, 2017 05:50 AM|Deepak Panchal|LINK
did you try to check what path is stored in "HttpRequest.Applicationpath " and what is the difference in the path if you use VS 2010 and VS 2015.
try to find the difference and try to correct it to solve the issue.
you can also post the bot the path here.
we will try to find the difference in it.
Dec 04, 2017 10:07 AM|kaustavdey|LINK
Dec 05, 2017 02:42 AM|Deepak Panchal|LINK
I also discuss the issue with the MSDN IIS support team.
they had inform me that they will try to test the issue if you post the same issue on IIS Forum.
below is the link for IIS Forum.
so you can also post your issue there and try to know their opinion on this issue.