473,395 Members | 1,863 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,395 software developers and data experts.

asp.net dlls called from outside

I have my Classes that I have built in asp.net and the Dlls go into the bin
folder

I need to write a service that will run on the Web service and will access
Sql Server to find clients that have met certain criteria and will send
emails to them. I already have these functions written in my classes in my
Dlls. As a matter of fact, most of the code in the service will be the same
as the asp.net code - without the user interface.

Do I need to make separate Dlls (classes) or can I call the classes that are
in the bin folder?

Thanks,

Tom
Nov 19 '05 #1
9 1157
No worries. Just split out a separate class library project with the
common functionality. Reference it from your web project and from your
second app. They'll grab their own copies of all the right dlls for
their bin directories.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #2
"jasonkester" <ja*********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
No worries. Just split out a separate class library project with the
common functionality. Reference it from your web project and from your
second app. They'll grab their own copies of all the right dlls for
their bin directories.
I don't really have a Project to build my classes. I just build it from DW
and run a make file from web Directory. I then move it to my bin directory.

I am building my Windows Service from VS.Net. When I make a change to the
Dll, will it grab the new copy and move it to it's directory?

I use one Namespace for all my functions (called MyFunctions) and move each
DLL into the Bin folder. Can I still use the same namespace or do I have to
have a different one for Service?

Thanks,

Tom
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #3
Even better. You're already exporting a class library. Just drop a
copy of your dll into the bin directory for your new app, and you
should have access to the MyFunctions namespace.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #4
"jasonkester" <ja*********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Even better. You're already exporting a class library. Just drop a
copy of your dll into the bin directory for your new app, and you
should have access to the MyFunctions namespace.
So everytime I make a change, I would move the Dll to both bin directories?

Thanks,

Tom
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #5
Yep. If you don't want to use projects or make files, you'll have to
do all your .dll moving by hand.

Any particular reason you're shying away from using an IDE for all
this? Seems like you're creating a lot of extra work for yourself.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #6
"jasonkester" <ja*********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Yep. If you don't want to use projects or make files, you'll have to
do all your .dll moving by hand.

Any particular reason you're shying away from using an IDE for all
this? Seems like you're creating a lot of extra work for yourself.
I create all my Asp.Net pages in DW and don't really like Code-Behind pages.
I prefer having my code and html in the same page. This, of course, is not
preferred to many people. Obviously, not those using VS to design their
pages as you have no choice there. But in VS 25005, this is all changing.
So I am looking forward to this.

The only reason I am not doing the dll's using VS yet, is that I have not
used it much and can do it quicker by hand. Although I am sure it would be
faster using VS if I used it more.

But, if I understand you correctly, I would still have to move the dll to
the another bin directory even if using VS.

Thanks,

Tom
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #7
In VS.NET, you'd have a solution containing three projects: One web
project, one shared class library project, and the third project that
you're looking to add. You'd add a reference to the shared project
from each of the others, and find fresh .dlls waiting in the right
places every time you compile.

And, of course, you have never been required to use codebehinds for
your .aspx files in VS.NET. Curious you came away with that
misconception, since much of the available sample code is written this
way.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #8
"jasonkester" <ja*********@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
In VS.NET, you'd have a solution containing three projects: One web
project, one shared class library project, and the third project that
you're looking to add. You'd add a reference to the shared project
from each of the others, and find fresh .dlls waiting in the right
places every time you compile.

And, of course, you have never been required to use codebehinds for
your .aspx files in VS.NET. Curious you came away with that
misconception, since much of the available sample code is written this
way.
This is what I had heard from others (as well as one or two of the books I
had read)

I know that if I create a new Project, it automatically creates both files
..aspx and .aspx.cs or .aspx.vb.

I was under the impression (maybe mistakenly so) that you had to have both
pages

Also, you had to load Frontpage extensions, which I also didn't want to have
to do (which 2005 apparently does away with).

Tom
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #9
OK.

I did move one of my .dlls into VS and it compiled fine.

Is there a way to tell it to move the .dll to each of my Web Apps bin
folders?

Thanks,

Tom
"jasonkester" <ja*********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Yep. If you don't want to use projects or make files, you'll have to
do all your .dll moving by hand.

Any particular reason you're shying away from using an IDE for all
this? Seems like you're creating a lot of extra work for yourself.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #10

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

Similar topics

4
by: John Alway | last post by:
Hello, Is it possible to instantiate and use a c++ class from within a DLL? I ask this, because I attempted to create a class within a DLL, and export its methods via wrapper C functions, and...
3
by: dhnriverside | last post by:
Hi guys I'm writing a console app in C# for which i want to enable the user to have several "plug-ins". The app has a switch to set the plug-in to use, and at runtime the required dll is loaded...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
7
by: Oenone | last post by:
I'm sure there's an obvious way to do this, but I'm missing it so far. I have an ASP.NET application that relies on several DLLs to work. Currently in order to get my site working I have to put...
6
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing....
3
by: james | last post by:
Would anyone mind explaining how I can use .dlls outisde of /bin? Really I want to use dll's that are located in "../", but I haven't been able to get .Net to look outside of my base directory. I...
3
by: stenasc | last post by:
Hi, I have created an C based application in linux that uses a number of dlls. Within the dlls themselves, the code calls sub functions e.g dll_1 (Main dll function is called Return_Answer....
6
by: =?Utf-8?B?RmFiaWFu?= | last post by:
Hello, I have a class hierarchy distributed over 3 native C++ dlls. The base class has a .NET Windows.Form for status output via a gcroot<>. The gcroot is declared private - the sub classes only...
6
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
Using Visual Studio 2005, I have created 4 small DLLs that our company projects can use to access common tools included in each of the separate DLL files. Our Visual Studio 2005 applications...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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...
0
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
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...

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.