Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.1k 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 Reply

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...