Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have a small project which is developed on ASP.NET MVC with Angular. I am stuck in when I am uploading the build on IIS, but Angular is running fine on the development environment. Please help me.

When the project is run on server, it gives me an error.

Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.8.2/$injector/modulerr?p0=myAppReg&p1=Error: [$injector:unpr] http://errors.angularjs.org/1.8.2/$injector/unpr?p0=n
    at http://dev02:8080/bundles/angular?v=WBZx8wk_-vJDZ3YonKXb00zJMs-JA9giQ01orZGP8zE1:10:168
    at http://dev02:8080/bundles/angular?v=WBZx8wk_-vJDZ3YonKXb00zJMs-JA9giQ01orZGP8zE1:49:468
    at d (http://dev02:8080/bundles/angular?v=WBZx8wk_-vJDZ3YonKXb00zJMs-JA9giQ01orZGP8zE1:47:197)
    at e (http://dev02:8080/bundles/angular?v=WBZx8wk_-vJDZ3YonKXb00zJMs-JA9giQ01orZGP8zE1:47:438)
    at Object.invoke (http://dev02:8080/bundles/angular?v=WBZx8wk_-vJDZ3YonKXb00zJMs-JA9giQ01orZGP8zE1:48:16)
    at d (http://dev02:8080/bundles/angular?v=WBZx8wk_-vJDZ3YonKXb00zJMs-JA9giQ01orZGP8zE1:46:148)
    at http://dev02:8080/bundles/angular?v=WBZx8wk_-vJDZ3YonKXb00zJMs-JA9giQ01orZGP8zE1:46:287
    at r (http://dev02:8080/bundles/angular?v=WBZx8wk_-vJDZ3YonKXb00zJMs-JA9giQ01orZGP8zE1:11:76)
    at g (http://dev02:8080/bundles/angular?v=WBZx8wk_-vJDZ3YonKXb00zJMs-JA9giQ01orZGP8zE1:46:49)
    at fb (http://dev02:8080/bundles/angular?v=WBZx8wk_-vJDZ3YonKXb00zJMs-JA9giQ01orZGP8zE1:50:153)


What I have tried:

I tried many things, from Google search but am still stuck.
Posted
Updated 1-Oct-23 8:27am
v3

1 solution

I don't do angular, but a couple of quick Google searches comes up with some hints.

The "$injector:modulerr" mean a module failed to load for some reason.

The next one, "$injector:unpr" means "unknown provider", probably because a dependency wasn't found. You probably forgot to include some file(s) in your deployment package to IIS.
 
Share this answer
 
Comments
Mansoordp 13-Oct-23 3:33am    
which packages, only i upload simple build on IIS, and i didn't integrate the angular from node.js, ng-build, only I added libraries of angular and started work.
Dave Kreskowiak 13-Oct-23 10:40am    
Like I said, I don't do angular, so I have no experience deploying an angular app.

Google is your friend: how to deploy an angular app is iis - Google Search[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900