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

Is possible to use classes in an asp.net application from a consoleapplication?

Hi:

I want to use the classes of my asp.net application from my a console
program. May I do that?

Thanks

Q.
Nov 19 '05 #1
3 1037
Sure, but you won't have any website support. Just reference the assembly
as you normally would.

"Rabbit63" <q.***@manyworlds.com> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
Hi:

I want to use the classes of my asp.net application from my a console
program. May I do that?

Thanks

Q.

Nov 19 '05 #2
Hi:

The problem is I have to put the console program in the /bin directory
of the asp.net application; otherwise, I will get a run-time error
(there is not any error while compiling): could not find the file.

Any idea?

Thanks

Q.
Peter Rilling wrote:
Sure, but you won't have any website support. Just reference the assembly
as you normally would.

"Rabbit63" <q.***@manyworlds.com> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
Hi:

I want to use the classes of my asp.net application from my a console
program. May I do that?

Thanks

Q.


Nov 19 '05 #3
The website library does have to be in the same folder as the console, but
when you create the reference in your console app, open the property grid
for the reference and you should see a setting called something like "Shadow
copy". Set this to "true" and the website library will be copied to the
location where your console is built to.
"Rabbit63" <q.***@manyworlds.com> wrote in message
news:et**************@TK2MSFTNGP09.phx.gbl...
Hi:

The problem is I have to put the console program in the /bin directory of
the asp.net application; otherwise, I will get a run-time error (there is
not any error while compiling): could not find the file.

Any idea?

Thanks

Q.
Peter Rilling wrote:
Sure, but you won't have any website support. Just reference the
assembly as you normally would.

"Rabbit63" <q.***@manyworlds.com> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
Hi:

I want to use the classes of my asp.net application from my a console
program. May I do that?

Thanks

Q.



Nov 19 '05 #4

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

Similar topics

2
by: Pierre Rouleau | last post by:
I have a GUI application written in Python (with WxPython) which uses some low level classes also written in Python. These low level Python classes are given a pointer to some GUI Python object. ...
5
by: William Payne | last post by:
Hello, consider the following two classes (parent and child): #ifndef SINGLETON_HPP #define SINGLETON_HPP #include <cstddef> /* NULL */ template <typename T> class Singleton {
7
by: Carolyn Vo | last post by:
Hi, How can I call Java classes from C# code? I've seen the call in ASP ("NewJavaObject"), so I'm sure that I can do something similar in C# code. Please please please help, thanks!!!
14
by: Ray5531 | last post by:
I have a console application in my local computer which I like to use remoting in it,to instanciate an object (MyClass.dll) in a web application(its bin folder) in a completely seperated box(in the...
2
by: natzol | last post by:
Just a question to verify - I am a beginner in .Net Our business needs require that we have to modify db tables on regular basis (add column, remove column, add/drop table etc). Therefore it is...
1
by: jose.cortijo | last post by:
Hi, I need to put a combobox in my asp.net application but I need that each item was an image. is it possible with standar classes? I cannot spend any money on that. :( Thanks in advance....
10
by: Steven Spits | last post by:
Hi, Because we have a large WebApp, back in 2002 we decided to use the following method: http://support.microsoft.com/default.aspx?scid=kb;en-us;307467 In short: Create a project "a" at...
4
by: Pritcham | last post by:
Hi all I've got a number of classes already developed (basic entity classes) like the following: Public Class Contact Private _firstname as String Private _age as Integer Public Property...
8
by: ThunderMusic | last post by:
Hi, We need to serialize (binary) objects containing generic collections. The thing is, when we try to get the objects back (deserialize) with a different instance of the application, we receive...
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: 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?
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
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
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
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...

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.