In DNN 6x, I used an iframe to display my razor-coded application. The iframe code was "<iframe width="680" height="570" src="/portals/0/myfile.cshtml" frameborder="0" scrolling="no"></iframe>" This worked very well. However; I cannot get the same iframe code to work in DNN 7x, hence any help would be appreciated. Depending on my approach, I get the following errors:
Server Error in '/' Application.
Type 'ASP._Page_portals_0_JHPInterviewTrainer1_cshtml' does not inherit from 'System.Web.WebPages.WebPage'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Type 'ASP._Page_portals_0_JHPInterviewTrainer1_cshtml' does not inherit from 'System.Web.WebPages.WebPage'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[HttpException (0x80004005): Type 'ASP._Page_portals_0_JHPInterviewTrainer1_cshtml' does not inherit from 'System.Web.WebPages.WebPage'.] System.Web.UI.Util.CheckAssignableType(Type baseType, Type type) +9634456 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +66 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(String virtualPath, Type requiredBaseType) +28 System.Web.WebPages.BuildManagerWrapper.CreateInstanceOfType(String virtualPath) +203 System.Web.WebPages.VirtualPathFactoryExtensions.CreateInstance(IVirtualPathFactory factory, String virtualPath) +145 System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType(String virtualPath) +153 System.Web.WebPages.VirtualPathFactoryExtensions.CreateInstance(IVirtualPathFactory factory, String virtualPath) +73 System.Web.WebPages.WebPageHttpHandler.CreateFromVirtualPath(String virtualPath, IVirtualPathFactory virtualPathFactory) +23 System.Web.WebPages.WebPageRoute.DoPostResolveRequestCache(HttpContextBase context) +349 System.Web.WebPages.WebPageHttpModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +89 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18010
I have tried using a leading underscore for the filename and verified spelling, but get an error as follows:
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /portals/0/_JHPRazorInterviewTrainer.cshtml
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18010