Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrade from 6x to 7x problem with razor code in iframeUpgrade from 6x to 7x problem with razor code in iframe
Previous
 
Next
New Post
2/6/2013 10:41 PM
 

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

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrade from 6x to 7x problem with razor code in iframeUpgrade from 6x to 7x problem with razor code in iframe


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out