[英]How to access one web application from another in ASP.NET
I have solution with 3 projects. 我有3个项目的解决方案。 One is Website and another one is Services.
一个是网站,另一个是服务。 I want to access page from Services project via AJAX from page on Website but i fail to do so since only one project it running.
我想通过AJAX从网站上的页面访问Services项目中的页面,但是由于只有一个项目正在运行,所以我无法这样做。
How can it be done? 如何做呢?
please avoid answers like "What have you tried ?" 请避免回答“您尝试了什么?”之类的答案。 because this is general question with no relation to specific code.
因为这是普遍问题,与特定代码无关。
I'm using IIS Express built-in with Visual Studio Express 2012. 我正在使用Visual Studio Express 2012内置的IIS Express。
Thanks 谢谢
You can do this by specifying multiple start up projects. 您可以通过指定多个启动项目来执行此操作。
Select the properties of the solution, go to Common Properties
-> Startup Project
. 选择解决方案的属性,转到
Common Properties
> Startup Project
。
Select Multiple Startup Projects
and select the ones you need. 选择
Multiple Startup Projects
然后选择所需的Multiple Startup Projects
。 You can also adjust the starting order. 您还可以调整启动顺序。
Having said that, IIs Express serves up web applications even if Visual Studio is in debug mode or not, so this isn't strictly necessary. 话虽如此,即使Visual Studio是否处于调试模式,IIs Express仍可提供Web应用程序服务,因此这并不是绝对必要的。
Note: I don't have the Express SKU in front of me, so no guarantees that this is possible on that. 注意:我前面没有Express SKU,因此不能保证在此可行。 If it isn't, then the answer is that it isn't possible.
如果不是,那么答案是不可能的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.