-1
<body class="login-body">
    <div id="body">
        @RenderSection("featured", required: false)
        <section class="content-wrapper main-content clear-fix">
            @RenderBody()
        </section>
    </div>
</body>

And CSS style is

.login-body {
  background: rgba(0, 0, 0, 0) url("../Images/bg2.jpg") no-repeat fixed center center / cover ;
}

It works fine locally but once published on IIS7 I found this error in console.

Failed to load resource: the server responded with a status of 404 (Not Found). http://sdw2629/Images/bg2.jpg 404 (Not Found)

Sagar Jagadesh
  • 237
  • 5
  • 14

1 Answers1

0

Solved the Issue following this post by moving the css and image to the same rootfolder.

MVC4 StyleBundle not resolving images

Community
  • 1
  • 1
Sagar Jagadesh
  • 237
  • 5
  • 14