0

So I am having some difficulty with Visual Studio. My goal is to set up a master page and have content pages to make sure that the layout is consistent throughout the site.

The Problem: When I run my file I have this error come up: enter image description here

Steps I've Taken so Far:

Website(in the solution explorer)>Add New Item> Choose Web Form> Name it "homePage"> Click choose MasterPage File and choose my Master Page.

I followed the steps in this forum post and I am still receiving the Error! I have looked at the code-behind files ad the Inherits match up I am incredibly stuck on this one guys. Can anyone help me out?

Erik Funkenbusch
  • 92,674
  • 28
  • 195
  • 291
Cakewok
  • 15
  • 5
  • Which project template are you using? Also, Web Forms is stone-age technology. Unless you're actually doing forms on the web, be sure to look into more modern approaches. – bzlm Nov 08 '14 at 19:41
  • show your .aspx page header.. also what is the error that you are getting..? – MethodMan Nov 08 '14 at 19:43
  • @DJKRAZE, the actual error is clearly visible in the provided screenshot. Which error are you referring to? – bzlm Nov 08 '14 at 19:46

1 Answers1

2

Your error message tells you what the problem is.

Make sure that the class defined in the code file matches the 'inherits' attribute.

Look in your.aspx file. There should be an @Page directive with an inherits attribute. This attribute should be set to your class name, and this is case sensitive.

Erik Funkenbusch
  • 92,674
  • 28
  • 195
  • 291