Obecnie wdrażam moją witrynę na lazur. Jeden z moich stron działa ok, ale mam inną stronę, która używa strony wzorcowej, która nie ładuje, bo otrzymuję ten błąd:asp.net deploy - plik Main.Master.cs nie został znaleziony
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 file '/Main.master.cs' does not exist.
Source Error:
Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="Main.master.cs" Inherits="ThirdEye.Main" %>
Line 2:
Line 3: <%@ Register Src="~/controls/Footer.ascx" TagName="Footer" TagPrefix="ThirdEye" %>
Source File: /Main.master Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
nie mogę dowiedzieć się, co mam racji. Przesłałem plik wykonywalny, strony znajdują się w tym samym katalogu katalogu bin. Czy myślisz, że muszę dodać okres lub tyldę przed atrybutem CodeFile lub atrybutem Inherits?
Używam .net framework v4. Nie mogę używać 3.5 i nie uważam, że to powinno być problemem.
Main.Master
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Main.master.cs" Inherits="Main" %>
Main.Master.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using ThirdEye;
public partial class Main : System.Web.UI.MasterPage
{....
Próbowałem tego, ale niestety to mi nie pomogło. Skończyłem z tym samym wynikiem. Jestem bardzo zdezorientowany :( – test