Solved

c# express consumption of wcf works in development but not when installed using click once.

Posted on 2011-09-21
3
322 Views
Last Modified: 2012-05-12
Hi

I have created two systems:
1. A c# express 2010 winform that will sit at the cleints.  It will read a sql server database and send the information to:
2. A asp.net wcf 2010 web service which sits on my web server.

I have published the c# express winform client with "publish" with a "click ionce" option hosted on my web server.

The problem:
On my development machine everything works fine.  Then from the same deveopment machine I used the click once and installed.

The installation seems to be crashing on:

            EvalServiceClient svcClient = new EvalServiceClient();
            string cXmlClasses = svcClient.SendClassesList(27, txtUsername.Text.Trim(), txtPassword.Text.Trim());

where I am trying to invoke the web service I have installed on my web server.

Thanks

Yaacov
0
Comment
Question by:ygreenstein
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 125 total points
ID: 36580538
"Seems to be crashing"
What indications are you getting?  Are there any log entries in the event log?  Are you trapping, and logging exceptions for the client application?
0
 
LVL 4

Assisted Solution

by:theHollow
theHollow earned 125 total points
ID: 36585299
What is the Exception you get? Create a try/catch around the problem code.

It may be authentication to the service that has to be entered.
But I need to see the exception.
0
 

Author Comment

by:ygreenstein
ID: 36585424
Thanks The LearnedOne and theHollow.  I got stuck on an additional problem and when I work it out I will add the catch and send the exception.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question