# How to integrate ember CLI with ASP.Net Application?

**URL:** <https://discuss.emberjs.com/t/how-to-integrate-ember-cli-with-asp-net-application/10640>\
**Category:** Ember CLI\
**Created:** [May 9, 2016, 7:36am UTC](https://discuss.emberjs.com/t/how-to-integrate-ember-cli-with-asp-net-application/10640 "2016-05-09T07:36:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![snehalchavan](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@snehalchavan](https://discuss.emberjs.com/u/snehalchavan)\
**Post date:** [May 9, 2016, 7:36am UTC](https://discuss.emberjs.com/t/how-to-integrate-ember-cli-with-asp-net-application/10640/1 "2016-05-09T07:36:39Z")

</div>

I have an EmberJS application that is built using Ember CLI. To deploy my application I used the ember build --release command with Ember CLI, and copied the output from the /dist folder into the folder that is mapped with IIS. Everything seems to work fine. If I try to access localhost:port/someurl directly, I get a 404 Not Found error. What is the best way to integrate Ember CLI with [ASP.NET](http://ASP.NET) Application?

---

<div class="post-metadata">

**Author:** ![tsantos83](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/tsantos83/32/14256_2.png) [@tsantos83](https://discuss.emberjs.com/u/tsantos83)\
**Post date:** [May 9, 2016, 1:42pm UTC](https://discuss.emberjs.com/t/how-to-integrate-ember-cli-with-asp-net-application/10640/2 "2016-05-09T13:42:18Z")

</div>

You have to define routing rules in IIS or within your .NET backend routing in order to have a request to an ember route find the ember app. When you request to localhost:whatever/your/ember/route, .NET will try to find within its own routes the route requested. Look into what other people are doing: [ember.js - How to run emberJS application in IIS? - Stack Overflow](http://stackoverflow.com/questions/25481543/how-to-run-emberjs-application-in-iis)

---

<div class="post-metadata">

**Author:** ![uberclops](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/uberclops/32/10217_2.png) [@uberclops](https://discuss.emberjs.com/u/uberclops)\
**Post date:** [May 10, 2016, 8:27pm UTC](https://discuss.emberjs.com/t/how-to-integrate-ember-cli-with-asp-net-application/10640/3 "2016-05-10T20:27:01Z")

</div>

When you say [ASP.NET](http://ASP.NET), are you using any frameworks such as [MVC.NET](http://MVC.NET) or WebAPI?

If [MVC.NET](http://MVC.NET), you’ll generally edit your layout page to look similar to the compiled app index.html. If WebAPI, you’ll serve your compiled ember application from a “public” folder (used to serve static files).
