473,322 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Setting a WebForm (.aspx and source file) as an assembly Embedded Resource

Hello All,

My problem is as follows:
I have an assembly which holds a number of WebForms.
In order to use these WebForms in my WebApplication i
have to extract them out of the assembly (using
Reflection) into a temporary virtual directory (at
runtime).
I was able to set the .aspx as an Embedded Resource but i
didn't find out how to set the code-behind source file
and the .resx file as so.

I know i can copy the WebForms manually to my WebApp but
i don't want to because it would cause cause
synchronization problems during development, and a
deployment overhead.
I also know that setting a code file as an Embbeded
Resource could cause it not to compile (??), so maybe
it's impossible...

I was wondering if there is a solution to my problem ?

Thanks.

Nov 18 '05 #1
1 1677
How is your assembly containing the actual .aspx files? It doesn't. Your
assembly is comprised of all the compiled code you've written, not your
actual .aspx files.

You need to deploy not only the assembly to the production environment, but
also the actual .aspx pages since these are the pages that will be requested
by the client. If the pages aren't there, the client will receive a 404
Page Not Found error.

Essentially, your .aspx files ARE you web pages. Can't have a web site
without web pages.
"LidorP" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
Hello All,

My problem is as follows:
I have an assembly which holds a number of WebForms.
In order to use these WebForms in my WebApplication i
have to extract them out of the assembly (using
Reflection) into a temporary virtual directory (at
runtime).
I was able to set the .aspx as an Embedded Resource but i
didn't find out how to set the code-behind source file
and the .resx file as so.

I know i can copy the WebForms manually to my WebApp but
i don't want to because it would cause cause
synchronization problems during development, and a
deployment overhead.
I also know that setting a code file as an Embbeded
Resource could cause it not to compile (??), so maybe
it's impossible...

I was wondering if there is a solution to my problem ?

Thanks.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Leonardo D'Ippolito | last post by:
Hello sirs, I have a project for a .DLL in .NET that has an XML file as embedded resource. Is it possible to update/substitute this embedded resource in the DLL without having to re-compile the...
1
by: Cindy Liu | last post by:
Hi, I have a VS.Net project that has a resource file set as embedded resource. To compile the project via VS, I have no problem. But our build system uses compiler command, not VS.Net. How to...
1
by: james | last post by:
What class / method should I be using to get the full path to an embedded resource ? In my case I have an .xml file that my app uses, it is set as embedded resource, and I have a control that...
3
by: Ron Vecchi | last post by:
I have a text file(.js) that holds a buch of java script code that is rendered in some web controls all part of a larger webcontrol library. The file is rather large. Would embedding this...
7
by: Christofer Dutz | last post by:
Hi, I am trying to read a XML-File which I marked as embedded resource from within the code of my DLL. Unfortunately it doesn't work. On my search for the error I inserted some code for...
1
by: Dirc Khan-Evans | last post by:
I am trying to localise my app using embedded resource and sattellite assemblies. I can get it working using the following if I have a resource file with the same name as the class: ...
0
by: WRH | last post by:
Hello I have a C# app with a small separate .chm help file. I would like to declare this as an embedded resource. Is there a way to make the helpprovider use this resource without extracting and...
8
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to...
1
by: guizawa | last post by:
Hi all, I am experimenting Walter Wang's code to try to load .swf file from embedded resource to webbrowser in window form but get error: "An object reference is required for the non-static...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.