473,320 Members | 1,961 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,320 software developers and data experts.

Dll's = where?

Hi All

Ok two questions for ya...

1. I am assuming that websites cannot be compiled into dll's...why
would i want to do that? Basically i have a master file that i want to
share with other apps on my corporate intranet for consistent look and
feel. I was pointed in the right direction i.e. make the snk and
register with GAC, make entries in IIS i.e. app folder under your
root....however...how do i register it with the GAC? I have no
assemblies for the website...unless if i am missing something...can
websites be compiled into assemblies?

2. under my app_code folder i have some .cs files...it was my
understanding that these files would be built into one dll...i cannot
find the dll on my hdd...was i supposed to set up something to compile
into a dll explicitly on that app_code folder?

Thanks a lot for your help.

Oh I am using Visual Web Developer 2005 Beta 2

Reeza

Nov 19 '05 #1
6 1097
1. AFAIK you are totally flexible here with 2.0 (from full compilation to
integral on the fly compilation)
for the master file page, IMO you would just have to point the the same file
(depends if you see your intranet as a single app with several" modules" or
are they distinct applications somehwat integrated) ?

2. Compiled code is likely in a "temporary asp.net" directory. Searching by
date should allow to quickly locate this...

--

"reez" <re******@gmail.com> a écrit dans le message de
news:11*********************@g14g2000cwa.googlegro ups.com...
Hi All

Ok two questions for ya...

1. I am assuming that websites cannot be compiled into dll's...why
would i want to do that? Basically i have a master file that i want to
share with other apps on my corporate intranet for consistent look and
feel. I was pointed in the right direction i.e. make the snk and
register with GAC, make entries in IIS i.e. app folder under your
root....however...how do i register it with the GAC? I have no
assemblies for the website...unless if i am missing something...can
websites be compiled into assemblies?

2. under my app_code folder i have some .cs files...it was my
understanding that these files would be built into one dll...i cannot
find the dll on my hdd...was i supposed to set up something to compile
into a dll explicitly on that app_code folder?

Thanks a lot for your help.

Oh I am using Visual Web Developer 2005 Beta 2

Reeza

Nov 19 '05 #2
Hi

Thank you for the response. The intranet is a set of separate
module...so i just wanted to have one project with the template items
and reference that..I am not sure if i can achieve that....aside from
that though i tried placing the master in the root folder and creating
several folders underneath it per module and tried referencing the root
master but i got the following error

"Content controls have to be top-level controls in a content page or a
nested master page that references a master page. "

For the life of me i can't figure out what this means...

Right now i would still like to acheive the "separate" template website
and just reference that dll from my other projects....but if i cannot
do that then is it possible to get past this error when accessing the
root master?

Thanks
Reeza

Nov 19 '05 #3
You can trick ASP.NET into thinking the master pages are located in
your application using a virtual directory as a subfolder of your
website, and pointing the vdir to a physical directory where the
master pages live.

http://blogs.msdn.com/adamga/archive...12/407631.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 3 May 2005 08:02:20 -0700, "reez" <re******@gmail.com> wrote:
Hi

Thank you for the response. The intranet is a set of separate
module...so i just wanted to have one project with the template items
and reference that..I am not sure if i can achieve that....aside from
that though i tried placing the master in the root folder and creating
several folders underneath it per module and tried referencing the root
master but i got the following error

"Content controls have to be top-level controls in a content page or a
nested master page that references a master page. "

For the life of me i can't figure out what this means...

Right now i would still like to acheive the "separate" template website
and just reference that dll from my other projects....but if i cannot
do that then is it possible to get past this error when accessing the
root master?

Thanks
Reeza


Nov 19 '05 #4
Hi Scott

Thanks for the tip but how do i reference the master file from my aspx
file in that case?

MasterPageFile="???"

Do i need to add the SharedMAsters folder to my website or something?
Not sure how to set up the VS.NEt side now....got IIS Set up but it's
not compiling because it can't find the master

Thank you.

Nov 19 '05 #5
> 1. I am assuming that websites cannot be compiled into dll's...why
would i want to do that?
Yes you can. With ASP.NET 2.0 you use aspnet_compile.exe to precompile your
site.
Basically i have a master file that i want to
share with other apps on my corporate intranet for consistent look and
feel.
You'll need to deploy the .master file to every application's directory.
There is a hack where you can map directories into your application directory
to have a common file location, so you'll have to go google around for that.
Sorry I don't have a link off the top of my head.
2. under my app_code folder i have some .cs files...it was my
understanding that these files would be built into one dll...i cannot
find the dll on my hdd...was i supposed to set up something to compile
into a dll explicitly on that app_code folder?


These are compiled into an assembly named __code.dll and it lives nested
under:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temp orary ASP.NET Files\YourAppNameHere

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #6
Thanks all....everything works great now

Nov 19 '05 #7

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

Similar topics

3
by: Matthias Baas | last post by:
Hi, are there any guidelines about what to do if a Windows extension for Python 2.4 requires the C++ runtime (msvcp71.dll)? If I want to distribute a binary installer of an extension that...
24
by: Toby Mathews | last post by:
Hi there, I have recently started having problems compiling multi-project solutions. I have a couple of ASP.Net projects that reference a range of .Net DLLs I have written. For example: ...
2
by: Weston Fryatt | last post by:
(Sorry for spamming multiple groups, But I need a solution to this problem) I think this should be a simple question on Memory Allocation in a managed DLL and passing a memory pointer over to an...
11
by: Vijay Chegu | last post by:
I have built a 64bit ATL COM dll. When i register the dll on IA64 windows Enterprise server 2003, i get following error. DllRegisterServer in mydll.dll failed. Return code was : 0x80020009 ...
13
by: Metallicraft | last post by:
I have a vb6 application. On the main form is a picture box with one or two images and several pieces of text displayed in it. These are created on the fly using gdi32 routines that are all in a...
8
by: WebBuilder451 | last post by:
I have a local serve that holds my source code and i'm using vs2005 for 2.0 to build the site. I'm runingthe site off my local pc (filesystem). I built the site but can't find the dll or the bin...
9
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
Where can I find coredll.dll? I have looked in Program Files\Microsoft Visual Studio 8\VC\ce\Dll\x86 where it is supposed to be but it is not.
1
by: zu1u | last post by:
Maybe this suites better in C++ development corner, i wasn't so sure... I have created a dll to just simply instantiate a FileSystemWatcher. It does work on the computer where i developed the dll....
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.