cant find master file

IN asp.net

I have created a virtual dir on my host and my website project cant find the masterfile which is in the same dir as the home.aspx file.

<%@ Page Language="vb" MasterPageFile="~/MasterPage2.master" AutoEventWireup="false" CodeBehind="~/home.aspx.vb" Inherits="mbk.home" %>


>>The file '/mbk/MasterPage2.master' does not exist. but it does exist???????



jagguyAsked:
Who is Participating?
 
SAMIR BHOGAYTAFreelancer and IT ConsultantCommented:
Hi, you have to put code like this.

<%@ Page Language="vb" MasterPageFile="~/Home/MasterPage2.master" AutoEventWireup="false" CodeBehind="~/home.aspx.vb" Inherits="mbk.home" %>
0
 
jagguyAuthor Commented:
ok now i can get it to work by getting rid of path references like "
~/ mydir/myfile"

but it doesnt load the code behind when i take out  inherits tag as
suggested. if i leave it in i get an error?
Inherits="mbk.thread"

on my PC i need the inherits tag
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
jagguyAuthor Commented:
the clicks dont work and the code behind doesnt seem to work
http://www.mymrt.net/mbk/mbk/home.aspx
0
 
meispiscesCommented:
what is the error that you are getting?
0
 
jagguyAuthor Commented:
no error (click the link above)
it isnt running the code behind files as i was told by the host to omit the inherits tag in the aspx file to stop an error.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.