.net - Including A ASP Web Service Project In A Windows Forms Application?

Aug 25, 2009

I have a web service that I'd like to include as a project reference inside a windows forms application. (The application will be running on non-networked hardware.) I could simply copy the *.vb files I need into my forms project, but I'd rather not fork the code base.It wasn't hard to include the ASP project in the windows forms solution. However, I can't figure out how to reference it in my forms code.

View 2 Replies


ADVERTISEMENT

Inheritance And Variety Of Data Structures Including Queues, Lists, Arrays, Or Stacks In A Windows Forms Application

Jun 27, 2012

I'd like to give a homework assignment to a person learning VB.NET. I'd like it to use basic inheritance and a variety of data structures including queues, lists, arrays, or stacks in a windows forms application. I was thinking of a pizza-ordering application. This would allow them to utilize some basic inheritance and practice using .NET UI elements.

View 2 Replies

Code Works In A Windows Forms Application, But Not In A Windows Service

Jan 19, 2010

I'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service

View 7 Replies

.net - WCF Service Hosted In A Managed Windows Service Connect Using A WCF Service Application

Jul 14, 2011

i have a Windows service that is hosting a WCF service through net.tcp and this is working great. I have also created a WCF service application. I am trying to add the net.tcp service reference to the service application. Then I add it to the GAC that goes ok but if I try to RegAsm the WCF service application to allow it to be called from Server.CreateObject I get the error:

Warning: Type library exporter encountered a type that derives from a
generic class and is not marked as
[ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be
exposed for such types. Consider marking the type with
[ClassInterface(ClassInterfaceType.None)] and exposing an explicit
interface as the default interface to COM using the
ComDefaultInterface attribute.

It does not work. I have tried to call it through a class library but this does not work either as the end point is not set correctly.

View 1 Replies

Visual Studio 2010 VB Windows Forms Application - Organization Of DLL Project References?

Mar 26, 2012

In my VS2010 VB project I have a lot of external references to DLLs, to the point that organization has become a major headache and I'm wondering if I am going about it the wrong way. My assembly references include common redistributables (SQL Server Compact 3.5 SP1, ReportViewer 2010 SP1, DataVisualization, as well as some useful 3rd party dlls from CodeProject and CodePlex.

Currently, I am copying each DLL into a 1st level folder (/dll_lib) under my named project folder (under the solution folder), and adding the reference from that path. However, I see that Visual Studio copies the DLLs to various other locations (/bin/debug or /bin/release) in my project when I build the project or solution, and some of the 3rd party DLLs come with instructions to copy them manually to /bin.

What is the "best practice" for where to put the DLLs? Can I just put all of them under /bin and let the build event copy to /bin/debug or /bin/release as required? Should I try to force a single reference path for the dlls in the project output?

View 5 Replies

Install Windows Service Using A ProjectInstaller And A Deployment Project ("Specified Service Already Exists")

Mar 10, 2009

I've created a windows service and started a deployment project for it. I have the project installer class in the service project and I've added the "Standard output etc.." from the service project as custom actions for the Deployment Project. When I attempt to install it, I get the error "Specified service already exists", which shouldn't happen (even though the service does exist) because the installer should be removing the old service and installing the new one.

I've checked that the versions are different, and that the Product Code is also different, also RemovePreviousVersions is set to true. Can anyone tell me why it isn't uninstalling my old service when I update then install again? .S: MODS: DO NOT MARK MY POST AS ANSWERED, IT IS RUDE, YOU HAVE NO IDEA IF YOU'VE ANSWERED MY QUESTION!Sorry, it gets ignored in my signature.Mods

View 8 Replies

Windows Service Installation Project?

Apr 15, 2009

I have developed an application in VB.Net 2005 Express. This app was then transformed into a windows service using a template I found on this forum. I am able to install the service using InstallUtil.exe and I am very happy, BUT the powers that be me are asking for a more eligant method of installing / upgrading the service.
All of my reading suggests I need to upgrade to VS 2008 Enterprise to achieve this goal. Before I lash out and reach for my credit card, can someone confirm the minimum requirement to achieve a pretty service installation.

View 2 Replies

C# - Code Not Working In Windows Service Project?

May 16, 2011

I'm currently starting work on my first windows service and I've encountered what I find to be a strange error. For some reason the compiler is telling me that a whole bunch of typical classes (such as Image, Bitmap, Graphics, etc) do not exist. For example, these simple lines of code, which work perfectly in a normal project, return a bunch of errors:

Bitmap b = new Bitmap(destWidth, destHeight); //Error 13 The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an assembly reference?)
Graphics g = Graphics.FromImage((Image)b); //Error 17 The type or namespace name 'Image' could not be found (are you missing a using directive or an assembly reference?)

[code]....

View 1 Replies

Create A Setup Project For The Windows Service?

Sep 29, 2010

Now that I've got this service that runs really great on my 32-bit development machine when I use InstallUtil.exe to install it, I'm ready to take it to the next level and generate something that I can use to install it on my 64-bit production server. I've never done this before, so I'm looking for detailed, step-by-step instructions on how to "publish" this Windows Service that I've written, or make it such that I can take some kind of file (or set of files) and install my service on another machine. I'm looking for a way to do this using Visual Studio 2010. I think the processes are different than in previous versions of Visual Studio.

View 4 Replies

Create Classes In Windows Service Project?

Nov 12, 2009

i create a class library or use already created class library in my windows service project. I have 1 dll file then how can i use that file in my project.?Logic is my Greatest Asset !

View 1 Replies

Windows Service Access Folder Under Project?

May 17, 2011

I am trying to work on a service where I need to export a report into a folder under the service project and email it to the user. The delete the report when complete. The issue I am having is I need to know how to access a folder under the project. I know you can use System.AppDomain.CurrentDomain.BaseDirectory to get into the bin where the excuting file is but I want to get to a folder is this possible? If not is there a way of creating the folder under the bin directory and accessing it. I can manually create a folder under the bin but didnt really want to do that.

View 1 Replies

Referencing A Windows Forms App From A Windows Service App?

Aug 30, 2011

Is there a way to basically merge a Windows Forms Application with a Windows Service Application and allow the passing of parameters on start up to determine if it should start the standard GUI or launch as a system service

View 4 Replies

Install Windows Service Via Setup And Deployment Project

Apr 27, 2009

I've been busy with work and other bits and bobs and not really had much time for programming... but anyway, I have just written a fairly simple windows service in VB.NET and although I can install it on my PCs/servers using the command line InstallUtil.exe component, this isnt ideal for other people that may need to install it without my assistance.

So basically I just need to know how to get a normal Setup and Deployment VS project to install this service itself... I thought it would be as simple as selecting the service assembly to include in the deployment project and building it, but unfortunately that seems to do naff all. Do I need to use a 'Custom Action' in the setup project (and if so, how/what do I do?)

View 6 Replies

Location Of App.config File In A Windows Service Project?

Feb 2, 2012

I am creating a windows service in VS2010, and in order to store a user's input during installation I've been told to write it to a file called app.config.However i cannot find this app.config file? Does it create one in a windows service project? or just in a WCF windows service project?

View 1 Replies

Windows Service Not Showing Up When Installed With Setup Project?

Aug 31, 2009

I have a simple windows Service developed in VS.net 2008 and VB.net. When I install the service using Installutil.exe from the command prompt it is working like a charm.

When I try to add a setup project and set the output and build and install it though it says successfully installed, it is not showing up in the services.

The event log shows that it is successfully installed. I just did check the registry, it did place the assemblies in HKEY_CURRENT_USERSoftwareMicrosoftinstallerassemblies.

But I don't understand why it is not showing up in the services listing. I refreshed and restarted.

View 3 Replies

Asp.net - Add A Rest Service To A Web Application Project?

Feb 16, 2012

I've just created my first web application project.Now I want to add a RESTFul service.It can be pretty simple, all I need is to pass 1 string (userid) and 1 integer (objecttype) and return a json result.

View 1 Replies

Setup Project For A Windows Service - Pre-Install Custom Action?

Jan 4, 2012

I need to install a windows service via an .msi for many tablets which is nooooo problem. The problem is, the tablets currently have the service running which was installed by installutil. So when my installer runs, regardless of Remove Previous Version is true, it stops stating the service already exists and to uninstall it from Add/Remove Programs.So I wrote a console app which preceeds the primary output as follows:

Sub Main()
Try
Dim filename As String = "C:Program FilesRSCProjectServiceSetupRSCProjectService.exe"
'Dim filename As String = "C:RSCProjectServiceRSCProjectServiceinDebugRSCProjectService.exe"
If System.IO.File.Exists(filename) Then

[code]....

View 3 Replies

Forms :: Creating A Sub Main In A Windows Forms Project?

Sep 13, 2010

What is the vb.net equivalent to accomplishing this?

static void Main()
{
frmCalcView view = new frmCalcView();

[code].....

View 5 Replies

Take And Run .net Windows Application Setup As Windows Service?

Feb 17, 2009

is it possible to take and run vb.net windows application setup as windows service...if possible means how to take and run vb.net windows application setup as windows service....is it possible to run the vb.net windows application setup automatically 5 mins once....if possible means...how to run vb.net windows application setup automatically...want to run 5 minutes once automatically..

View 2 Replies

Windows Service Launching A Windows Application?

Sep 7, 2008

Windows Service launching a Windows application?

View 3 Replies

VB 2010 (Windows Forms Project) Run On The Windows 8 Platform?

Jun 21, 2011

will a VB 2010 (Windows Forms Project) run on the Windows 8 platform?

View 3 Replies

References Failing To Import To A VS 2005 (VB) ASP.NET Web Service Application Project

Aug 17, 2009

I have this VB ASP.NET Web Service Application project running VS 2005. I'm trying to add references. To do so I click on the "Properties" icon in the Solution Explorer window which presents me with a window to add/update/remove references. I click "Add", I select the reference I want and then "OK". Lo en behold, NOTHING! It simply won't add references (I tried adding several different ones). Specifically I'm trying to add the System.Configuration assembly.

[Code]....

View 1 Replies

Windows Service Shown As Automatic But Wont Start On Initial Install With Deployment Project?

Sep 2, 2010

I have a service projecwith a deployment project in a solution. The installation is successful, service runs ok. However each time after installation I will have to use ervices.msc to start up the software or restart the machine, any idea how I can start the services as soon a

View 3 Replies

Add A SMS Service To Windows Application?

Aug 5, 2009

I am building a windows based application using Visual basic.net , for Real estate management office and I want my software to send SMS messages to the tenant that it's time to pay for the rent.

View 3 Replies

How To Run An Application From A Windows Service

May 16, 2012

I have one windows applciaction and a windows service, I need my WinApp running all the time and if it is not runing I need the service to run it.the question is how can I run my app from the windows service, I dont need any interaction between them I just need the service as an agent that secure the winApp is running and if not, make it run.I got the service and winthin I got a timer that every minuto will check for the running app the questions are:

1-How the service cheks for the application

2-How the service can lunch the application??

View 2 Replies

IDE :: Using A Windows Service To Run An Other Application?

Oct 28, 2009

I have a windows application that updates somedata every 10 mins. I need to make sure that this application keeps running.I was thinking of having a service with a timer that checks if the application is running and if not it fires it up.

View 4 Replies

Run GUI Application As Windows Service

Feb 25, 2010

I am having a hard time figuring out how would my vb.net application to run as window service so that it would not appear in the task manager's processes list so that it can't be terminated and would constantly run in a background. Is there anyway we could make to run our vb.net application as Windows Service, programmatically? If not, could you provide me sample code that has this Windows Service that's constantly from time to time check whether my application is running or not? If not, then the Windows Service will rerun it for me.?

View 4 Replies

Use A Web Service Within A Windows Application?

Jul 14, 2009

I created a very simple web service on my godaddy shared hosting web site, using VWD. I wrote a VB app to use some web services. I added a web reference to another web service with no problem. But I could not add a web reference to MY OWN web service. It was blocked by a Discovery Credential dialog that could not succeed. After days of communication with godaddy tech support they stated it could not be done (for security reasons).

View 4 Replies

Call Win Application From Windows Service?

Apr 18, 2006

Can somebody tell me the steps to follow so that i can call my windows application (.exe) file from my windows service in C# (.Net 2003

View 2 Replies

Debugging Windows Service Application

Sep 1, 2011

I have created and deployed a windows service application and I added this line of code "System.Diagnostics.Debugger.Launch()" in the beginning of OnStart method in order to be able to debug the service but when I start the service the nothing is happened. I think the OnStart method have never fired otherwise the visual studio will popup once the debugger.launch line is executed even I tried to write some text to the event viewer to make sure but nothing gets written to the events viewer after I started the service. I included also the debugging symbol in my windows service setup project but I end up with the same result.Why it's not working? How can I make sure that the OnStart method gets fired or not?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved