Can i consume WCF service inside windows mobile 6 project??
I spend many days to solve my problem of adding web reference of WCF to smartdevice project
but the smae error appears.
There was an error downloading 'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8731
There was an error downloading 'http://localhost:8731/Desi
So i ask is it possible to consume WCF from windows mobile 6 project??
I create WCF and windows mobile projects in visual studio 2008 and when i "add web reference" to the mobile project to add the WCF and put the URL i get this error
"There was an error downloading 'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8731
There was an error downloading 'http://localhost:8731/Desi"
however i change the "localhost" to my computer IP address the same error appeared.
How can i write the URL that will be put in the client application.
The important part of the error is "Unable to connect"
This means that the add service reference has tried to make a call to the service, but the call failed.
The most likely reasons for this are:
The service is not running
The metadata exchange (mex endpoint) is not enabled
It looks like you're trying to get the Mex, but the service isn't running on the dev machine:
Try going to this url in your browser
http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex
you'll probably get the same error (machine actively refused it)
Make sure the service is started.
Related
I have an application (API and the web app runs on the same port number). Which works perfectly when I host it in my iis. But when I do the same on the client machine it says
"POST XHR
http://localhost:12345/api/Login/InsertUser [HTTP/1.1 404 Not Found 3ms]".
When I open the url "http://localhost:12345/api/Login/InsertUser" in my local machine it opens without any errors. But if i do the same on the client machine it throws an error that the method name is changed or not found.
I have done the web app using angular js and API is written in C# and Back End using SQL Server.
Do I need to enable any thing on IIS . I tried adding the MIME Type Json in the IIS. Still it did not work. Can anyone help me out with this issue. Thanks
I was trying to create azure mobile service from VS 2013, 2 issues I am facing.
Host in cloud option is disabled.
Getting error on click of Validate connection while publishing the project. error thrown there is "Destination is unreachable".
Log I have extracted from output window is :
Error ERROR_DESTINATION_NOT_REACHABLE: Web deployment task failed. (Could not connect to the remote computer ("****.scm.azure-mobile.net"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.)
I have attached screenshot you reference. Please check.
gone through similar question : Not able to publish website on Windows Azure using publish through VS2010
didnt helped though.
Can anyone help me to resolve these issues..? Appreciate the help.
Regards
Ravi Bhat
I encounter this error as well.
I tried changed two things and it works, yet now I don't remember which one is the root cause:
use https instead of http for the server address and destination URL
My company has proxy settings for all internet access, I change to the other WIFI without any proxy. So check your internet connection.
You could try this, but I'm not sure if it works.
I created a WCF service. It uses MySQL Connector to connect to a MySQL Database. The consumer of the service is a Windows Phone app.
On my computer everything works great. But if I publish the WCF Service (on the web or on localhost), and try to use it from the phone application, it generates an error
"The server was unable to process the request due to an internal
error."
By testing I found out that the error comes at the line connection = new MySqlConnection(ConnectionString); On my laptop everything worked (when I debugged the project), I tested my WCF Service and it perfectly accessed the database and did everything well. Again, when I publish at localhost or on web, accessing the service causes an error.
I published the log file here.
What is wrong? What can cause this problem?
Finally, I found what was the problem.
This question helped a lot. It turned out that the problem was with MySql.Data.dll. It must be copied locally (by default that property is set to false). Without that, the program doesn't find the library and throws an exception. So I needed to change the setting to 'Copy To Local = true'
Built a simple MVC3 web app to ping a few of our servers for small bits of JSON data and report in a quick UI as a monitoring solution, deployed on Windows 2008 to IIS 7.
All of the outbound HTTP requests via the WebRequest class end up in a error: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25946
Code works fine when running on a console app on the same server, or as console or web app running on a dev machine. Its only when running as a web app in IIS on the production server that this error happens.
The web app can connect to SQL server and MongoDB but fails at any plain HTTP request. Using an empty WebProxy set to localhost. (with the period) changes the reported error to a 404.
Try looking at the Host (or LMHost) files and make sure that there are no issues wit them.
I am trying to access a web service which is hosted by a third party service.
I am able to browse through the web service URL. The issue right now is am
not able to connect to the webserivce when I try access from IIS(5.1).
From the visual studio web server I am able to connect and get the results
When I try from IIS am getting the following error
"No connection could be made because the target machine actively refused it "
Thanks,
Nithin