Error: "File / MasterPages / MainMaster.master" does not exist. (Yes, this file exists!)

I just got a new desktop computer with Windows 7 Pro as the operating system. I installed Visual Studio 2008 on this new computer and tried to open a previously existing ASP.NET 3.5 solution that displayed fine on my previous computer (this previous computer used the Windows XP operating system, IIS6 browser, and IE7). However, in Windows7 / IE8 Im gets the following error:

Server error in application "/".


Parser Error: An error occurred while parsing the resource required to service this request. Review the following specific details of the analysis error and modify the source file accordingly.

Parser error message: file '/MasterPages/MainMaster.master' does not exist.

Source Error:

Line 1: <% @ Page language = "C #" AutoEventWireup = "true" CodeFile = "Default.aspx.cs" Inherits = "_ Default" MasterPageFile = "~ / MasterPages / MainMaster.master"%> Line 2:
Line 3: <% @Register TagPrefix = "SBLContent" TagName = "SBLContentBlock" src = "UserControl / content.ascx controls"%>

Source file: /SBLWebSite/default.aspx Line: 1


Version Information: Microsoft.NET Framework Version: 2.0.50727.4952; ASP.NET Version: 2.0.50727.4927

Trust me when I tell you that the file /MasterPages/MainMaster.master file really exists.

, ( 1 ), , , . , Ive , , MasterPages.

, - MasterPages. - , , , default.aspx , ?

!

+5
5

.

IIS7. , , , IIS7 " " "" ( , IIS6). , IIS7, " ". , .

.

+8

:

  • "~" , , , . ( , VS IIS.)

  • , , , . , , , .

+1

"~" ". , - , , , - :" ~/MasterPage/TheMainMasterPage.master " . ".. /MasterPage/TheMainMasterPage.master", .

0

(32-) (64-). , " Parser: " ~/Master.master " "

NB: x86, - : -)

: IIS8 " " β†’ , DefaultAppPool β†’ " " β†’ "" " 32- " "" β†’ ""

-/-

0

enter image description here

-,

<% @ = " =" vb "AutoEventWireup =" false "MasterPageFile = " ~/Site1.Master " CodeBehind =" add_drivers.aspx.vb "Inherits =" au_transport.WebForm1"% >

<% @ = " =" vb "AutoEventWireup =" false "MasterPageFile = " Site1.Master " CodeBehind =" add_drivers.aspx.vb "Inherits =" au_transport.WebForm1"% >

0

All Articles