I have worked on a ASP.NET MVC 3.0 project. It works fine so far.
However, start from few days ago, some external files(Images, Js, Css) cannot load improper randomly.
For example, when i go to my project, (1.jpg, 2.jpg, 3.css, 4.js) cannot be loaded.
after refreshed the page, These four files can be loaded successfully but may be another files (a.jpg, b.js) cannot be loaded (500 (Internal Server Error)).
This issues happend most (always miss some files) in Chorme but will also happen in IE and FireFox.
I am struggling with this problem and do not have any idea of it. Have i done anything wrongly?
As the attachment above. NOT all of them return 500. Only some of them give me 500. However, after refreshed the page, Some of these can be loaded successfully but another few files will be missed. Just like Disappearing randomly.
I just run it in localhost. This issue just occur in few days ago. So i am just wonder if it is possible to make that issue because of some wrong code?
fai1012
0 Points
8 Posts
External files(Images, Js, Css) cannot load improper
Apr 27, 2012 02:48 AM|LINK
I have worked on a ASP.NET MVC 3.0 project. It works fine so far.
However, start from few days ago, some external files(Images, Js, Css) cannot load improper randomly.
For example, when i go to my project, (1.jpg, 2.jpg, 3.css, 4.js) cannot be loaded.
after refreshed the page, These four files can be loaded successfully but may be another files (a.jpg, b.js) cannot be loaded (500 (Internal Server Error)).
This issues happend most (always miss some files) in Chorme but will also happen in IE and FireFox.
I am struggling with this problem and do not have any idea of it. Have i done anything wrongly?
Do anyone have idea on that?
Thank you so much!
fai1012
0 Points
8 Posts
Re: External files(Images, Js, Css) cannot load improper
Apr 27, 2012 03:30 AM|LINK
After Refreshed
ignatandrei
All-Star
134832 Points
21599 Posts
Moderator
MVP
Re: External files(Images, Js, Css) cannot load improper
Apr 27, 2012 06:32 AM|LINK
How do you load them ? And all them gives 500 ?
fai1012
0 Points
8 Posts
Re: External files(Images, Js, Css) cannot load improper
Apr 27, 2012 06:41 AM|LINK
Thanks for your reply! I am just loading it directly (Not using ajax)
For Image:
<img src="@Url.Content("~/images/image312.gif")" width="100%" height="2" />
For Js and Css
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")"></script>
<link type="text/css" href="@Url.Content("~/styles/style.css")" rel="stylesheet" />
As the attachment above. NOT all of them return 500. Only some of them give me 500. However, after refreshed the page, Some of these can be loaded successfully but another few files will be missed. Just like Disappearing randomly.
Thanks Thanks!
ignatandrei
All-Star
134832 Points
21599 Posts
Moderator
MVP
Re: External files(Images, Js, Css) cannot load improper
Apr 27, 2012 07:53 AM|LINK
Contact your hosting( maybe it is over capacity?)
Or
try load async.
fai1012
0 Points
8 Posts
Re: External files(Images, Js, Css) cannot load improper
Apr 27, 2012 08:02 AM|LINK
I just run it in localhost. This issue just occur in few days ago. So i am just wonder if it is possible to make that issue because of some wrong code?
ignatandrei
All-Star
134832 Points
21599 Posts
Moderator
MVP
Re: External files(Images, Js, Css) cannot load improper
Apr 27, 2012 08:30 AM|LINK
How many images do you have? I think IIS XP have a maximum of 10 ( or 40?) concurrent connections...
Young Yang -...
All-Star
21349 Points
1818 Posts
Microsoft
Re: External files(Images, Js, Css) cannot load improper
May 04, 2012 02:35 AM|LINK
Hi
You problem seems very strange. Could provide more details? Please show the stack trace to us.
Regards
Young Yang
Feedback to us
Develop and promote your apps in Windows Store
fai1012
0 Points
8 Posts
Re: External files(Images, Js, Css) cannot load improper
May 09, 2012 01:48 AM|LINK
Thanks for your reply.
My problem is
In a particular page, it is supposed to load the following iems:
<script src="@Url.Content("~/Scripts/jquery.ui.widget.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.ui.position.js")" type="text/javascript"></script>
.
.
.
<script type="text/javascript" src="@Url.Content("~/Scripts/MicrosoftAjax.js")" ></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" ></script>
.
.
.
<img src="@Url.Content("~/images/16b.png")" width="15" height="18" />
However, most of the time Not all the items can be loaded successfully. I need to keep on pressing F5 in order to load all the items.
Thanks,
Fai
ignatandrei
All-Star
134832 Points
21599 Posts
Moderator
MVP
Re: External files(Images, Js, Css) cannot load improper
May 09, 2012 05:00 AM|LINK
How many items are?