title: Relative Image URL in Javascript File - ASP.net MVC and IIS 7
body: <p>I am developing an Asp.net mvc application, everything works fine in ASP.net development server but when I am trying to host it on IIS 7. I am getting problem related to URL resolution. I have used relative paths in Javascript to give the image. The script file is in ~/Scripts/ folder and image files are in ~/Content/images/ folder. Now in the javascript file I am trying to use the give by giving the relative path like
  http://localhost/WebApp1/controller1/action1/
  it tries to find it at <a href="http://localhost/controller1/action1/" rel="nofollow noreferrer">http://localhost/controller1/action1/</a> and couldn;t find the file.</p>