showing parser error while deplying website on server (below are more details)
- I have designed a website using a master page named WMDCMaster.master in Expression Web 3. It Is showing me the parser error while putting it on the server (error: The 'masterpagefile' attribute is not supported by the 'page' directive. ). Moreover, it also requires web.config file which is not available to the root directiry in my website. It will be great if someone can get me the code required to create put in the web.config.
I really appreciate your help in advance
Error code:
1)
Server Error in '/' Application.
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 remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
2)
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The 'masterpagefile' attribute is not supported by the 'page' directive.
Source Error:Line 1: <%@ Page language="C#" masterpagefile="WMDCMaster.master" title="Visit Us" %>Line 2: <asp:Content id="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">Line 3:
Source File: c:\inetpub\wwwroot\Clients\WMDC\ver2\Home.aspx Line: 1
Version Information: Microsoft .NET Framework Version:1.1.4322.2443; ASP.NET Version:1.1.4322.2407
Please help me by sending some solution
Thanks
Abhinav
Answers
"Microsoft .NET Framework Version:1.1.4322.2443; ASP.NET Version:1.1.4322.2407"
Your hosting account is set for Asp.net 1, not 2. It doesn't support master pages.- Marked As Answer byAbhinavsingh Friday, November 06, 2009 1:01 AM
All Replies
"Microsoft .NET Framework Version:1.1.4322.2443; ASP.NET Version:1.1.4322.2407"
Your hosting account is set for Asp.net 1, not 2. It doesn't support master pages.- Marked As Answer byAbhinavsingh Friday, November 06, 2009 1:01 AM
- Thanks for quick reply
But How can we fix that hosting account. Ask your host. That's not an EW issue.
- Abhinav,
"Source File: c:\inetpub\wwwroot\Clients\WMDC\ver2\Home.aspx "
It appears that you are attempting to run your page on your local computer using IIS. You will need to access the IIS snap-in and then configure it to use Asp.net Framework 2.0.
Cheers,
-Preston
Columbia, CA. USA The Gilded Moon-Sierra Nevada Photography - Preston,
That same message can appear on a hosted site. The C drive referenced would be that on the server.
MS MVP Expression Tutorials & Help http://by-expression.com and online instructor led Expression Classes - "The C drive referenced would be that on the server."
True enough, Cheryl. Thanks.
-Preston
Columbia, CA. USA The Gilded Moon-Sierra Nevada Photography

