Console application with Asp.Net Project
-
Hi All, Im created web application using .net 2008, and its hosted and working fine, now i created a another console application to my same solution as new project, i did some stuff there,added the reference from backend classes, its also woring fine. My requirement is set that console application to SQL job, so i did that by setting my local solution path (ex- E:D:\Test\WebApp\Console\Test.exe). its working fine too. :) My problem is when i host this console application with web project, how can set the reference to console application?. I created sub folder for console application inside my web project in hosting server, then added the console exe and app.config file, but that time my sql job is not working , should i add bin folder there? what is the path should i follow? Pls give some ideas? Thanks
-
Hi All, Im created web application using .net 2008, and its hosted and working fine, now i created a another console application to my same solution as new project, i did some stuff there,added the reference from backend classes, its also woring fine. My requirement is set that console application to SQL job, so i did that by setting my local solution path (ex- E:D:\Test\WebApp\Console\Test.exe). its working fine too. :) My problem is when i host this console application with web project, how can set the reference to console application?. I created sub folder for console application inside my web project in hosting server, then added the console exe and app.config file, but that time my sql job is not working , should i add bin folder there? what is the path should i follow? Pls give some ideas? Thanks
Think about it. With a web project, all of the code is executed a web server in a room somewhere in the world. A console app would execute on that same machine, if it were even allowed. Who would see the app?
I know the language. I've read a book. - _Madmatt
-
Think about it. With a web project, all of the code is executed a web server in a room somewhere in the world. A console app would execute on that same machine, if it were even allowed. Who would see the app?
I know the language. I've read a book. - _Madmatt
i used that console app for some sort of mail sending mechanism, as i said i have set that console for SQL job already its wroking, what i really need to know is how can host that console in the same project?
-
i used that console app for some sort of mail sending mechanism, as i said i have set that console for SQL job already its wroking, what i really need to know is how can host that console in the same project?
indSoftware wrote:
how can host that console in the same project
You can't, shouldn't, and it makes no sense to even try doing so. See my previous explanation. If you simple want to execute code you don't need a console app to do so. Create a library and call class/method as necessary.
I know the language. I've read a book. - _Madmatt
-
indSoftware wrote:
how can host that console in the same project
You can't, shouldn't, and it makes no sense to even try doing so. See my previous explanation. If you simple want to execute code you don't need a console app to do so. Create a library and call class/method as necessary.
I know the language. I've read a book. - _Madmatt
ok thx for your reply, if i create a class library how can set that it to SQL job for daily scheduling. Thanks.
-
ok thx for your reply, if i create a class library how can set that it to SQL job for daily scheduling. Thanks.
The same way did in the console app. Seriously, you need stop and learn a bit more about the differences between console app, web apps and class libraries.
I know the language. I've read a book. - _Madmatt