Calling ProcessStartInfo From Web Service

Sep 24, 2009

I developed a Web Service which calls a ProcessStartInfo class. When I run the WS in debug mode, step by step, It works fine but when I publish the WS, It just does not work and does not even throw any exception. I gave full permissions to ASP.NET and Network users on the .exe which the PSI calls.

View 2 Replies


ADVERTISEMENT

.NET Application Receiving 503 Service Unavailable Error When Calling Web Service?

Apr 28, 2009

This is a bit of unusual problem that I'm experiencing, but recently one of the users of a production application started reporting errors in the system. These were traced to a 503 Service Unavailable error when making a call to a web service used by the application.

Now here's the odd part, only the one user is affected by this issue. Other users of the application have not reported any errors. When the user logged on to a different machine that worked for another user, they still received the error.

View 1 Replies

C# - Calling Web Service From C++ V6

Nov 17, 2009

i have been deploy webservice in vb.net .

is there will be any problem if i will cal the webservice from c++ (version 6) or Microsoft Access VBA?

View 3 Replies

.net - Calling WCF Service From Silverlight 4?

May 6, 2011

I call upon your combined intellects. I have a web application with a silverlight app that calls a ria service. The ria service is defined inside the web application and everything else is just dandy.

The issue is this.It is my understanding that in order for the silverlight application to talk and know what the ria service is, you need to add a service reference for that service. The service reference defines the ria service and sets up the connection binding. One of the files it adds is the ServiceReference.ClientConfig which has the connection binding in it. During the course of this application's development, this is the way it was set up. And it worked perfectly fine locally and on the dev server.

Unfortunately there were issues when deploying to the clients in-house server. At this point I was onto other projects while my co-worker continued with the deployment. He soon became frustrated with the goofy errors that were occurring and recruited some help. This dev came in and, albeit got it working, but in order to do so he removed the service reference from the silverlight project but left the ServiceReference.ClientConfig which pointed to the location of the service in the web application(but that's it, no definition or explanation as to what the service does and I'm not sure how the silverlight app is supposed to know how to work with it..). This works perfect on my co-workers workstation and he has deployed this version to the clients server fine.

When I open the project it doesn't run at all. And the reason why is that it doesn't know what the service is that i'm using in code. Specifically, it doesn't know where this is (names changed for clarification):

Imports SilverlightApp.ServiceReference.WebApp.Service

I have cleaned the solution, completely deleted and got the latest from source control, built the web app first and made sure the asp.net dev server was running so that the address in the ServiceReference.ClientConfig resolved correctly. But, alas, it still doesn't know what Imports SilverlightApp.ServiceReference.WebApp.Service is.

So, to get it working on my workstation, I added the ServiceReference back but kept the current connection bindings so that it matched the endpoint in the web app web config. and changed the import statement to Imports SilverlightApp.ServiceReference and everything works fine.

View 1 Replies

Calling .net 2.0 Web Service Only From Localhost?

Mar 14, 2012

Is it possible in .net 2.0 to enable calling web service only from localhost and to disable calling web service from outside?

View 1 Replies

Calling DLL From Service Not Working

Nov 26, 2009

Makeing a service that should call a DLL.. When I run it i a Windows form app it works but in the service nothing happens. no error?? Is there some considers that i have to take care of when calling a DLL from a service app?

[Code]...

View 3 Replies

Calling SharePoint Web Service Over SSL In .Net?

Oct 14, 2010

I'm trying to call the AddAttachment of the Lists.asmx SharePoint web service the below code works fine if I'm calling the web service over HTTP.

[Code]...

I will get the same 401 error (expected) so it appears the credentials are being accepted correctly over HTTP but not HTTPS. Can one help explain this to me and have any thoughts on how to fix the issue?

View 1 Replies

Calling Web Service With Java

Aug 25, 2010

What is the best solution (if any) for calling a vb.net web service with Java / JSP? If anyone could point me to any examples / references.

View 3 Replies

Dynamically Calling A Web Service?

Apr 23, 2010

I have a very simple web service that adds two integers

<WebMethod()> _
Public Function AddNumbers(ByVal a As Integer, ByVal b As Integer) As Integer
Return a + b
End Function

Is there a way to dynamically invoke this service without having to add a web reference from VS? Is it possible to maybe pass the parameters through the URL [URL]

View 1 Replies

Calling Web Service Which Returns XML Data

Aug 11, 2011

I have been given the task of calling a web service which returns an xml data feed which I am doing like so:
For Each r As DataRow in SomeDataTable
Dim msFeed As String = string.format("[URL]?param={0}", r!SOME_VAL)
Dim x As XDocument = XDocument.Load(msFeed)
Next
This is all fine but as you can see x just gets overwritten with every iteration. What I need is create an xDocument and add each feed from my loop but I am unsure how to proceed.

Solution
Dim xAllFeeds As XElement = New XElement("Feeds")
For Each r As DataRow in SomeDataTable
Dim msFeed As String = string.format("[URL]?param={0}", r!SOME_VAL)
Dim x As XDocument = XDocument.Load(msFeed)
xAllFeeds.Add(x.Root)
Next

View 1 Replies

Calling A Web Service That Requires Credentials: Error: A Security Token Is Required?

Dec 20, 2011

When I try to call a [Java] web service from .NET, I am getting what appears to be a security credentials issue. CWWSS5509E: A security token whose type is [http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken] is required.Is it even picking up the credentials that I am trying to pass? At this point, I just want to make contact with the web service and get access. In my example, ServiceReference1 is a generated Web proxy class.

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim myLocateProfileBySourceSystemId As New ServiceReference1.locateProfileBySourceSystemId

[code].....

View 1 Replies

Printing Files Using ProcessStartInfo?

Feb 12, 2009

I'm using the following sub to print files automatically:

Code:
Private Sub printFile(ByVal path As String)
Dim p As New System.Diagnostics.ProcessStartInfo(path)
p.Verb = "print"

[code].....

It works great for text, Word, RTF, Excel, PDF, etc. However, images load by default with Windows Picture and Fax viewer and then don't print.It looks from the MSDN docs like I should be able to reset the default application assigned to the extensions and then maybe I could find another app that will print properly. And the OS acts like it's doing that. When I double-click on the file it does open with the new app. But when the above sub runs, it reverts back to trying to open with Windows Picture and Fax Viewer.

View 1 Replies

C# - Setting ProcessStartInfo.WorkingDirectory To An UNC Path?

Apr 6, 2010

I have a utility that I have written in VB.net that runs as a scheduled tasks. It internally calls another executable and it has to access a mapped drive. Apparently windows has issues with scheduled tasks accessing mapped drives when the user is not logged on, even when the authentication credentials are supplied to the task itself. Ok, fine.

To get around this I just passed my application the UNC path.

process.StartInfo.FileName = 'name of executable'
process.StartInfo.WorkingDirectory = '\unc path'
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
process.StartInfo.Arguments = 'arguments to executable'
process.Start()

This is the same implementation I used with the mapped drive, however using the UNC path, the process is not behaving as if the UNC path is the working directory.

Are there any known issues setting ProcessStartInfo.WorkingDirectory to an UNC path?

View 1 Replies

How To Use ProcessStartInfo To Run At Lowest Execution Level

May 10, 2011

I have an application that runs using as AsInvoker manifest, this uses ProcessStartInfo to run another application that is using a HighestAvailable manifest (in my case this runs as Admin and I get the UAC prompt) the first app then quits. The second app then uses ProcessStartInfo to run the first app again, this time it runs as admin (no UAC prompt) I guess this is correct because it is AsInvoker and it is being invoke from an application that is running as admin, but I actually want it to run without Admin rights - or more correctly run it with the lowest possible execution level..I know you can use ProcessStartInfo.Verb = "runas" to elevate but can you descend?

View 2 Replies

.net - ProcessStartInfo Print Verb Does Not Exist For .tif Images

Jun 1, 2009

We have a piece of software that attempts to print .tif images using a ProcessStartInfo object. It sets the Verb property to "print" and the FileName property to the path of the image. It then sets the UseShellExecute property to true and executes the Process.Start() method.

However, nothing happens. I created a small test program to list the Verbs associated with .tif images and it only shows "Shell", but not "print".

I cannot modify this piece of software, so is there a way to define or register the "print" verb for .tif image types to allow them to print?

View 1 Replies

ProcessStartInfo And Access Rights Are Not Recognized Correctly

Aug 30, 2011

I am using the following code and a remote server:

[Code]...

The problem is that the acceess rights are not recognized correctly. If I log in manually with the same credentials then the rights are set correctly. Is there something else that need to be set for this towork correctly? I just realized I clicked VS.net instead of VB.net (moderator move this to correct area.)

View 2 Replies

System.diagnostics.ProcessStartInfo CreateNoWindow Not Working?

May 18, 2010

i'm trying to launch mpc(media player classic) in background for playing some music.

Like it's supposed to be background, i don't want the player to be visible.

I've tryed this out (see below) without expected result. What should i do ?

Dim proc As New Process Dim IS_READING As Boolean = False Try

[Code]...

View 7 Replies

Error-:-The Parameter Is Incorrect - Boolean StartWithCreateProcess(System.Diagnostics.ProcessStartInfo)?

Jun 30, 2009

I have a service that runs under local system that I need to have execute an external .exe using alternate credentials. Using the code I have posted here, I get the error "Error-:-The parameter is incorrect" and the target site is "Boolean tartWithCreateProcess(System.Diagnostics.ProcessStartInfo)"Here is the code:

Try
Dim AuditProcess As New Process
Dim p As System.Security.SecureString = New System.Security.SecureString

[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

Windows Service Running Under A Network Account Is Calling An EXE And Running It Under System Account?

Aug 27, 2010

We have a windows service running under a network account that calls and runs an ActiveX exe. The exe is running under the local system account, not the network account of the service.

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

Warning1 The Service System.ComponentModel.Design.IInheritanceService Already Exists In The Service Container

Mar 15, 2010

I got this warning that I don't know what it means.Warning1 The service System.ComponentModel.Design.IInheritanceService already exists in the service container.Parameter name: serviceType00

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

Have A Dotnet Windows Service Which Monitor Other Services And Upon Stop Of Any Service?

Sep 18, 2009

Is it possible to have a dotnet windows service which monitor other services and upon stop of any service, the monitoring service would be able to start the stopped service.

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

Use Windows Search Service Instead Of The Old Indexing Service To Index Files?

Jul 7, 2009

In the past I had the indexing service installed on a Windows Server 2003 and used it to index files for my website. I did this by executing an OleDbCommand with a query and a connection string.How do I accomplish the same thing with the new "Windows Search Service" (Windows Server 2008) by using VB.NET? Does this work the same way so that I only need to change the Provider name which has been "MSIDXS.1" up to now? Case true, what is the new Provider name?

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

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

Windows Service: Multiple Instances Of The Same Service Class?

May 3, 2011

When you create a Windows Service, you create a list of the services you want to start. The default is this:

ServicesToRun = New System.ServiceProcess.ServiceBase() {New Service}

Can you have multiple instances of the same Service class (that bind to different addresses or ports), like this?

ServicesToRun = New System.ServiceProcess.ServiceBase() {New Service("Option1"), New Service("Option2")}

Or will that cause problems? Should we use two different classes instead?

View 1 Replies

Service Deployement - How To Deploy A Service Made In VB

Aug 31, 2011

how to deploy a service made in VB.net. Most of the websites just say use installutil.exe this is fine while your testing your service on your local machine whit vs2010 on it. I am in the final stage now of my service like 99% is done and my last % is how to get my service installed on the server i need it on. I can't publish because this wont work with a VB.net Service Project. So all i want is a clean and easy Tutorial or Someone who can explain me how to do this without the need to install VS2010 on the server to get install-util.

View 4 Replies







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