views:

87

answers:

2

I have a mvc web site that contains one non-mvc page (it is using ajax and java-script, so mvc is not a good option).

The problem is that I still want to use the same masterpage. If I set the masterpage (MasterPageFile="~/Views/Shared/Site.Master"), then I get this error:

Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.

Details: To enable the details of this specific error message to be viewable on the local server machine, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".

Is there a way I can use my mvc masterpage for a non-mvc page?

A: 

Reading more about using controls within MVC, it seems the key thing is to use MVC compatible controls (rather than try to cobble together a combination of frameworks).

So in my case I should throw away the $1000 html editor software that was bought for this project, and use CKEditor or TinyMCE instead.

Update: I have successfully implements TinyMCE in MVC, and it is working great

Grayson Mitchell
A: 

It's strange you say "...not a good option..." as AJAX and Javascript are not reliant at all on the MVC framework. If you want to continue with this approach, turn off custom errors in the web.config to find out what is going on with this page and update your question.

Web.Config:

<customErrors mode="Off" />
burnt_hand