Calling a Web Service in a Console Application Using Windows Task Scheduler - web-services

I need to sync a sql server database with data hosted on another web server. I wrote a C# console Application to call a web service to give me the data hosted on the other web server. I set up a job to run every 10 minutes in task scheduler in "Server Manager" for Windows Server 2008 R2 Enterprise Edition.
If I run the console application myself then everything works as it should. If I run it in the Task Scheduler using my username it also runs as it should. However if I run it using the NETWORK SERVICE user, which is what I need to do, then the app stops running once I try to contact the web service.
Where do I give NETWORK SERVICE the permissions to call a web service?

It turns out that the their is the local services on my company servers are not allowed to call web services. I need to make a new internal account. Thanks Rene for your help.

Related

Keep .NET core web app running on kestrel in production

I'm hosting a web app on an EC2 instance in AWS. I will have nginx or an ELB in front of my web server, but on the web server itself the .net core app will be running on kestrel with dotnet Mywebsite.dll, if I understand correctly.
Whats the best way to keep this process running, and to automatically restart it is something goes wrong and to automatically start it up on reboot?
I'm currently trying to use supervisor to manage it but its adding a fair bit of complexity just getting it all up and running on a Amazon AMI.
Is there not a built in mechanism? How do you run your .net core web apps on linux in prod?

Do i need a localhost server to invoke a web service

I'm very fresh and beginner in the web services world, I'm trying to learn how to deploy and consume services.
My question: Using any technology (such as Java), when I want to invoke some web service that is deployed in a remote server, do i need to install and configure a localhost server in order to access the web service? or I can access it without install server
Note: I'm asking about consuming a web service not developing a one
Thanks in advance
No. Just as your web browser doesn't require a web server to access other web servers, your code doesn't require a web server to access other web servers.

Windows Process Activation / Windows Service

I currently have a WCF service hosted in IIS and using WPAS to send messages from MSMQ to it. I would like to host the service in a windows service. Will WPAS still send messages to it when it is hosted as a windows service?
I dont think so. WPAS is integrated and work with IIS. If you host your service in Windows Service, then OS will be responsible for starting and stopping your service. But if you want additional functionality, you have to add code for it

Calling services from Remote server in Azure

I'm developing a LMS application in VS-2012 with SQL server 2008 R2.I have a web service hosted in my local server.I don't want this to be published or moved to Azure
rather I would like to make a call of this service (remote server) from Azure.
How do I achieve them?
I'm very new to the Azure technology.Kindly explain in brief.
If the local server is public so it can be reach from internet you can just call it. However if its on your local network and you don't want to expose it you will have to connect it to an Azure Virtual network using VPN, read more here

how to start Process.start from a web service hosted via a windows service

I am trying to call Proccess.Start("") from a WCF REST service hosted in a Windows Service through its OnStart method. And i am returning a bool as Process.Start(), though it is returning true, the process is not started.
Please provide me a way to solve this issue. and how can i start a process from a web service hosted through a windows service