Welcome to ZaiZheLe Developer Zone-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

c# - Service Reference Error on Deployed Server(Being targeted to local path of service reference class)

I have a console application, also I have added a service reference, it is working fine on the local PC.

But When I am trying to run the EXE file of it on the remote server, it's giving an error that the path not found as its targeting the local path on a server as well, please suggest to me a way to deploy it or how can I change the path of service ref so it should target server folder for service reference.

Please find attached a screenshot, Its being targeted to local path for reference.cs class

I have used below article to add wcf service ref, its working on local, and on server its targeting same path to get service ref classes.

consuming-wcf-service-in-console-application

Click to see screenshot


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to ZaiZheLe Developer Zone-Open, Learning and Share
...