Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If I debug my project, the page displays well. Then, I copy all of the files of the project into inetpub/wwwroot/ folder. From IIS 7 manager, I open the page on a browser, but receive the such error:
Parser Error Message: Could not load type 'myProj.SiteMaster'.
ASP.NET
<%@ Page Language="C#" MasterPageFile="~/Site.Master"  AutoEventWireup="true" CodeBehind="AddRecord.aspx.cs" Inherits="xxx.AddRecord" %>

How can this be debugged? Thanks.
Posted
Comments
[no name] 7-Aug-15 11:04am    
Have you checked if output dll files are present int BIN folder?
ZurdoDev 7-Aug-15 11:16am    
Your build is incomplete. Do a full build instead of just trying to copy source code.
s yu 7-Aug-15 11:25am    
I did build the project and then copied to the folder. I tried again and still got error. It appears to be that the path (the '~' is filtered out) for the .Master page has the problem when the project is in IIS. Any idea? Thanks.

Parser Error Message: The file '/Site2.Master' does not exist.
Source Error:
Line 1: <%@ Page Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true" CodeBehind="AddRecord.aspx.cs" Inherits="JS_Monument.ASPX.Editing.AddRecord" %>
ZurdoDev 7-Aug-15 11:31am    
~ will take you to the root of the application. So, you may want to look at how you configured it in IIS.
s yu 7-Aug-15 11:53am    
I changed to
MasterPageFile="../../Site2.Master"
which also works in my local debugging. However, once it is published, gets:
Parser Error Message: Could not load type 'JS_Monument.Site2'.
Wish you can provide additional advisory. Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900