After deploying my ASP.NET MVC project to an IIS Server System, I encountered issues with the image URLs not taking the correct path when added from CSS. Additionally, I was unable to send post or get requests in AngularJS.
Here is a snippet of my CSS code:
<div class="container" style="background-image:url('../../Images/img/product-1.jpg')">
<div class="text-left">Welcome</div>
</div>
And here is a snippet of my AngularJS code:
var app=angular.module('myApp', ['ngRoute']);
app.controller('myCtrl', ['$scope', '$http', function($scope, $http){
$http({
method:"POST",
url:"/controller/action",
data:{id:1}
}.then(function(response){
console.log(response)
}, function(error){
console.log(error)
});
]});
Despite trying various solutions such as installing StaticContent in IIS and changing application pool settings for authentication, I have been unsuccessful in resolving these issues.
The errors I am encountering are:
GET 404 (Not Found)
GET 404 (Not Found)
The expected URLs should be:
GET 404 (Not Found)
GET 404 (Not Found)