CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 10/20/2006 8:30:00 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 69 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
CMancini
Asp.Net User
VirtualPathProvider and MasterPages10/20/2006 8:30:00 PM

0/0

I am creating a Proof-of-concept for Virtual Path Providers.

Basically what I am doing, is dynamically creating an .aspx page via XML/XSL and streaming it back into the ASP.Net pipeline using a VirtualPathProvider.

When dynaimcally creating an .aspx page (without a master page) it works without issues.  However when I have the page use a Master File, it no longer works.

Here is the .master/.aspx files produced from the XML/XSL:

<%@ Master Language="C#" %><script runat="server"></script>
<html >
  <body>
    <form runat="server" ID="form1">
      <div>
        <asp:ContentPlaceHolder runat="server" ID="Heading" />
        <asp:ContentPlaceHolder runat="server" ID="Body" />
      </div>
    </form>
  </body>
</html>
<%@ Page Language="C#" MasterPageFile="/VPPPOC/VPP/MasterPage.master" %><script runat="server">
  </script><asp:Content runat="server" ID="Content1" ContentPlaceHolderID="Body" >
  <asp:Label runat="server" ID="Label1" text="Overridden Body Placeholder" />
</asp:Content
When serving up the file, I get the following error in the browser:
 
Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS0006: Metadata file 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\vpppoc\7db620a7\d877d3d7\App_Web_masterpage.master.b14aa714.r_uzicsh.dll' could not be found
 
The .aspx/.master output above is directly from the VirtualPathProvider.  (I write the output to a test output file).  Therefore I know that both of the files are being served by my VirtualPathProvider.  Does anybody have any ideas as to why this is happening?
Thanks in Advance...
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Microsoft SharePoint 2007 im Einsatz: Eine Plattform für Business Intelligence und Zusammenarbeit im Unternehmen Authors: Torsten Mollien, Thomas Hauser, Dieter L. Scharnagl, Pages: 640, Published: 2008
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006

Web:
VirtualPathProvider Masterpage and Themes - ASP.NET Forums Can I do this with VirtualPathProvider. If so can someone help with how to set it up and configure it. Is there a downloadable example on ...
VirtualPathProvider and MasterPages - ASP.NET Forums VirtualPathProvider and MasterPages. Last post 10-20-2006 4:30 PM by CMancini. 0 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Jon Gallant's Blog : Embedded MasterPage with VirtualPathProvider ... Mar 27, 2007 ... Piyush Shah , a dev on my team, developed a way to embed MasterPages in assemblies using VirtualPathProvider and Resource files.
Sharing Master Pages in Visual Studio Create a VirtualPathProvider class and implement all the required methods to handle the master page file requests. Register the virtual path provider to let ...
ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps Apr 11, 2006 ... With the VirtualPathProvider, a set of master pages could live in database tables that all applications use. For an excellent article on the ...
JoeAudette.com - Overriding the location for App_Themes So in my case I'm not using VirtualPathProvider for Master Pages, only for themes. I would think that using VPP would be the way to make external ...
Piyush Shah's Blog You can embed the Master Page as a Resource in your Dll and use VirtualPathProvider mechanism to call the Resource. Read More... Posted: Friday, March 09, ...
Create a Feature: Master Pages for Site Collections Create a Feature: Add Custom Master Pages to your Site Collections ...... possibly something to do with caching or VirtualPathProvider The workaround is to ...
VirtualPathProvider In Precompiled Web Sites » Coskun SUNALI ... VirtualPathProvider class located in System.Web assembly. .... Works great - I have to wrap master pages in a dll for multiple webapps to use, ...
asp.net help: Sharing Master Pages in Visual Studio NET version 2.0 Web application, the developer must: Create a VirtualPathProvider class and implement all the required methods to handle the master page ...




Search This Site:










issecureconnection problem

quotation marks

using app.config with windows service

use a user control function

i want build a crm system with asp.net?but i have many problem !!!

webclient class question

regular expression problem

pretty print code behind files (formatting)?

new user- how to set the name for dropdownlist box

open excel file

compilation defaultlanguage="vb" debug="true" error

programming newbie-need help making ordering/database website in visual web developer

email form in flash via asp.net

make a preview page

end a session/process

rectangle text box

text that will appear on a hyperlink

speed issues

convert from beta1 to beta2, how can i change provider in administration tools

c# web application

application on start and session on start

number of items in dropdownlist

sqldatareader

1st day

creating a simple blog?

another defaultbutton question

how can we get new line after 50 chrs...

mail can not be sent

browse for folder list

open from web

  Privacy | Contact Us
All Times Are GMT