Solved

cant find master file

Posted on 2011-02-11
6
310 Views
Last Modified: 2012-05-11
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???????



0
Comment
Question by:jagguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 9

Expert Comment

by:s_chilkury
ID: 34877293
0
 

Author Comment

by:jagguy
ID: 34877319
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
 

Author Comment

by:jagguy
ID: 34877334
the clicks dont work and the code behind doesnt seem to work
http://www.mymrt.net/mbk/mbk/home.aspx
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Expert Comment

by:meispisces
ID: 34878091
what is the error that you are getting?
0
 

Author Comment

by:jagguy
ID: 34878317
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
 
LVL 11

Accepted Solution

by:
SAMIR BHOGAYTA earned 500 total points
ID: 34887412
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question