Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

angular2 built in AspNet core - deployment in IIS Issue

$
0
0

I have created a Angular2 application in AspNet Core 1.0. We are not using any of the AspNet core features and just we want Angular2 application to be wrapped inside a AspNet core application.

The application works fine in Development mode i.e. in Debug mode. but When I do publish the application from Visual studio IDE and copy the published contents and place it inside IIS Virtual folder I am not able to access the application. I am getting issues in the References i.e. not able to load .JS .CSS files from Index.html - "Failed to load resource: the server responded with a status of 404 (Not Found)". 

After publish I can notice all the typescript files are transpiled to .js files and all the references are placed properly. any ideas why I am getting this error and what is it need to be done to be deployed in IIS and make it work?

Note: I am trying to host the application in my local desktop only (i.e. same as development) where the application works fine in debug mode.

Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/fonts/css/font-awesome.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/css/bootstrap.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/css/BubbleChart.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/css/custom.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/jquery.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/css/Kendo/kendo.common.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/css/Kendo/kendo.default.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/css/Kendo/kendo.black.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Angular2/shim.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Angular2/zone.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/bootstrap.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Angular2/reflect-metadata.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Angular2/system.src.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Kendo/kendo.all.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Kendo/jszip.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/D3/d3.v3.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Plugins/jsonplus.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Plugins/jp.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/systemjs.config.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Plugins/jquery.jsontotable.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Angular2/shim.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/custom.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Angular2/zone.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/images/loading.gif Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Angular2/reflect-metadata.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Angular2/system.src.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/css/Kendo/kendo.common.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/css/Kendo/kendo.black.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/css/Kendo/kendo.default.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Kendo/kendo.all.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/Kendo/jszip.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/js/D3/d3.v3.min.js Failed to load resource: the server responded with a status of 404 (Not Found)


Viewing all articles
Browse latest Browse all 9386

Trending Articles