Server Error in '/Start_dev' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Master page source files must have a .master file extension.
Source Error:
Line 17: </connectionStrings>
Line 18: <system.web>
Line 19: <pages masterPageFile="~\Default.aspx" />
Line 20: <customErrors mode="Off"/>
Line 21: <compilation targetFramework="4.5" />
Source File: C:\inetpub\VS2012\Start_dev\web.config Line: 19
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
And the original problem is due to that, I need to useContentPlaceHolder
ContentPlaceHolder
Server Error in Application "VS2012/START_DEV"
Internet Information Services 7.5
Error Summary
HTTP Error 404.7 - Not Found
The request filtering module is configured to deny the file extension.
Detailed Error Information
Module RequestFilteringModule
Notification BeginRequest
Handler StaticFile
Error Code 0x00000000
Requested URL http://192.168.168.1:80/Start_dev/Site1.Master
Physical Path C:\inetpub\VS2012\Start_dev\Site1.Master
Logon Method Not yet determined
Logon User Not yet determined
Most likely causes:
Request filtering is configured for the Web server and the file extension for this request is explicitly denied.
Things you can try:
Verify the configuration/system.webServer/security/requestFiltering/fileExtensions settings in applicationhost.config and web.config.
Links and More Information
This is a security feature. Do not change this feature unless the scope of the change is fully understood. If the file extension for the request should be allowed, remove the denied file extension from configuration/system.webServer/security/requestFiltering/fileExtensions.
View more information »
instead you need to browse the content page which is using that Site1.master.
You need give the MasterPage Name in web.config file so that all the content pages will take the master page.
If no content tags the normal web page.
<pages masterPageFile="~/MasterPa
More Info
http://www.c-sharpcorner.com/UploadFile/abhikumarvatsa/creating-master-page-in-Asp-Net-part-5/