473,322 Members | 1,610 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.

Q: Possible to change ASP.NET's page compilation behavior?

I was wondering whether it was possible to change the default ASP.NET
compilation behavior.
I know that there is <compilation> element in the config where you can
specify quite a few things including the compiler options, assemblies to
link, etc. However, I can't seem to find a way to have the compiler add/use
certain path to locate the dlls.

I tried setting compilerOptions attribute of the <compiler> element
(compilerOptions="/lib:c:\sompath") but that doesn't seem to work either.
Having the <probing> element specify where to find assemblies at runtime is
very nice. I wish there was a similar facility for specifying locations to
search for during compile time.

Does anyone know of a way to do this?
Thanks
Nov 18 '05 #1
2 1380
Hi,
I think you after <assemblies> tag inside compilation.
http://msdn.microsoft.com/library/de.../en-us/cpgenre
f/html/gngrfassemblies.asp

Out of curiosity i'll be happy to hear way you need to use this tag.
Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2
Hi Natty,

Thanks for the response. However, I already looked into the <assemblies>
element and I don't think it's going to work.
To satisfy your curiosity, this is what I am trying to do.

In my ASP.NET application, I have a bunch of subfolders that basically
represent different modules/add-ons. These folders are underneath a common
folder that contains resources and assemblies that they all use. And
finally the common folder is located in the application root. Normally, all
assemblies will be located in the application bin folder. I am trying,
however, to place assemblies in different place under the application root.
My common assemblies will be in the common folder's bin folder and each
module specific assemblies under their own bin folder.

I can achieve this by using <probing> element but the <probing> element only
works during runtime. At compile time, ASP.NET looks only in the
application bin folder for its references, namely the dlls that contain
codebehind classes for the pages. <assemblies> doesn't seem like it's going
to work because you can only specify the assembly name or *, which would
look under application bin folder anyway.

So if you know of a way to achieve what I am trying to, please don't
hesistate to let me know.
Thanks much.

Jiho

"Natty Gur" <na***@dao2com.com> wrote in message
news:ue**************@TK2MSFTNGP12.phx.gbl...
Hi,
I think you after <assemblies> tag inside compilation.
http://msdn.microsoft.com/library/de...assemblies.asp
Out of curiosity i'll be happy to hear way you need to use this tag.
Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #3

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

Similar topics

0
by: Horia Tudosie | last post by:
Using Visual Studio 2003 This is to report a series of bugs regarding the FlagsAttribute and (independently) the usage of interfaces in Web applications. Let’s declare xColors type like: ...
6
by: Joachim | last post by:
I made some project changes (which seems it doesn't help if I undo) which have created compilation error: " Server Error in '/PCSWebApp1' Application....
1
by: Lauchlan M | last post by:
Hi. I have an ASP.net project that works fine. I copied it to another project using the following steps: << (i) create a new VS.NET ASP.NET project.
2
by: Joel D. Kraft | last post by:
I've been very happy with the performance and new features of my site since we converted to ASP.NET 2.0 beta 2. I have noticed a couple of interesting problems, though, which I am trying to...
10
by: musosdev | last post by:
I've got a function that needs to work slightly differently on the development server from the production server, but of course I don't want to be changing code just before compiling a release...
7
by: ivo | last post by:
Hi everyone I am having trouble with deploying VS 2005 Express Edition web app to real server on the net. Since VS 2005 ExpressEdition is free - is it for that reason unpossible to do...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
0
by: Mike Hofer | last post by:
I am being plagued by a recurring issue in Visual Studio .NET 2003 (.NET Framework 1.1). I'm developing on XP SP2, under IIS 5.1. Here's what's happening. I'll be designing a Web Form and...
22
by: Scott M. | last post by:
I've asked this before, but not gotten any clear answers, so I'd figure I'd try again. I am an experienced ASP .NET 1.1 developer and I understand the differences between an ASP .NET 2.0 "Web...
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: 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)...
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
1
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
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.