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 9 1170
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/
"jasonkeste r" <ja*********@gm ail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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/
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/
"jasonkeste r" <ja*********@gm ail.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.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/
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/
"jasonkeste r" <ja*********@gm ail.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.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/
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/
"jasonkeste r" <ja*********@gm ail.com> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.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/
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
"jasonkeste r" <ja*********@gm ail.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 although it all
compiles find, it returns garbage. The following is only test code to
see what I can do. I want to eventually make this functionality
available to a Visual Basic program, which keeps me from exporting a
class directly (I assume...
|
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 and executed.
I had thought I could do this with a C# class compiled, and just load the
relevant dll file for the class we want, and call it as normal. Of course
this won't work because C# class files need to be compiled into the app?
Correct?
|
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 converted/developed with VB.NET.
What I want from debugging is to be able to step into the methods in
the DLLs called from ASP scripts using Visual Studio .NET.
Background:
For typical script debugging issues, you can read and follow the two
documents on...
|
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 them all in the bin/ folder
within my web site's directory.
As I have numerous web sites, I want to be able to place all of these DLLs
just once into a single location elsewhere on the disk (e.g., "D:\DLLs"). I
don't want to put them into the...
|
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. If someone could tell me what
I'm missing that would be great.
1. Create an external class and call it Test.dll.
2. Create a test Asp.net app called App.sln.
3. For App.sln I set a reference to Test.dll.
4. Compile App.sln and run it. The web...
| |
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 tried
this in web.config:
<configuration><runtime><assemblingbinding xmls="urn:schemas-microsoft-
com:asm.v1"><probing privatepath="../">...
If there is no way to look outside my base directory, is there a was
to look for dll's in the base...
|
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. The code within the
Return_Answer function called another function called Timer which is
in dll_1)
dll2 (Main dll function is called Calculate_Best_Result. The code
|
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 have access via a
protected "print"-method.
I need the different dlls as the sub classes implement the base class's pure
virtual methods using different technologies.
To use the native classes from outside their dlls I use the...
|
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 call the DLLs and run them without any
problem.
Now we are trying to deploy the first of these applications, and we are now
stumped. The Visual Studio 2005 Deployment Project includes all of the DLL
files and successfully creates the setup.exe...
|
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...
|
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,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |