VS 2005 How To Grab File Path From Client Pc To Web Service

May 19, 2011

somebody tell me the way to grab the file path from Multiple clients (Forms) to web service (acts as server) in VB.net?

View 2 Replies


ADVERTISEMENT

Copy The Client Log File To Common Path In Server

Dec 2, 2010

In our project logs files are stored in clients local only . So during any production issues we have to be waiting till they provide us the log file. What is the best way to copy the log file from clients local machine to some common path in one of our servers .

View 2 Replies

Web Service Client Accessing Java Web Service / Connection Aborted

Sep 27, 2010

I had a problem getting a VB.NET web service client to receive the response object from a Java web service.In the process of posting this question someone from another department volunteered some code written for a similar situation.I couldn't find this anywhere on the net so I'm completing my question to help others out.[code]The web service is Apache CXF with some Spring elements mixed in.

View 1 Replies

C# - OpenFileDialog Control - Grab The Selected Path And Show It In A Text Box?

Jul 4, 2010

Here is my snippet:

private void btnBrowseCInv_Click(object sender, EventArgs e)
{
ofdBrowseVInv.Title = "Locate Customer Invoice File";
ofdBrowseVInv.Filter = "Portable Document Format (*.pdf)|*.pdf|All Files (*.*)|*.*";

[code]....

As you see below, once a user pick a file and click open. I want the selected path to show on the pointed text box which is named "txtInvoicePathCInv".

View 2 Replies

VS 2005 : Retrieving File Path And File Name?

Jun 8, 2011

Have following code in a windows application:

Dim Response As DialogResult
Dim fDialog As New OpenFileDialog
fDialog.Filter = "PDF Files(*.pdf)|*.pdf|All Files(*.*)|*.*"

[code]....

Is there a way to extract file path and document separately based upon what user has selected?

View 2 Replies

VS 2005 Openfile Dialogue Directory & File Path?

May 8, 2011

I in my project i have two text box and 1 button and 1 openfile dialogue Event on Command Button in textbox1 i want a file directory with the file name & extension,which i have done well (like C:files eadme.txt)butin textbox2 i want only the directory of the same file, means under which directory it stored (like C:files)

Here's my example code

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub

[code]....

View 2 Replies

VS 2005 Refuses To Write To A Text File If The String Used To Be A Path

Dec 13, 2009

I've searched everywhere to find out why the heck my program is doing this, but couldn't find anything like it...? I'm making a flash card program. Part of my program takes images corresponding to other data from a certain area, chosen by the user, and moves them to another folder, for later use. I want to store the path for the image next to the other data, storing the path as a string. When no image is chosen, the variable for the path is simply "no image".

[Code]...

View 5 Replies

[VS 2005] Service Control Manager Privileges - Communicate With A Windows Service On A Remote Machine On The Network

Jul 23, 2009

I am trying to communicate with a Windows service on a remote machine on the network but i keep getting an exception saying the following: "System.InvalidOperationException: Cannot open Service Control Manager on computer 'machine001'. This operation might require other priviledges. ---> System.ComponentModel.Win32Exception: Access is denied.

[Code]...

View 4 Replies

Path Of .zip file Has Spaces In It / It's Not Recognizing Path As Valid Path

Aug 22, 2006

I have a Access program and I'm using VBA code in the background to run Winunzip using shell command. Well, the path of the .zip file has spaces in it and it's not recongizing the path as a valid path. Is there a another way to tackle this problem besides the shell?I can't us pkzip either. Has you can see I had to use progra~1 instead of Program Files.[code]

View 2 Replies

.net - Service Reference Client Bug?

Aug 16, 2011

i have a WPF application that uses a service reference to a web service.Now i have a GUI component that tracks the progress of this...But i seem to have some sort of bug here, it only occurs on some machines and not often..I start a call with MethodNameAsync and display the progress bar until the matching Completed event occurs.

some times i call 3 different async methods in a row but only the two of them get their Completed event raised so the GUI will be locked and the application has to be restarted.After being totally frustrated a few weeks i found the event AppDomain.CurrentDomain.FirstChanceException, so i hooked up to it and started logging all FirstChanceExceptions..

[Code]...

Fix this temporary by not using async methods and instead using a thread that will call them one by one.. now this is not a elegant solution, i should be able to use the async methods...

View 1 Replies

C# - Create A Asmx Client For Wcf Service?

Jun 13, 2012

I have some clients calling my asmx service and I figure out to change my asmx to a Wcf service.How can my asmx clients call to my Wcf service without modify the client application?Maybe just a few changes in the config file...I can't expect than they compile their applications.

View 2 Replies

Getting A Response With A .NET Client From A Java Web Service?

May 26, 2011

Here's the situation. I'm a Java developer. Another developer in our company wrote a web service for our clients. They wrote the service in Java. They also wrote a demo for creating a client to consume the web service in Java and it works just fine. I've been tasked with creating a web services client in VB.NET to do the same thing. It hasn't been going smoothly. The problem is that the web service requires that you send the username and password in the SOAP header and I can't figure out how to do that in Vb.NET. I looked at the following pages:

[Code]...

View 1 Replies

Separating Out A Wcf Service, Server, And Client

Oct 25, 2011

I have a solution in VS 2010: a WCF Service Library project ("NotifyService") and two Windows Forms projects, one for a server ("NotifyServer")and one for a client ("NotifyClient"). My goal is to have a duplex WCF service that will notify any number of connected clients when the server pushes out a notification. The clients do not need to communicate to the server except to subscribe and unsubscribe from the server's updates. However I seem to be running into problems nailing down the InstanceContext.

Here's the code for the WCF service:

<ServiceContract(
CallbackContract:=GetType(INotifyCallback),
SessionMode:=SessionMode.Required)>

[Code].....

Since I'm setting everything up through code, there are no app.config files. The problem I'm having is that my Subscribe method is never called. When debugging, I get an error after stepping through that line (not an exception) that says "Unable to automatically step into the server. The debugger failed to stop in the server process." When I go back to my server form and click the button designed to raise an event on the callback clients, it steps into the NotifyService class but the _callbacks list is empty, meaning the Subscribe method either never ran, or it never ran on that instance.

I have fought with this for almost a week. This is nearly an identical copy, at least on the service-side, to what was described here, and I've compiled that and it works.

View 1 Replies

Access Wcf Service By A Client Using Channel Factory?

May 6, 2011

I tried this one...but its not working.[code]...

View 1 Replies

Install A .NET Windows Service - This Is Not Available In The Client's System?

Feb 8, 2006

I have written a VB.NET windows service application. I installed it in my system using the Installutil.exe. But this is not available in the client's system because the .NET is not installed in that system.Is there any way to install the .NET windows service application without the Installutil ?

View 4 Replies

Order For 2.0 Client Service To Perform Actions?

Jun 24, 2011

Would I need it in order for my VB.NET 2.0 client service to perform those actions? Is the Azure SDK only for web development?

View 1 Replies

Threading Windows Service TCP Socket Client?

Jan 22, 2012

I'm trying to build a multithreaded SMPP client with VS2008 and I'm getting bogged down in threading. Basically my main parent thread will interact with the windows service scheduler, get registry settings, and get a list of SMPP servers to connect to. Then it will launch a thread for each SMPP connection, which will need to keep it's TCP socket open to receive messages with, so the thread must remain running even if there aren't any events happening (no messages to receive)... but I can't seem to get it figured out.

[Code]...

The Start sub in the oChannel object does run, but once that sub is finished running the thread ends. In the Start sub, it calls other code that initiates a connection to the remote SMPP server, but that code asynchronously waits for an event to be raised regarding the connection status. Once the sub finishes, the async connection being attempted doesn't seem to be able to pin the thread down.

View 3 Replies

VS 02/03 Path To Web Service Reference?

Nov 12, 2010

I have added webservice support to an OLD PocketPc 2002 application written in VS2003. I don't have the ability to choose dynamic path as in VS 2005, which is the best way to switch URL from dev, test and prod environment for this application? Should I create some factory class that read a value from the app.config and return a service reference with the correct URI?

View 1 Replies

.net - Call Web Service Using Client Certificates / Mutual Authentication?

Mar 23, 2012

I'm building a web service client using vb .net. The web service is secured with ssl, basic authentication and also requires client certificates. So I created a web reference in Visual Studio and provided the credentials:

Dim cred As New System.Net.NetworkCredential("usr", "passwd")
Dim proxy As New SimpleFromLocal.simple
proxy.Credentials = cred
Console.WriteLine(proxy.helloWorld())

This works as expected, as long as I turn off mutual authentication on the server side.I added a client certificate like this:

Dim cert As X509Certificate = X509Certificate.CreateFromCertFile(certFile)proxy.ClientCertificates.Add(cert)

The certificate is loaded, but the web service call fails. I could post the exception, but it is in german, which is an issue on its own. It basically says: Authentication failed, because the remote site closed the connection.I tried debugging the ssl handshake on the server side and it looks like the client certificate is not transmitted.So what am I missing here? Is it required to install the client certificate on the local machine?Edit: The error thrown:

[Code]...

View 1 Replies

Java - Using Certificates In A Client-application Consuming A Web Service

Sep 16, 2010

I am implementing a VB.NET desktop application which consumes a web service.

The web service implemented in Java and I currently using Tomcat on my localhost to host the web service.

The web service requires secure communication with the client and so I have followed instructions that outlined how to use Java's keytool.exe to create two .jks keystores (one for the client and one for the server) and then create two .cer certificates (one for the client and one for the server)

I have placed the keystores and certificates generate into the directory where the web service is expecting them (according to the instructions)

I have installed the certificates into TrustedPeople and have attempted to use the certificate by setting the ClientCredentials.ClientCertificates property like this:

myServiceProxy.ClientCredentials.ClientCertificate.SetCertificate(storeLocation.CurrentUser, StoreName.TrustedPeople, X509FindType.FindByIssuerName, "name")

I keep getting the following error message when I try to call any method:

An error was discovered processing the <wsse:Security> header

My problem is that I don't know how to use this in the VB.NET client application that is consuming the web service. I could be doing this completely wrong.

View 2 Replies

Writing A Program With 1 Client And Server Where Client Side Creates A Text File

Dec 1, 2008

I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.

View 14 Replies

Delete File On Server From A File Path From A Sql Database File Path?

Feb 4, 2010

I am having a big problem with deleteing a file form the server. I have the filename for a image stored in my SQL database. the problem is i am getting an error of "Illegal characters in path. " Here is the code below:Everything is working fine until the delete command.

Protected Sub DeleteButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim tmpEquipID As String = Request("EquipID")
Dim tmpImageID As String = (CType(FormView1.FindControl("ImageIDLabel"), Label).Text)
Dim d As New equippicsDataContext

[code]....

View 3 Replies

Add Username And Password To SOAP Header In Program Web Service Client?

May 13, 2011

I need to query a web service that basic authentication, putting the username and password in the request header. My client is written in VB.NET Visual Basic Express Edition 2010. I've added the web service to the Service References. It has auto-generated the appropriate classes for me. [code]...

View 1 Replies

Returning A User Friendly Error Message To Client / From A Web Service

Oct 27, 2010

I need to return an error message to the client, if they have entered invalid data when calling my web service. So if my code is: [code]Is there a way to display a more user friendly error message (such as a message box or just the words "Invalid Order ID")?

View 2 Replies

VS 02/03 Grab A File Version Of An Specific File From Multiple Remote Machines

Mar 4, 2012

able to give me a script that i will be able to grab a file version of an specific file from multiple remote machines. I have a list of machines in Txt file ... i want the script to read the list.. and generate a new file that have the Machine names with File version.

View 1 Replies

Change Path Of Service ImagePath Value In Registry Just After Installation

Nov 11, 2010

I am trying to change the path of Service ImagePath value in registry just after installation. Unfortunately my change path becomes only single letter in registry.[code]Source code for changing the ServiceConfig taken from codeproject.

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

Access A File Using Relative Path Or Virtual Path?

May 22, 2012

I am trying to read and display a file using MapPath as follows :

Response.ContentType = "Application/pdf"
Dim FilePath As String = MapPath("../Document/123.pdf")
Response.WriteFile(FilePath)
Response.End()

This procedure will work fine and display in the browser. However, if I save the file to C:Document123.pdf, how can I access this file using relative path in MapPath function. Is there an option to access the file which is saved out of IIS server? I am using vb.net 2003.

View 1 Replies

Convert Unix File Path To Windows Path?

Jun 14, 2012

I'm using acrobat that returns unix paths instead of windows path's. So im wondering if there is a way in vb.net to convert the path to windows path.

i tried using:

docs(i) = javaScriptObj.path().ToString.Replace("/", "").Substring(1)
position = docs(i).IndexOf("")
docs(i) = docs(i).Substring(0, position) + ":" + docs(i).Substring(position + 1)

this only works on local files, but fails when im starting to use network drives.

View 1 Replies

Check When Another File Opens Your Program And To Grab Its Name?

Jan 18, 2011

I want to be able to double click a custom file that contains text and it pulls up my program and adds the text in the richtextbox.

Basicly I created a file extention called .pwt but I can't get it to load the text stored in it on the richtextbox.

View 14 Replies







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