简体   繁体   English

如何在ASP.NET中从另一个Web应用程序访问

[英]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.

相关问题 将 JSON 从一个 asp.net web 应用程序发送到另一个 - Sending JSON from one asp.net web application to another 如何在ASP.NET Web API应用程序中从另一个方法调用一个异步方法 - How to call one async method from another one in ASP.NET Web API application 如何在ASP.NET MVC 4 Web应用程序中从一个控制器的视图重定向到另一个控制器的视图 - How to redirect to a View of another Controller from one Controller's View in ASP.NET MVC 4 Web Application 如何将文件从ASP.NET上载到另一个Web应用程序 - How to upload files from ASP.NET to another web application 如何将数据从一个ASP.Net应用程序传输到另一个ASP.Net应用程序? - How to can I Transfer Data from One ASP.Net Application to another ASP.Net Application? 如何使用ASP.NET从另一个用户控件访问一个UserControl - How To Access One UserControl from Another Using ASP.NET 如何从ASP.NET Web应用程序访问perfmon(Windows Server 2008)原始收集的数据? - How can one access perfmon (windows server 2008) raw collected data from an ASP.NET web application? 从局域网计算机访问asp.net Web应用程序 - Access asp.net web application from lan computers ASP.Net-无法从Web应用程序访问“下载”文件夹 - ASP.Net - Unable to access Downloads folder from a web application 从ASP.NET MVC应用程序访问Web API路由 - Access Web API routing from ASP.NET MVC application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM