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

Reference a dll in a separate web application/directory

i have a visual studio website that i am integrating with community
server, a third party software for creating communities. To
paraphrase, i am trying to have users that log in to my site
automatically log in to the community server site (which is its own web
application, with its own dlls and web.config files, and in a separate
directory etc). To do this, i need to access the classes located in
the community server dll...

Sounds easy enough - I referenced the dll's located in that directory
through visual studio, and it copies the dll over to the website's bin
direcotry. However, i find then that there are multiple dependencies
on other dll's, as well web.config files, and directory structures that
the dll expects. If i just keep referencing dll's and copying files
over to my website project, the project will be convuluted with a bunch
of "crap." I'd like to keep my project separate from the community
server project.

So, I'd like to be able to reference the dll directly in the other web
application. I noticed that in visual studio projects, you can select
something like "keep local" for the dll's, but that option is not
available in the website project. Also, as those dll's will be loaded
into memory, i don't want to create another copy of the same dll within
my project. I just want to use "their" copy of the dll. This way, the
dll also knows where to find the web.config files, etc that it depends
on. How do i accomplish this?

Sorry, not sure if i clearly stated what i'm trying to do. If not, i
can clarify further. Thanks...

Jul 8 '06 #1
5 1924
benliu,

See if this information helps:

http://www.asp101.com/articles/jayra...te/default.asp

Regards,

--
S. Justin Gengo
Web Developer / Programmer

Free code library:
http://www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"benliu" <be****@iasportsmedia.comwrote in message
news:11**********************@s53g2000cws.googlegr oups.com...
>i have a visual studio website that i am integrating with community
server, a third party software for creating communities. To
paraphrase, i am trying to have users that log in to my site
automatically log in to the community server site (which is its own web
application, with its own dlls and web.config files, and in a separate
directory etc). To do this, i need to access the classes located in
the community server dll...

Sounds easy enough - I referenced the dll's located in that directory
through visual studio, and it copies the dll over to the website's bin
direcotry. However, i find then that there are multiple dependencies
on other dll's, as well web.config files, and directory structures that
the dll expects. If i just keep referencing dll's and copying files
over to my website project, the project will be convuluted with a bunch
of "crap." I'd like to keep my project separate from the community
server project.

So, I'd like to be able to reference the dll directly in the other web
application. I noticed that in visual studio projects, you can select
something like "keep local" for the dll's, but that option is not
available in the website project. Also, as those dll's will be loaded
into memory, i don't want to create another copy of the same dll within
my project. I just want to use "their" copy of the dll. This way, the
dll also knows where to find the web.config files, etc that it depends
on. How do i accomplish this?

Sorry, not sure if i clearly stated what i'm trying to do. If not, i
can clarify further. Thanks...

Jul 8 '06 #2
Thanks, that might work, although still will take a bit of work. Is
there really no way to use a dll in a different application??

S. Justin Gengo wrote:
benliu,

See if this information helps:

http://www.asp101.com/articles/jayra...te/default.asp

Regards,

--
S. Justin Gengo
Web Developer / Programmer

Free code library:
http://www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"benliu" <be****@iasportsmedia.comwrote in message
news:11**********************@s53g2000cws.googlegr oups.com...
i have a visual studio website that i am integrating with community
server, a third party software for creating communities. To
paraphrase, i am trying to have users that log in to my site
automatically log in to the community server site (which is its own web
application, with its own dlls and web.config files, and in a separate
directory etc). To do this, i need to access the classes located in
the community server dll...

Sounds easy enough - I referenced the dll's located in that directory
through visual studio, and it copies the dll over to the website's bin
direcotry. However, i find then that there are multiple dependencies
on other dll's, as well web.config files, and directory structures that
the dll expects. If i just keep referencing dll's and copying files
over to my website project, the project will be convuluted with a bunch
of "crap." I'd like to keep my project separate from the community
server project.

So, I'd like to be able to reference the dll directly in the other web
application. I noticed that in visual studio projects, you can select
something like "keep local" for the dll's, but that option is not
available in the website project. Also, as those dll's will be loaded
into memory, i don't want to create another copy of the same dll within
my project. I just want to use "their" copy of the dll. This way, the
dll also knows where to find the web.config files, etc that it depends
on. How do i accomplish this?

Sorry, not sure if i clearly stated what i'm trying to do. If not, i
can clarify further. Thanks...
Jul 10 '06 #3
V
Hi,

I am not sure if this helps, but this is not a good design to directly
access the DLL's of the community server application.

If possible, you should maybe make a web service in the community
server app and use that web service to log in from your app. Or you
could host the DLLs via remoting and then call them from your app.

Of course, for both of these, I am thinking that you can make a change
to the community server app.

If not, then my suggestions won't help a lot.

- Vaibhav

benliu wrote:
i have a visual studio website that i am integrating with community
server, a third party software for creating communities. To
paraphrase, i am trying to have users that log in to my site
automatically log in to the community server site (which is its own web
application, with its own dlls and web.config files, and in a separate
directory etc). To do this, i need to access the classes located in
the community server dll...

Sounds easy enough - I referenced the dll's located in that directory
through visual studio, and it copies the dll over to the website's bin
direcotry. However, i find then that there are multiple dependencies
on other dll's, as well web.config files, and directory structures that
the dll expects. If i just keep referencing dll's and copying files
over to my website project, the project will be convuluted with a bunch
of "crap." I'd like to keep my project separate from the community
server project.

So, I'd like to be able to reference the dll directly in the other web
application. I noticed that in visual studio projects, you can select
something like "keep local" for the dll's, but that option is not
available in the website project. Also, as those dll's will be loaded
into memory, i don't want to create another copy of the same dll within
my project. I just want to use "their" copy of the dll. This way, the
dll also knows where to find the web.config files, etc that it depends
on. How do i accomplish this?

Sorry, not sure if i clearly stated what i'm trying to do. If not, i
can clarify further. Thanks...
Jul 10 '06 #4
Vaibhav,

Thanks for the suggestions. Why is it bad design to directly access
the dll's?

And yes, i can modify the code in the community server app, so i can
write a web service - i had not thought of that and that should work
great - i'm not familiar with remoting? Can you elaborate a bit on
that method?

Thanks much,

Ben

V wrote:
Hi,

I am not sure if this helps, but this is not a good design to directly
access the DLL's of the community server application.

If possible, you should maybe make a web service in the community
server app and use that web service to log in from your app. Or you
could host the DLLs via remoting and then call them from your app.

Of course, for both of these, I am thinking that you can make a change
to the community server app.

If not, then my suggestions won't help a lot.

- Vaibhav

benliu wrote:
i have a visual studio website that i am integrating with community
server, a third party software for creating communities. To
paraphrase, i am trying to have users that log in to my site
automatically log in to the community server site (which is its own web
application, with its own dlls and web.config files, and in a separate
directory etc). To do this, i need to access the classes located in
the community server dll...

Sounds easy enough - I referenced the dll's located in that directory
through visual studio, and it copies the dll over to the website's bin
direcotry. However, i find then that there are multiple dependencies
on other dll's, as well web.config files, and directory structures that
the dll expects. If i just keep referencing dll's and copying files
over to my website project, the project will be convuluted with a bunch
of "crap." I'd like to keep my project separate from the community
server project.

So, I'd like to be able to reference the dll directly in the other web
application. I noticed that in visual studio projects, you can select
something like "keep local" for the dll's, but that option is not
available in the website project. Also, as those dll's will be loaded
into memory, i don't want to create another copy of the same dll within
my project. I just want to use "their" copy of the dll. This way, the
dll also knows where to find the web.config files, etc that it depends
on. How do i accomplish this?

Sorry, not sure if i clearly stated what i'm trying to do. If not, i
can clarify further. Thanks...
Jul 10 '06 #5
V
Ben,

The reason I say it is bad design is simply because your community
server dlls were probably not designed (an assumption on my part), to
be accessed as a class library by an external app. Hence, I don't think
that it is a good design to actually do so.

I think that when an application (community server) wants to expose an
interface to another application, it should be through a well defined
API. In your case, you are treating the dlls of the community server as
if they were part of your own application.

I would say it was still better, if the dlls that you are referencing
were considered as a third component and were made into a shared
library and published in the GAC, from where both the community server
and your app should reference them.

I hope you understand what i am saying, because i realize that what i
wrote above is not very crisp.

As for Remoting, it is a mechanism through which you can share objects
over a network. it is hard for me to explain but this link offers a
quick intro:
http://samples.gotdotnet.com/quickst...nfeatures.aspx

Let me know if I can help out in any other way.

- Vaibhav
benliu wrote:
Vaibhav,

Thanks for the suggestions. Why is it bad design to directly access
the dll's?

And yes, i can modify the code in the community server app, so i can
write a web service - i had not thought of that and that should work
great - i'm not familiar with remoting? Can you elaborate a bit on
that method?

Thanks much,

Ben

V wrote:
Hi,

I am not sure if this helps, but this is not a good design to directly
access the DLL's of the community server application.

If possible, you should maybe make a web service in the community
server app and use that web service to log in from your app. Or you
could host the DLLs via remoting and then call them from your app.

Of course, for both of these, I am thinking that you can make a change
to the community server app.

If not, then my suggestions won't help a lot.

- Vaibhav

benliu wrote:
i have a visual studio website that i am integrating with community
server, a third party software for creating communities. To
paraphrase, i am trying to have users that log in to my site
automatically log in to the community server site (which is its own web
application, with its own dlls and web.config files, and in a separate
directory etc). To do this, i need to access the classes located in
the community server dll...
>
Sounds easy enough - I referenced the dll's located in that directory
through visual studio, and it copies the dll over to the website's bin
direcotry. However, i find then that there are multiple dependencies
on other dll's, as well web.config files, and directory structures that
the dll expects. If i just keep referencing dll's and copying files
over to my website project, the project will be convuluted with a bunch
of "crap." I'd like to keep my project separate from the community
server project.
>
So, I'd like to be able to reference the dll directly in the other web
application. I noticed that in visual studio projects, you can select
something like "keep local" for the dll's, but that option is not
available in the website project. Also, as those dll's will be loaded
into memory, i don't want to create another copy of the same dll within
my project. I just want to use "their" copy of the dll. This way, the
dll also knows where to find the web.config files, etc that it depends
on. How do i accomplish this?
>
Sorry, not sure if i clearly stated what i'm trying to do. If not, i
can clarify further. Thanks...
Jul 11 '06 #6

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

Similar topics

2
by: JohnD | last post by:
I am using XP Pro and when I try and run an ASP.NET page on my own server I recieve the following error messag Server cannot access application directory ..(web directory here)... The directory...
8
by: nickdu | last post by:
I'm trying to isolate "applications" into their own application domain within a single process. I've quoted applications because it's a logical representation of an application. Basically it...
2
by: EO | last post by:
I'm using an ISP with poor tech support. I apologize if this is more of an ISP question, but it is an asp.net question as well. I have a root domain pointing to a root level folder. There are...
5
by: rdcpro | last post by:
In reading MSDN docs on creating custom Configuration sections, I found this page: ...
0
by: M | last post by:
I installed the Visual Basic .NET Resource Kit. When I click 'Visual Basic .NET Resource Kit' the page at 'http://localhost/VB.NETResourceKit/Welcome.aspx' show: Server Error in...
1
by: lanem | last post by:
I want to add a Temp folder to my application folder in Program Files/whatever when I install my windows app on a client machine. I've got everything else working with the install, but now I want...
0
by: Chris McCandless | last post by:
Hi, I am not sure I will be able to explain the problem I am having, but I will do my best. I have developed an ASP.NET 1.1 application for a client in VB. It is a program that contains stock...
2
by: Matthias Wohlmann | last post by:
Hi, I'm getting the following error when trying to start my application using Internet Explorer: "Server cannot access application directory D:\xxx. The directory does not exist or is not...
1
by: rajalingam | last post by:
Server Error in '/library' Application. -------------------------------------------------------------------------------- Server cannot access application directory 'F:\Library Latest Code\'. The...
0
by: codefragment | last post by:
Hi I'm trying to understand this but not doing so well. Evidence links permission sets to code groups. Cdeo Groups gets union'd, security policies get inersected. Given that if I have a...
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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
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,...
0
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...

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.