Issues on the IIS Deployment on an ASP.NET 4.5

Posted by Vuyiswamb under IIS on 8/21/2014 | Points: 10 | Views : 795 | Status : [Member] [MVP] [Administrator] | Replies : 0
Good Day All

i have an asp.net 4.5 application. i have hosted it on IIS 7.5 in Windows Server 2008. My application has different folders within it and some are for JS and some are for CSS and etc.. and they are inside a directory named "Shared" in my problem and most of the things especially the css , images etc they are reference like this

  <link href="../Shared/assets/css/bootstrap.css" rel="stylesheet"/>



<link rel="apple-touch-icon" sizes="57x57" href="../Shared/assets/ico/apple-touch-icon-57x57.png">


now when i host this Project i have issues with CSS and images because they are not retrieved. i use Fiddler to check what is happening and i realised that after i hosted the application now Fiddler reports a 404 error on the following path


http://myiisreserver/Shared/assets/css/bootstrap.css


there are many of them , this is just an Example. now you can see it it can see the server , but instead of adding my Application or website name , it add the Directory within my application. So basically it should look like this


http://myiisreserver/MyWebapplication/Shared/assets/css/bootstrap.css

What could be the Problem.


Thanks

Thank you for posting at Dotnetfunda
[Administrator]



Responses

(No response found.)

Login to post response