Tuesday, 10 September 2013

MVC 4 and iFrames

MVC 4 and iFrames

I have a view which contains an iframe. This iframe targets a file located
/Source/ProjectName/Index.html. I have already added my ignore route:
routes.IgnoreRoute("Source/{*path}");
and I can successfully navigate to
http://localhost:1164/Source/ProjectName/Index.html
everything is displayed as expected :) so, in my view I have this code:
<iframe src="/Source/ProjectName/Index.html" width="1000"
height="1000"></iframe>
but I am getting the Server Error in '/' Application. The resource cannot
be found.
If anyone could shed any light onto why this might be happening, I would
be in your debt.
Cheers, /r3plica

No comments:

Post a Comment