![]() |
| ASP.Net 2 master page |
|
skysailor
|
Hi,
I am using a trial ASP.Net 2.0 web site. I have created the simplest of pages with a master page. If I copy the site up to the server it runs fine. If I publish it (so the CS files are compiled) then I get an error. Here is the error :- Parser Error Message: Could not load type 'MasterPage'. Source Error: Line 1: <%@ master language="C#" autoeventwireup="true" inherits="MasterPage" %> Line 2: Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> Any ideas what I am doing wrong? Why con't it find the inherits page? Is publishing vs. copying a lot safer? I really don't want anybody to be able to access my source code via the internet. Thanks, Clayton p.s. You can view the page in copy and publish versions here :- http://64633.hostmyapplications.com/test/ http://64633.hostmyapplications.com/test2/ |
||||||||||||
|
|
|||||||||||||
|
tsb5270
|
Did you ever figure this out? I am having the same problem.
|
||||||||||||
|
|
|||||||||||||
|
skysailor
|
No.
I was just using the Copy mode to uploda the web site. Now that isn't even working any more since I instaleld the Release Candidate of VS2005. Now I'm just running locally and waiting till hostmysite go live with the final VS2005 .NET.
|
||||||||||||||
|
|
|||||||||||||||
|
mindwalker
|
I'm having the same problem. If any of you figure it out, please let me know.
|
||||||||||||
|
|
|||||||||||||
|
mindwalker
|
Hey, I figured it out, at least what was causing it for me. I had been posting the files from my Visual Studio web projects folder, instead of posting them from the web application folder. Assuming you are not publishing direct to your remote site from Visual Studio, what you need to do is first publish the site to a directory on your localhost, and then FTP those files from that folder (e.g., e:\inetpub\wwwroot\mywebapp) to your remote web site. If you FTP the files from the Visual Studio web projects folder (e.g., E:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\mywebapp \PrecompiledWeb\mywebapp) instead of from your web application folder then you'll get the "could not load type" error.
|
||||||||||||
|
|
|||||||||||||
| ASP.Net 2 master page |
|
||
|


