473,651 Members | 2,546 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>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="<myassemb ly>" publicKeyToken= "<my strong
name>" culture="neutra l" />
<codeBase version="1.0.1. 0" href="<file path>"/>
</dependentAssemb ly>
....
<compilation debug="true" explicit="true" defaultLanguage ="vb">
<assemblies>
<add assembly="<myas sembly>, 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 1053
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******** *************@p 10g2000cwp.goog legroups.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>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="<myassemb ly>" publicKeyToken= "<my strong
name>" culture="neutra l" />
<codeBase version="1.0.1. 0" href="<file path>"/>
</dependentAssemb ly>
...
<compilation debug="true" explicit="true" defaultLanguage ="vb">
<assemblies>
<add assembly="<myas sembly>, 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
1397
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 of the file is like this:
1
2897
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 files. I have no problem using my .vb code behind file for my .aspx pages i just have to say <%@ Page Language="vb" Inherits="myCode" src="index.vb" %> in my aspx file and use Inherits Page in my .vb code behind file and everything is cool ...
1
1932
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 Application. I've finally narrowed the problem down to a security issue: The ASPNET (aspnet_wp) account cannot connect to a Network resource instead of using a local path ie: C:\Inetpub\wwwroot my development site resides on a Network Share...
1
1321
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
1445
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" site. How can I share the template user controls with these "sub-applications"? Example: Root
0
924
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 Codebehind="Global.asax.vb" Inherits="manager.Global" %> the security should be OK. the share have everyone read access.
2
1349
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... everything works fine. Copy the directory over to a network share, set up a virual directory under my localhosts IIS so that it points to that network share and i get an inclusion error: Parser Error Message: Could not load type 'helP.Global'.
5
5088
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 problem we have in user controls how to share them without duplicate the control in each project ....we need to remain the controls in main project and all subproject use them .....what is the avaiable technique to achieve this?
4
1439
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 folder, no matter where i place the bin folder. Nothing is stored on the IIS server, everything is on the network share. When i create an application, i can change the codebehind to src=file.aspx.vb, this finds the vb files. But how do i tell my...
0
8347
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8694
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8457
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8571
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6157
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1585
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.