Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

I am programming an AngularJS (with Material Angular) Application that communicates with an API (I am programming both, frontend and backend (API)). I am programming it with C# in Visual Studio. When I debug the Application, everything works perfectly fine. But when I deploy it to my IIS Server, the frontend (AngularJS) is not working.Everything I can see is the following

The error in the console says unpr (unknown provider).

It does load my scripts. When I look into the script, everything looks fine and the same as when I debug it on localhost (with the little difference, that now everything is in one script but I think that should be like this. So why do I get this error? The scripts are being loaded, the code is the same as in localhost, etc.

share|improve this question
    
Does it work if you build in release mode locally? – eh. yesterday
    
@eh. Yes it does. – Terajoel yesterday
    
I'm assuming you have a 404 error listed in the Network tab. What path is it going after? Is the file at that location? – Dave Bush 23 hours ago
    
Are you sure you don't have your api url or port number hardcoded somewhere in your code ? – Adrien 23 hours ago
    
@Dave-Bush I was able to see now, that the scripts are being loaded, but all in one file, that confused me. But the Javascript (Angular) code is the same as when i debug it on localhost. – Terajoel 2 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.