473,503 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp.net Share codebehind

HI all,

I have multiple websites that need to use one codebehind that why i
compiled the codebehind as class.

i was planed to put the dll file in one of the filesystem directory and
declare it in my machine.config :
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="<myassembly>" publicKeyToken="<my strong
name>" culture="neutral" />
<codeBase version="1.0.1.0" href="<file path>"/>
</dependentAssembly>
....
<compilation debug="true" explicit="true" defaultLanguage="vb">
<assemblies>
<add assembly="<myassembly>, Version=1.0.1.0, Culture=neutral,
PublicKeyToken=<my strong name>"/>

is it the best option?
i didnt want to put in in the GAC cause the GAC is fully trusted

Thanks in advance

Mar 2 '06 #1
1 1049
For it to be recognized as a code-behind DLL, it has to be located in the
bin subdirectory of your web application.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"deborder" <de******@gmail.com> wrote in message
news:11*********************@p10g2000cwp.googlegro ups.com...
HI all,

I have multiple websites that need to use one codebehind that why i
compiled the codebehind as class.

i was planed to put the dll file in one of the filesystem directory and
declare it in my machine.config :
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="<myassembly>" publicKeyToken="<my strong
name>" culture="neutral" />
<codeBase version="1.0.1.0" href="<file path>"/>
</dependentAssembly>
...
<compilation debug="true" explicit="true" defaultLanguage="vb">
<assemblies>
<add assembly="<myassembly>, Version=1.0.1.0, Culture=neutral,
PublicKeyToken=<my strong name>"/>

is it the best option?
i didnt want to put in in the GAC cause the GAC is fully trusted

Thanks in advance

Mar 8 '06 #2

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

Similar topics

0
1394
by: Tariq Ahmad | last post by:
hi, i have a web user control which i share to different projects via Visual Source Safe. problem i have is that each project wants to change the inherits bit in the ascx file: so one copy...
1
2886
by: Michael Evanchik | last post by:
Tying not to spaghetti code which seems to be easy to do in .net, im trying to do my main .net html in index.aspx, use repeated .net html in an .ascx files and all code im doing in .vb code behind...
1
1924
by: CES | last post by:
All, If anyone has been following my trials over the last week see(Setting up a Web Application on IIS 5.1 and ASP.Net Security Problems). I'm having a problem running a Asp.Net Web...
1
1317
by: mg | last post by:
I took the following steps to share a user control across applications but was unsuccessful. WebUserControl: <%@ Control Language="c#" AutoEventWireup="false" ClassName="WebUserControl1" %>...
3
1439
by: Chad A. Beckner | last post by:
Hey everyone, Ok. I have a "template and skin" setup on the beginnings of a new portal site. In this site, there are going to be many applications, which will be store underneath the "master"...
0
916
by: z. f. | last post by:
Hi, trying to use web application located on other computer to run from the local computer IIS, i have a problem from global.asax that it can't find the DLL. Line 1: <%@ Application...
2
1338
by: bryanrite | last post by:
I have been desperately trying to get this to work. I create a C# Web App on the localhost (the only place i'm allowed to put it). Put an arbitrary button or something in, compile it, run it......
5
5080
by: Raed Sawalha | last post by:
We have a web application with at least 570 Pages and 10's of user controls ....all under project name LinkDevProject ...recently we start separating the project into multiple projects ....the...
4
1436
by: | last post by:
Hi, Im running IIS and all my data is stored on a network share e.g \\10.0.0.111\domain.com\main The problem i'm facing is that i dont know how to point my aspx.vb files to any dlls in the bin...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.