Solved

cant find master file

Posted on 2011-02-11
6
307 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now