[2008] Make Web Service Ports?

Feb 2, 2009

I'm making an application that tracks jobs we log in our IT department and as I'm often out and about it would be handy to be able to use this app from my laptop and connect in to our server at our office. The problem is that a lot of the places I go block all outboundtraffic apart from port 80 and 443 (for HTTP and HTTPS). Now I know I could write an ASP.NET front end that I could just access over the internet but to be honest I just plain dont like making ASP.NET web pages and so if there is any way I could do this just through my standard desktop app that would be good.

I've heard a bit about "web services" and to me this sounds like a solution but I dont know enough about them to decide if I should use one or not.The main thing that will decide this is whether or not I can make this web service listen on port 80, is that possible?Also, is it hard work making something use HTTPS instead of HTTP so that the data is encrypted? I mean, do you have to do all of the encrypting yourself or is there some sort of automatic function you can use to handle this?

View 4 Replies


ADVERTISEMENT

Make An Array Of Serial Ports In Vb?

Jun 6, 2011

I'm fairly new to Visual Basic (VB), but I've already got running code to access all my serial port. The problem is I want to load multiple serial ports into an array and loop through them in my functions. The program allows me to create ports(), but fails when I try to populate it.

Dim ports As IO.Ports.SerialPorts()
ports(0) = SerialPort1

Where SerialPort1 is an object I draged from the Visual Studio toolbox.

View 2 Replies

VS 2008 .NET Windows Service : How To Make It Work

Jan 30, 2010

i have written hundreds of programs with vb.net 2008, but never a service before. I have a simple service written that basically just rights a entry in the eventlog to test. No coding/compiling issues. I run the "installutil.exe" and I get a error ever time. So I went back and added the "Add Installer". But I am sure of what else I need to do, as I get the same error. Please assist.

Error:

Installing assembly 'C:UsersDonaldDocumentsVisual Studio 2008ProjectsWindowsService1WindowsService1inReleasewindowsservice1.exe'.Affected parameters are: logtoconsole = assemblypath = C:UsersDonaldDocumentsVisual Studio 2008ProjectsWindowsService1WindowsService1inReleasewindowsservice1.exe logfile = C:UsersDonaldDocumentsVisual Studio

[code].....

View 3 Replies

C# - Make Service Act Dynamically Based On Service Running Condition?

Jul 6, 2011

i was trying to make my service act dynamically... i have set time for my service about for 2 min ,if suppose it was doin huge amount of work means it will exceeds that 2 min time limit then we need to check the service condition if work is pending means we need to run that instance until upto finish.

public static void StartService(string serviceName, int timeoutMilliseconds)
{
ServiceController service = new ServiceController(serviceName);[code]............

View 1 Replies

Service Reference Stops Working When Make Changes To WCF Service?

May 26, 2011

I'm using Visual Studio 2010 and .NET3.5. I've created a WCF service application. I'm including two DLLs that contain the types I'm returning. The first method I wrote works both in WCF Test Client and also in a console application I created to test. When I move on to the next method that returns a generic list of a type. It works great in WCF Test Client, but when I update the service reference it acts as if the service is unavailable. All my objects say can't find reference, and I can no longer see it in the object browser. It's like it just disappears. I can still see it in the Service Reference folder. If I go back to the WCF app and comment out the contract and implementation of that one method it work again. I created a local class very similar to the class I'm using from the dll, and the it works. Is there something I'm missing here? Can someone point me in the right direction?

View 1 Replies

VS 2008 - How To Get Details Of COM Ports

Nov 13, 2009

I want to get the details of a com port on my machine. To be more precise the com port presents itself in the device manager as:
MyPort(COM3)
I know how to get the name of the port i.e. COM3. Is there a way to get the rest of its description i.e. "MyPort".

View 1 Replies

VS 2008 How To Check USB Ports

Jul 29, 2009

i saw Anti virus auto run when usb enable but i don't how to check port usb? my idea.i want to run my program when have port usb open

View 8 Replies

VS 2008 Checking If COM Ports Work?

Aug 3, 2010

I want to make a program where I can chose a COM port (For example COM 1), then check if it's working. It would be really useful for me, seeing as I work a lot with broken COM cards.

View 1 Replies

VS 2008 Creating Internet Ports

Dec 16, 2009

There are some programs like uTorrent that allow me log into them through the url...How would I be able to create a port like that, and display information there?

View 3 Replies

Open Two Or More Serial Ports In One VB 2008 Program?

Apr 20, 2009

able to open and utilize a single serial port within with my VB 2008 program (i.e., set port parameters, open&close port, send&receive data via port, etc.), but I want to open two or more serial ports concurrently within my VB 2008 program so that I can read data from one port, say COM1, make decisions and calculations based on that data, and send instructions out through another port, say COM2.

View 1 Replies

VS 2008 Sending Info Through Sockets / Ports

Jun 2, 2009

VS 2008: Send commands to a local UDP port. The port is 5975. Let me know if im being to vague or you need more info.

View 3 Replies

VS 2008 Using Regex To Extract All Ips And Ports Using Webcontrol?

Mar 27, 2009

I have been stumped on this for about 3 weeks now. In the beginning me and my partner have been trying to hit this at the internal angle. only problem is different html tables are constructed different than others. We are needing to extract from multiple pages and sites so we know that Regex will be the best solution. We can use the same script for everything. This is my first time working with Regex, I got it actually extracting the very first ip[proxy]. I have no idea why it isn't extracting every one on the page. I also have to add the . in between each each octave of the ip. That is weird because I have it in the Regexpession to find the .'s.What I'm Needing is for this to basically scan the whole page and grab all the ipsorts and add them to a listbox.Here is my

Dim request As HttpWebRequest = Nothing
Dim response As HttpWebResponse = Nothing
Try

[code].....

View 2 Replies

VS 2008 Create An Array Of Serial Ports - Deleting Dynamic Object

Jun 29, 2009

I have the following code to create an array of serial ports.

[Code]...

View 5 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

Make Web Service App?

Feb 6, 2009

My employer has an in-house windows order-entry application which Ive written in VB6. I've taken a section of the VB code and made a stand-alone .exe that I can pass a parameter string to and get a different parameter solution string back. I put the stand-alone exe on the server and can access it from the app on my pc. It is all working fine for our windows needs.

Now my employer wants the stand-alone exe converted to a web service so it will work with our windows app plus our UNIX order-entry app. Both apps would be passing the same parameters to the web service and be able to use the same solution string coming back from the service. Does this sound doable?

View 3 Replies

VS 2008 - Get The Caption Property Of Serial Ports Available On Computer - Error "A First Chance Exception Of Type 'System.InvalidCastException"

Nov 12, 2009

In my project I'm trying to get the caption property of serial ports available on computer. But when I run this code below I get "A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll" exception. I tried putting "Option Strict On" and then I'm getting build error saying it disallows Late binding.

[Code]...

View 5 Replies

Make An Application A Managable Service?

Feb 18, 2011

I made a client/server application and I want the server application to be a service that can have it's setting managed through a GUI.I know how to make an application a service, but how would I give it the ability to have its settings changed and start/stopped through GUI?Or would you just make a program that can edit a certain server's config files and just restart it to pick up the changes?

View 4 Replies

How To Make A Windows Service Work Properly

Aug 3, 2010

My project requires that a windows service checks up a table on a sql database(MDF) and if product existence is 0 then sends an email to some mail address and keep checking every 24 hrs.Now Im able to send mail messages but what Im not able is to make the service itself to work or at least make sure that is working.I do the following(correct me if I do something wrong or missing a step):

1. create a new project and choose windows service

2. add a timer and set to 4000 ms just to test not wait the 24 hrs lol

3. then open its event timer_elapsed and put some code on it, like a msgbox that would keep spamming every 4 secs just to test

4. at the event onstart I enable the timer by: timer1.enabled=true

5. at the event onstop I disable the timer by: timer1.enabled=false

6. right click then choose add installer

7. in the newer installed with the two objects:

a. serviceinstaller1 set its properties to: displayname: myservice and servicename: myservice

b. serviceprocessinstaller1 set account property to LocalSystem

8. build the project and install it by opening the VS console and type: "installutil c:path blah blahservice.exe" then hit enter

9. all successfull installed open the pc manager and run the service from the list and this should be the deal

Now my real problem is that by following those steps my service is sucessfully builded, installed, and started but after the 4 seconds no msg pops up so this leads me to think that is not doing anything or I did something wrong in the steps above. Is there another way to test if this service is working else than the msgbox or the log entry? Plus, Im working on my home pc which is a xp OS. I tried the same at college pcs wich are win7 and when I did install by the console it returned an error weird but in my home pc it doesnt(and I have to present my project at college at college and tomorrow

View 7 Replies

Make A Windows Service Terminate A Process?

Jul 25, 2011

I am working on a Windows Service project that is supposed to start automatically with Windows and it has a timer to check if a certain process is created (in this case "iexplorer") the service should terminate that process. In addition, the user should not be able to stop the windows service.

I was able to create the process and make start with Windows. I changed the property (CanStop) to False but that did not help because after a few tries the servise stops. I used a For-Next loop in the timer to check for the process to terminate but unfortunatly, it didn't work. The code I used is:

Dim theProcesses() As Process = System.Diagnostics.Process.GetProcessesByName("Iexplore")
For Each currentProcess As Process In theProcesses

[Code].....

View 3 Replies

Service Error Cannot Open <service Name> Service On Computer '.'

Feb 3, 2010

I have a VB2008 application which can control a windows service i.e. start, stop, pause etc. This runs ok on a Windows XP machine but not on a Win 7 machine (message is - Service error cannot open <service name> service on computer '.') ( if I stop the UAC then it runs ok ). It seems to be a rights issue,

View 3 Replies

Make A LAN IM Client Using The Net Send Command - Intercept Messages From Windows Messenger Service

Jun 5, 2009

I'm trying to make a LAN IM client using the net send command and I was wondering if there is any way to capture the text of the messages received through net send and display them in a label.

View 6 Replies

Add Available COM Ports To Select From?

Jul 21, 2008

I'm working on a project and would like to know how i can add the list of avabilable serial ports to the combobox[code]...

View 5 Replies

Can Get Ports Name Listed In PC?

Feb 21, 2012

Anyone here has an idea where I can get the ports name listed in my PC? [code]I could get COM26 and etc. if any, but that's not what I want. Instead of retrieving COM26, I want USB-SERIAL CH340 or USB-SERIAL CH340 (COM26). How could I do that?

View 3 Replies

VB 2010 And Com Ports

Apr 10, 2012

I will explain first what kind of program we are talking about: The program that I made works togehter with my PIC Microcontroller to control 2 stepper motors. One for the rotating motion and the second for a tilting motion. With this system I want to make a airplaine pointing and tracking system.

[Code]...

View 1 Replies

Communication With Serial And TCP / IP Ports

Feb 19, 2009

What is the best way of communicating with Serial ports and TCP/IP communcation using vb.net?Using visual studio .net can we make it easier?? Can anyone send me sample application of communications?If I write a program communicating with my hardware using Searial port or TCP/IP, will the program be slow?? Are there any programming techniques working with communication ports?

View 1 Replies

DCOM With Limited Ports

Dec 1, 2011

We need to put a firewall in between our servers and a couple of clients. To do this we need to limit the number DCOM ports available so that we know what ports to open on the firewall.The question I have is do we need to limit the number of ports on all the machines inside the firewall as well as outside. This would cause an issue as we have lots of machines which would need to be modified.If DCOM has the intelligence to negotiate on port 135 which port is available on both machines which need to communicate, we will only need to modify the 2 machines on the outside of the firewall.

View 2 Replies

Disabling/Enabling USB Ports?

Jun 6, 2011

I am creating a USB "cookie dispenser" (long story) and I plan on programming it by, when cookie.exe starts, it disables the port, you plug the USB in and press a button and it enables the port (thus powering the device). What I need to know is, is this at all possible? And if so, can you help me get it to work? I know I should put in an effort but it's late for me (UK) and I want to post this overnight so that you guys (in the USA may

View 8 Replies

How To Detect Open Ports

Sep 22, 2009

how do i detect for open ports? if the server close the port, the client will have to respond with msg("PORT IS OPEN")

View 5 Replies

Load Ip's And Ports In Listbox

Apr 6, 2009

I am trying load a text file that contains ips and ports in the format of Ip:Port
this is the code i have so far...its gives me an error of.... Is operator does not accept operands of type 'Boolean'. Operands must be reference or nullable types.

[Code]...

View 2 Replies

Open And Close Com Ports In .net?

Jan 5, 2010

i want to open and close com ports in vb.net and send data through ports.

View 2 Replies







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