Færdiggjort

Problem with service written in C#

This issue is that running the code in the foreground works but once run it the background it gets a 500 error, we need someone to resolve this error.

Window console Application for Fetching Camera details in Milestone management server

1. Calling a web service (http://localhost/ServerAPI/[login to view URL]) for getting XML file at run time data.

The SOAP method GetConfiguration provides more info per camera, and information about other device types.

2. Web service return XML file which contain Camera IP and respective Metadata.

3. Required IP and Metadata is getting by parsing the XML

Typical operations on this SOAP service are:

1. Logon via Active Directory and retrieve an XProtect token for e.g. the ImageServer Protocol

2. Retrieve configuration (if on a XProtect Corporate system)

3. Trigger user-defined events with or without metadata (e.g. camera guids)

4. Create and query bookmarks related to a camera

Running console Application as background service:

1. Calling a web service (http://localhost/ServerAPI/[login to view URL]) for getting XML file at run time data.

Throws Exception: The remote server returned an error: (500) Internal Server Error. at [login to view URL]()

In milestone asp.net web app that dynamically generates an XML file and sends it to a [login to view URL] web service

Things were great in calling console application and Scheduled it in Task scheduler.

But when set to Service (background task) it throws this error --> The remote server returned an error: (500) Internal Server Error. at [login to view URL]()

public void Cam()

{

[login to view URL](@"C:\temp\[login to view URL]", [login to view URL]("Started on {0} {1}", [login to view URL] + " " + [login to view URL], [login to view URL]));

String xmlStr = readXmlFile("http://localhost/ServerAPI/[login to view URL]");

}

private String readXmlFile(String urlStr)

{

[login to view URL](@"C:\temp\[login to view URL]", [login to view URL]("Started on {0} {1}", [login to view URL] + " " + [login to view URL], [login to view URL]));

try

{

HttpWebRequest request = (HttpWebRequest)[login to view URL](urlStr);

[login to view URL] = [login to view URL];

HttpWebResponse response = (HttpWebResponse)[login to view URL]();

Stream iDataStream = [login to view URL]();

StreamReader reader = new StreamReader(iDataStream);

string xmlStr = [login to view URL]();

[login to view URL]();

[login to view URL]();

[login to view URL]();

return xmlStr;

}

catch (Exception e)

{

[login to view URL](@"C:\temp\[login to view URL]", [login to view URL]("Started on {0} {1}", [login to view URL] + " " + DateTime.Now.Millisecond+ " "+e.Message+ " HResult" + [login to view URL] + " [login to view URL] "+ [login to view URL], [login to view URL]));

return "";

}

Evner: .NET, C# Programmering, PHP, Software Arkitektur, XML

Se mere: Only written c program, Problem solving by c++, I need $ 95 in my skrill account l I am ready to pay $ 155or service give extra This service Please only serious offers people w, c# problems, c# programming problems and solutions pdf, c# common mistakes, c# windows service exception handling, software development, c# programming, .net, debugging, programming and problem solving with c++, this assignment asks you to find and record in a provided spreadsheet as many websites written in, start now - c# forms application to query and write to database, solve this issue for me, solve this issue for me!!, user interface query string, user friendly query, program written java graphical user interface calculate display monthly payment amount fully amortize loan year term interest , popup window user leaves website

Om arbejdsgiveren:
( 0 bedømmelser ) Garfield, United States

Projekt ID: #17262167

Tildelt til:

$25 USD på 1 dag
(0 bedømmelser)
0.0

13 freelancere byder i gennemsnit $25 på dette job

mrkrunaldoshi

Dear Sir/Madam, Greetings for the day! I am Krunal, having 12+ years of exp. having completed majority of projects with MS technologies. I have resolved many issues in my career. I am confident i can resolve t Flere

$40 USD in 0 dage
(46 bedømmelser)
6.0
azmatakhtar

Hello, can you give me access to sort it out for you. i have experience in c# and also know milestone but iam sure milestone knowledge is not required here

$30 USD på 1 dag
(62 bedømmelser)
6.0
shaktistanwar

Hi I am a technical evangelist, developer and can do this task for you. I have more than 12 years of experience in software development and am a microsoft certified professional.I have strong work experience in Reac Flere

$25 USD på 1 dag
(41 bedømmelser)
5.5
$30 USD in 2 dage
(70 bedømmelser)
5.0
djpeka

Hello. As a professional programmer, I can troubleshoot and fix the issue right away. Just hit me up!

$15 USD in 0 dage
(12 bedømmelser)
4.1
deepthi2889

Hi, I am a Full stack developer in Microsoft technologies. My area of expertise is web application development (asp.Net web forms, MVC, classic ASP), web services (SOAP & RESTFul), MySql & Sql Server as back end (t Flere

$30 USD in 0 dage
(7 bedømmelser)
3.6
maheshml13

Hi, I am expert in c# programming with webservice. I can do this. Hoping for positive response. Thanks Mahesh

$30 USD på 1 dag
(7 bedømmelser)
3.3
$25 USD på 1 dag
(4 bedømmelser)
3.3
$25 USD på 1 dag
(9 bedømmelser)
3.0
bitterpotato

Hi. If i am able to debug the console app locally, I will be able to solve this issue.

$20 USD på 1 dag
(1 bedømmelse)
0.8
$25 USD in 3 dage
(0 bedømmelser)
0.0
$10 USD in 3 dage
(0 bedømmelser)
0.0