473,386 Members | 2,114 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,386 software developers and data experts.

File Link in .NET DLL

Hi All,
I have to avoid cyclic reference in my DLLS. One way is to move the code to
the common DLL. But now since i have written a lot of code, it would take a
whole lot of time to do this. The other way i see is to link file to the DLL.
But i have some doubts about taking this approach.
1. Since all my DLLs are on the same server now, its not a problem but what
if later i try to seperate out this DLLs on different servers for load
balancing. Then this link file will be a problem???
2. Actually what do you exactly mean by linking a file to a DLL. Though its
avoid compilation error but what it actually does????
Please help me on this asap.
Thanks in Advance,
faktujaa

Jul 21 '05 #1
2 1530
If splitting the code into two assemblies is truely beneficial - I recommend
you do the work and properly "refactor" your code.

.... By linking I'm assuming you are talking about al.exe the assemly linker.
Correct?? What you probably read about is called multi-file assembly. Where
you can compile to a module and then link them together. Currently VS.net
(2003 version at least) doesn't have much built-in support for that.

Talking about load balancing. It all depends on how you implement it. You
could get away with something to work using identical assembly on both
machines.

----
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy

"faktujaa" wrote:
Hi All,
I have to avoid cyclic reference in my DLLS. One way is to move the code to
the common DLL. But now since i have written a lot of code, it would take a
whole lot of time to do this. The other way i see is to link file to the DLL.
But i have some doubts about taking this approach.
1. Since all my DLLs are on the same server now, its not a problem but what
if later i try to seperate out this DLLs on different servers for load
balancing. Then this link file will be a problem???
2. Actually what do you exactly mean by linking a file to a DLL. Though its
avoid compilation error but what it actually does????
Please help me on this asap.
Thanks in Advance,
faktujaa

Jul 21 '05 #2
Hi,
Thanks. Im not using this command but linking the file through IDE. We have
this option through Add Existing File to Project by right clicking on it and
then instead of opening file we can link file. The file gets linked to the
project and the project gets compiled with no errors. I would try putting the
DLLS in seperate machines and see it by myself but though of asking someone
who already knows abt this as i have to change a lot of code in order to test
this. btw im using remoting to invoke the components through interfaces. All
the components are currently on the same machine in bin folder of IIS with
web.config file. Components in the same folder are invoked directly and not
via remoting but intend to that later to support load balancing. Hope this
helps you in understanding the problem. Any help is highly appreciated.
Thanks in advance.
faktujaa

"Alex Korchemniy" wrote:
If splitting the code into two assemblies is truely beneficial - I recommend
you do the work and properly "refactor" your code.

... By linking I'm assuming you are talking about al.exe the assemly linker.
Correct?? What you probably read about is called multi-file assembly. Where
you can compile to a module and then link them together. Currently VS.net
(2003 version at least) doesn't have much built-in support for that.

Talking about load balancing. It all depends on how you implement it. You
could get away with something to work using identical assembly on both
machines.

----
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy

"faktujaa" wrote:
Hi All,
I have to avoid cyclic reference in my DLLS. One way is to move the code to
the common DLL. But now since i have written a lot of code, it would take a
whole lot of time to do this. The other way i see is to link file to the DLL.
But i have some doubts about taking this approach.
1. Since all my DLLs are on the same server now, its not a problem but what
if later i try to seperate out this DLLs on different servers for load
balancing. Then this link file will be a problem???
2. Actually what do you exactly mean by linking a file to a DLL. Though its
avoid compilation error but what it actually does????
Please help me on this asap.
Thanks in Advance,
faktujaa

Jul 21 '05 #3

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

Similar topics

18
by: Dino | last post by:
dear all, i've created an application for a customer where the customer can upload ..csv-files into a specified ftp-directory. on the server, a php-script, triggered by a cronjob, reads all the...
6
by: o'seally | last post by:
solaris/linux admins/rookie_developers that battle with this error are probably all frustrated when it happens. i bet you're also somehow frustrated by this seemingly unsolvable error :-) ...take...
1
by: j erickson | last post by:
with the following xsl and xml file, the display of the gif file with the <image/url> tag works. However, the gif file in the <description> tag using the name attribute "src" won't make the correct...
1
by: sparks | last post by:
I have never done this and wanted to ask people who have what is the best way. One person said import it to excel, then import it into access table. but since this will be done a lot, I am...
8
by: Todd Acheson | last post by:
I'm having a small problem with uploading files in ASP.NET. My html page for uploading has something similar to: <form id="Form1" method="post" enctype="multipart/form-data" runat="server">...
4
by: Jim Michaels | last post by:
after a file upload, $_FILES is not populated but $_POST is. what's going on here? $_POST=C $_POST=C $_POST=C $_POST=C:\\www\\jimm\\images\\bg1.jpg $_FILES= $_FILES= $_FILES=
6
by: Ozz | last post by:
Hi there, I have a link on my web page. When clicked, opens up a pdf file that is stored on my server. Every file is specific to a user's user name and I don't want users to see each other's...
6
by: Daniel Padron | last post by:
Ok. Maybe I shouldnt post such basic questions here in such an advanced group but my high school programming teacher wont answer any questions outside of his curriculum :( My goal is create a...
0
ADezii
by: ADezii | last post by:
Rather than using CurrentProject.Connection or entering your own Connection information, ADO supports storing Connection information in an external file called a Data Link File (which normally has a...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I cut and paste the following code from msdn help page which it just introduces view and multiview server controls. Here is what I do: in vs studio 2005, File --New Web Site, it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.