asp.net mvc - mvc script / content items 404 on page load -
when run mvc 2 application locally works fine, , request log looks this:
get /scripts/jquery-1.4.1.min.js http/1.1 accept: */* referer: http://localhost.:2846/ accept-language: en-us ua-cpu: x86 accept-encoding: gzip, deflate user-agent: mozilla/4.0 (compatible; msie 7.0; windows nt 5.1; .net clr 1.1.4322; .net clr 2.0.50727; .net clr 3.0.4506.2152; .net clr 3.5.30729; .net4.0c; .net4.0e) connection: keep-alive host: localhost.:2846
after moving project remote test server of css , javascript files coming 404
get /scripts/jquery-1.4.1.min.js http/1.1 accept: */* referer: http://vnt2k3qa3/newemployee accept-language: en-us ua-cpu: x86 accept-encoding: gzip, deflate user-agent: mozilla/4.0 (compatible; msie 7.0; windows nt 5.1; .net clr 1.1.4322; .net clr 2.0.50727; .net clr 3.0.4506.2152; .net clr 3.5.30729; .net4.0c; .net4.0e) connection: keep-alive host: vnt2k3qa3
response
http/1.1 404 not found content-length: 1635 content-type: text/html server: microsoft-iis/6.0 x-powered-by: asp.net date: wed, 23 feb 2011 23:18:32 gmt
anyone happen know going on here?
the site setup anon access, , can manually enter url script or css file , pulls down fine!
edit
the script references in question in head section of master page at
/views/shared/site.master
<head> <title><asp:contentplaceholder id="titlecontent" runat="server" /></title> <link rel="stylesheet" href="/content/site.css" type="text/css" /> <script src="/scripts/jquery-1.4.1.min.js" type="text/javascript"></script> <script src="/scripts/jquery.color.js" type="text/javascript"></script> </head>
the views throwing 404's these at
/views/home/index
/views/newemployee/create
(basically have @ point)
and content/script folders at
/content/site.css
/scripts/jquery-1.4.1.min.js
the thing can see might issue looks might looking under newemployee directory scripts folder , i'm guessing scripts folder under root. check out src attribute specified javascript file see looking file.
i have been using
src='<% = url.content("~/scripts/jquery-1.4.1.js") %>'
for src tags make sure go right place no matter used , works me.
Comments
Post a Comment