I am a fan of Microsoft. I am beginner in windows phone app development. I have faced a big problem, i can't over come it for few days. When i try to connect to wcf service from windows phone 8 (vs 2013 pro 64 bit) an exception arises such as-
An exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.ni.dll but was not handled in user code.
Additional information: The remote server returned an error: NotFound.
My Code- private void GetData()
{
ADARA.WsBankUltimusCoreService.InterfaceToFetchServiceClient clientForTesting = new ADARA.WsBankUltimusCoreService.InterfaceToFetchServiceClient(); clientForTesting.EnquiryAccountSummuryCompleted += new EventHandler<WsBankUltimusCoreService.EnquiryAccountSummuryCompletedEventArgs> (TestCallback); clientForTesting.EnquiryAccountSummuryAsync("0000217392", "1", "mobilebanking", "QmkAc", "json");
}
private void TestCallback(object sender, WsBankUltimusCoreService.EnquiryAccountSummuryCompletedEventArgs e)
{
var test = e.Result;
}
Additional information:
Emulator can't access internet.
Network type- Static IP (not DHCP).
Emulator displays IP(Adapter-2)- 169.254.143.163.
Status of vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch) is- Unidentified network.
IP of WCF Service- 192.168.20.233
IP of Client - 192.168.20.234
used tools-
Service- VS 2012
Client- VS 2013 pro + Win phone 8.0
Both Client and Server exist in a same LAN, so wcf service is remote(not local) from client.
Really i am in trouble, please help me as soon as possible.
Related
This simple code shows an error in a UWP application : MySql.Data.MySqlClient.MySqlException: 'Unable to connect to any of the specified MySQL hosts.'
using MySql.Data.MySqlClient;
string connString = "Server=serverName; Uid=user; Password=password; Database=db; SslMode=none";
MySqlConnection conn = new MySqlConnection(connString);
conn.Open();
Console.WriteLine($"Mysql version : {conn.ServerVersion}");
conn.Close();
The problem is that exact same code works perfectly fine when creating a Console app with .net framework 4.8, and also a console app built in .net Core 5 or 6.
Do you have any idea of what may causes this error message in UWP ?
Edit : no matter which sql connector is used, the result is always the same.
Edit 2 : server is another computer, located on the same lan.
If you are connecting to the localhost, please make sure Enabling loopback for a UWP application in your device. UWP apps have limitations because it's running in the sandbox, so if you want to connect to the local host, it is necessary to enable the local loopback for your device.
How can i connect to private blockchain from metamask using windows 7.I have created private blockchain in my pc of windows 10 and i have connected to my network using metamask .I have also connected another pc with windows 10 to my network from metamask.But when i tried to connected my network another pc which has windows 7 it is not getting connected (I have turned off firewall setting in pc's).Could anyone please help with solution. Thank you in advance.?
with the reference to the Link
I am getting an error while running the application.
I am unable to find the solution to the problem.
May be you getting error because you are trying to call web service from local host. Host your web service some where in Http(Url). Windows phone emulator doesn't allow to call service from local host.
Developing a multiplayer game for Android and using the AIR SocketServer class to communicate between server and client AIR applications.
On Windows 8 I am using Virtual Router Plus to set up my PC laptop(where the server app is running) as a wifi hotspot.
I run ipconfig in cmd after my wifi is running to grab the ipv4 IP address under 'Wireless LAN adapter Local Area Connection'
This is the IP I bind to in the server app and connect to in the client app.
If I launch both server and client on the same machine, everything works fine.
When I install the client app on my Android device, I am unable to establish a socket connection. The WiFi is running properly on my Android device.
Is a policy file necessary on the server machine when creating socketserver connections over a local wifi network?
If so, shouldn't the client app be throwing a security error when it tries to connect?
I am lost as to what my troubleshooting steps should be. ANY tips or feedback appreciated!
This happend because, the AIR Socket communication works only in Desktop application.
Try this native extension, it works perfectly form me:
http://blog.aboutme.be/2011/12/14/udp-native-extension-for-air-mobile-now-with-android-support/
I am using this code for Windows phone and server communication using WCF for sending my data from phone to server and get response. But I am getting error "The remote server returned an error: NotFound."
How this URI is created:
string ServiceUri = "http://localhost:30576/Service1.svc/Rest/add/"
+ Number1 + "/" + Number2;
I did not understand from where /Rest/add/ came from. I may be getting error due to this.
Look at the web.config, at the "RESTEndPoint" section. His base address for the endpoint is "rest". So you have to use what ever is there in your web.config endpoint address.