Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Could not load type 'SafariTest2017.TestPage2'

$
0
0

I am using Visual Studio 2017 to create a web site and get the above error on new pages only. The pages that were included (default, About & Contact) load as expected, but any page I create get the same error.

I only get the error on the remote host, they load fine in the local test host.

I am using the publish upload function.

I am an occasional user and have no idea where to look.  It’s probably a simple setting I have missed. 

What other information can I provide?

Test Page 2 will not load

<%@ Page Title="Test Page 2" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TestPage2.aspx.cs" Inherits="SafariTest2017.TestPage2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
Test Page 2
</asp:Content>

The pages that were included load fine, like the Default page below.

The Default page has not problem.

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SafariTest2017._Default" %>

Thanks in advance.

John


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>