Applying both fiddler and wireshark to the problem just shows me that these requests are just not being processed. But sometimes, occasionally, one will get delivered. then I think that this gets cached for a while so that one can be delivered from cache.
Essentially, using fiddler as a proxy shows me that the request is being sent, (sometimes twice? have checked files, should be no reason for this - possibly an aythentication round trip?), but once passed on to the IISExpress instance, the data is not being
sent back.
Have tried <location> allow * overrides to stop that problem.
Have tried just asking for the files outside of bundling - same issue, so this looks like it is not a bundling issue.
"And whoever is removed away from the Fire and admitted to Paradise, he indeed is successful." (The Holy Quran)
Excellent Windows VPS Hosting Imran Baloch MVP, MVB, MCP, MCTS, MCPD
Create a new MVC4 project - Basic, with Razor engine
Add a controller called Home - just bare controller.
Create view Index for action Index on Home controller. Use _viewStart layout, so includes bundled jquery and modernizr
Enable IISExpress for the application
Test this application - should work fine.
Next, configure Identity and Access on the application with Local development STS. Leave all as defaults.
Test application again. You should see it go through the localSTS authentication and then request the Home/Index action - at this point it tries to get the script files but these requests hang. The page is delivered, but can't render as the script files
in the <head> tag prevent it doing so until the script requests time out.
If you fire up another browser session in, say, chrome, then you can navigate to the script file and it will be downloaded on that session.
Zipped project with this state is here: https://www.dropbox.com/s/dy2bs5fh70kubp6/MvcApplication3.zip
ok. update. I think I can get it workign consistently. But only if I clear the wininet cache before debugging. but once I have done the first request which was ok, I try refreshing the page and then the problem reoccurs.
Except sometimes on refreshing it gets a cached version for a few goes, then tries to go for a fresh version, then hangs.
"And whoever is removed away from the Fire and admitted to Paradise, he indeed is successful." (The Holy Quran)
Excellent Windows VPS Hosting Imran Baloch MVP, MVB, MCP, MCTS, MCPD
mrmoosehead
0 Points
14 Posts
Re: Bundled Scripts / Css trouble with Identity and Access with Local STS / IISExpress
Nov 29, 2012 10:56 AM|LINK
I am running as administrator now. Still same problem.
Added in the jquery theme css bundle.
Some of these render when I have the css bundle first, some when the script bundle is added.
mrmoosehead
0 Points
14 Posts
Re: Bundled Scripts / Css trouble with Identity and Access with Local STS / IISExpress
Nov 29, 2012 01:46 PM|LINK
The more I look at this, the more it looks like an issue with iisexpress.
If I fire up teh app and one of these requests gets stuck, I can see it waitign for its response in fiddler.
replaying the request in fiddler gets an instant 200 response.
If I copy the url to another unrelated browser session then It is served immediately.
So it's either a browser issue (across all 3 main browsers - unlikely), wininet (I cleared the cache many times) or iisexpress.
mrmoosehead
0 Points
14 Posts
Re: Bundled Scripts / Css trouble with Identity and Access with Local STS / IISExpress
Nov 29, 2012 01:50 PM|LINK
Hmm. Interestingly, none of the requests that fail seem to be hitting the IISExpress Log, or the TraceLogFiles.
This suggests something in front of IISExpress. No, the firewall is not on. Wininet?
mrmoosehead
0 Points
14 Posts
Re: Bundled Scripts / Css trouble with Identity and Access with Local STS / IISExpress
Nov 29, 2012 03:51 PM|LINK
Yet more iterations later, still no joy.
Applying both fiddler and wireshark to the problem just shows me that these requests are just not being processed. But sometimes, occasionally, one will get delivered. then I think that this gets cached for a while so that one can be delivered from cache.
Essentially, using fiddler as a proxy shows me that the request is being sent, (sometimes twice? have checked files, should be no reason for this - possibly an aythentication round trip?), but once passed on to the IISExpress instance, the data is not being sent back.
Have tried <location> allow * overrides to stop that problem.
Have tried just asking for the files outside of bundling - same issue, so this looks like it is not a bundling issue.
Ready to give up. Doesn't make any sense.
imran_ku07
All-Star
45815 Points
7698 Posts
MVP
Re: Bundled Scripts / Css trouble with Identity and Access with Local STS / IISExpress
Nov 29, 2012 04:42 PM|LINK
Can you share this not working sample?
Excellent Windows VPS Hosting
Imran Baloch MVP, MVB, MCP, MCTS, MCPD
mrmoosehead
0 Points
14 Posts
Re: Bundled Scripts / Css trouble with Identity and Access with Local STS / IISExpress
Nov 29, 2012 05:42 PM|LINK
Can't share this project, no, will try get a basic example that doesn't work and share that.
mrmoosehead
0 Points
14 Posts
Re: Bundled Scripts / Css trouble with Identity and Access with Local STS / IISExpress
Nov 29, 2012 06:00 PM|LINK
OK.
Steps to reproduce
Create a new MVC4 project - Basic, with Razor engine
Add a controller called Home - just bare controller.
Create view Index for action Index on Home controller. Use _viewStart layout, so includes bundled jquery and modernizr
Enable IISExpress for the application
Test this application - should work fine.
Next, configure Identity and Access on the application with Local development STS. Leave all as defaults.
Test application again. You should see it go through the localSTS authentication and then request the Home/Index action - at this point it tries to get the script files but these requests hang. The page is delivered, but can't render as the script files in the <head> tag prevent it doing so until the script requests time out.
If you fire up another browser session in, say, chrome, then you can navigate to the script file and it will be downloaded on that session.
Zipped project with this state is here: https://www.dropbox.com/s/dy2bs5fh70kubp6/MvcApplication3.zip
Thanks for trying.
mrmoosehead
0 Points
14 Posts
Re: Bundled Scripts / Css trouble with Identity and Access with Local STS / IISExpress
Nov 29, 2012 06:48 PM|LINK
ok. update. I think I can get it workign consistently. But only if I clear the wininet cache before debugging. but once I have done the first request which was ok, I try refreshing the page and then the problem reoccurs.
Except sometimes on refreshing it gets a cached version for a few goes, then tries to go for a fresh version, then hangs.
Argh!
imran_ku07
All-Star
45815 Points
7698 Posts
MVP
Re: Bundled Scripts / Css trouble with Identity and Access with Local STS / IISExpress
Nov 30, 2012 08:38 AM|LINK
I can't reproduce any thing that you are seeing?
Excellent Windows VPS Hosting
Imran Baloch MVP, MVB, MCP, MCTS, MCPD
mrmoosehead
0 Points
14 Posts
Re: Bundled Scripts / Css trouble with Identity and Access with Local STS / IISExpress
Nov 30, 2012 10:48 AM|LINK
Hmm. I can faithfully recreate this on two different computers.
Both running same version of VS.
Both running windows 7, one 32bit and one 64bit.
Both setup in the same way.
Both running AVG (not sure that would make any difference, but it might)
Neither are on a domain.