WebApi和Angular js与两个Seprate项目集成 [英] WebApi and Angular js Integration With Two Seprate Project

查看:79
本文介绍了WebApi和Angular js与两个Seprate项目集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我采取了两个项目。一个用于webapi,另一个用于web。但是当我试图运行程序然后api成功运行但是网络文件没有运行,有时也是项目运行的任何一个,请任何人可以帮助我吗?如何解决问题?

解决方案

这个问题可以通过将Api和Angular Js项目都设置为启动项目来解决。



1.转到解决方案右键单击并选择设置启动项目

2.从新的安装项目窗口中,选择多个启动项目收音机选项。

3.为API和AngularJs项目设置开始操作。如有必要,还可以上/下设置订单。

4.单击应用并尝试运行项目。



这样它就会运行两个项目和服务将准备回答任何UI调用。



希望它有所帮助。


i taken two project . one for webapi and another is web . But When i Trying to run program then api successfully run but web file is not run and sometime also any one the project run so, Please Anyone can you help me ? how can solve problem?

解决方案

This issue can be solved by setting both Api and Angular Js project as startup projects.

1. Go to solution right click and select "Set Startup projects"
2. From the new "Setup Project" window, select multiple startup projects radio option.
3. Set action to "Start" for both API and AngularJs projects. Also set the order up/down if necessary.
4. Click Apply and try to run the project.

This way it will run two projects and service will be ready to answer any UI calls.

Hope it helps.


这篇关于WebApi和Angular js与两个Seprate项目集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆