[RESOLVED]After run the app, a folder "vs" shows up under c:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files

Hi,

I’m working on a MVC3 app, with 11 separate projects under the overall solution. Recently I had to change the .csproj files for each project, due to a naming change.

After this change, everything still complies and runs; however, under this folder (c:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files), I noticed 2 new things:

1) a folder "vs" now appears here, right by "root" — NOTE: before this change, only "root" folder appears under this path;

2) A new folder "OtherProject" now appears – "OtherProject" is 1 of 11 projects; it should NOT have a website associated with it; it is called by other projects. Now, when I look at the "Properties" for this project in VS, it shows a port number with it,
as if it should be run as a website — is this a problem? What does this mean?

I’m not understanding what it means when this new "OtherProject" folder shows up here? It used to never show up.

Can someone please elaborate? Or point me to some posts to read about it?

Also, in VS, if I right click a project, go to "Properties", under Web – what is the difference in using "Use Visual Studio Development Server" and "Use local IIS web server"?  In 1 solutions, is it true that I should use the same option for all projects?

Thanks,

Claudia

claudia888

1) a folder "vs" now appears here, right by "root" — NOTE: before this change, only "root" folder appears under this path;

2) A new folder "OtherProject" now appears – "OtherProject" is 1 of 11 projects; it should NOT have a website associated with it; it is called by other projects. Now, when I look at the "Properties" for this project in VS, it shows a port number with it,
as if it should be run as a website — is this a problem? What does this mean?

Does your app still work despite these? If so, don’t worry about it.

claudia888

Also, in VS, if I right click a project, go to "Properties", under Web – what is the difference in using "Use Visual Studio Development Server" and "Use local IIS web server"?  In 1 solutions, is it true that I should use the same option for all projects?

You can choose whether to debug your app against the built in "Cassini" server or the lightweight version of IIS. You should only need to set this for the startup project. Most people choose IIS Express.

Hi Mike,

Thanks for replying. There is only 1 thing that odes not work – when I tried to call the "OtherProject" now, it goes to a page saying "404 – resources not found".

I’m trying to fix this; i.e. in VS, if I right-click the "OtherProject", go to Properties, under Web – I tried to remove all mentioning of using the built-in dev web server or use local IIS – but cannot. And the VS auto-assign a port to it…. which I don’t
know how to remove?

This "OtherProject" does NOT need a port; it should not bring a web interface up like the startup project.

How do I fix this?

Thanks,

CLaudia

Hi CLaudia,

claudia888

There is only 1 thing that odes not work – when I tried to call the "OtherProject" now, it goes to a page saying "404 – resources not found".

You need to check whether that project could be access in the internet browser directly, if so, you should to use that URL.

You could specify the port for that project.

In VS2012, you could select Specify port option if you select Use Visual Studio Development Server.

If you select Use Local IIS Express, you could change the port directly, and it will create a new virtual directly for it automatically.

On the other hand, if you don’t specify the port, it will uses the default port (80). By default it is used in the Default Web Site in local IIS. So if you don’t want to specify the port, please create an application under Default Web Site in local IIS.

Best Regards

Starain

Thanks Starain for the reply. I understand what you are saying….

but, what I want to achieve is: this "OtherProject" should NOT got to a page directly; it should NOT have a port associated with it. But I do not know how to remove the port in VS for it, under "Properties"?

Can you advise on this?

Thanks,

CLaudia

Hi CLaudia,

You could try to remove the port directly if you are using local IIS Web Server (IIS express), for example the project Url is
http://localhost:8888/, then change it to
http://localhost
and save it.

It may throws an error if that port (80) has already been used. I suggest that you could create a website in local IIS (under Default Web Site), then use Custom Web Server (in project property) with the corresponding URL.

Best Regards

Starain

Thanks for your suggestion Starain.

After I re-compiled the project a few times, somehow the problem magically disappeared…now, it does not go to a separate website (which is the desired outcome).

This same issue happened previously; most times it works, but some times it does not.

We never figured out why it appears, and why it disappeared.

Have you seen anything similar?

Thanks,

Claudia

Hi Claudia,

I think the reason is that that site not started, you could check whether it is running in the IIS express or vs deployment server. (In the notification area)

Note, if you are deployed to the local IIS, it will keep running if the IIS is running.

Best Regards

Starain

Leave a Reply