HI I want to create an ios application in visual studio using xamarin.
But After creating project it is asking us to connect to mac.
Which Credentials it is asking for and how to find it.
I think you are making use of Xamarin.VS Build Host Application
Refer :
https://developer.xamarin.com/guides/ios/getting_started/installation/windows/xamarin-mac-agent/#Windows_Setup
https://msdn.microsoft.com/en-us/library/mt299001.aspx?f=255&MSPPError=-2147217396#AddiOS
Are you tired of getting the below error on pairing to mac from a windows system
Invalid credentials. Please try again
Never thought that pairing to mac from a windows system would be this simple!
Username : Name displayed while you log-in to open your Mac system
Password : Password you enter to log-in for the above username displayed
Still not sure?
Choose System Preferences from the Apple menu, then click Users & Groups.
You can see user name as Current User Reference : https://support.apple.com/en-in/HT202860
To know the Mac IP address, check manually add a mac from https://learn.microsoft.com/en-gb/xamarin/ios/get-started/installation/windows/connecting-to-mac/#manually-add-a-mac
Detailed reference : https://learn.microsoft.com/en-gb/xamarin/ios/get-started/installation/windows/connecting-to-mac/
Related
I'm willing to let the user to create a dummy Wlan network profile through my windows 10 application and edit it afterwards using windows UI.
I've managed to do so using NativeWifi WlanSetProfile function with one of those profile Xml samples, but, when I'm opening the windows edit profile UI using the WlanUIEditProfile function, I can change the security type drop down (from WPA2-Personal to WPA2-Enterprise for example) but when I'm trying to save it (press OK) I'm receiving the following message:
"Windows has encountered an error saving the wireless profile.
Specific error: The network connection profile is corrupted."
I'm able to change and save all the other properties besides the security type.
I'll be glad if someone can help me resolve this issue.
I also met this problem.
Now I fix it like this:
In my profile
old settings:
WPA2PSK
AES
and changed to new setings:
WPAPSK
TKIP.
My Win10 version: 1607(OS build 14393.0).
I have to implement a biometric system. Im using ZKTeco LP600 time attendance device and ZKTeco SDK (ZKemKeeper.dll) here its the situation:
When I try to connect to device with no security password(the one who configure in the device > menu > communication > security > 6 digit Password ) I achieve it without any trouble.
But when I put some password things go wrong...I recive the error -6
Im using: bool isConn= axCZKEM1.Connect_Net(devIP,4370);
This is the answer to my own question if someone need the info in the future. After checking the class dictionary (Which I found in a remote place in the zk page) there's a method call SetCommPassword(int password) which you must set before use the Connect_Net method. Theres many strange things in this dll and im still trying to understand some....
Recently I was thinking of a way to confirm the user info inside an app.
Is the typed email, the windows phone live-id of the device?
Is the typed number, the windows phone card-number of the device?
All I know until now is that I can get some info from windows phone SDK.
For DeviceId (hash) I use DeviceEctendedProperties, based on device serial i suppose
For UserId (hash) I use UserExtendedProperties, based on user live id i suppose
And with that we can identify a user and a device.
To get the right info from user like email and phone number you must ask him.
So the question: Is there any way to validate the user entry?
For example:
App -> Form - > form_info(email, phone) -> Validate(form_info) -> Success OR Unsuccess
For Validate() i was thinking of something like:
form_info -> function_hasher() -> form_info_hash -> IF form_info_hash MATCHES with UserId (hash) and UserPhone (hash)
If there is a UserPhone hash to match the number of card!
I'm pretty sure there's no way to get this data or even verify that it's right, short of asking the user to email/SMS a particular address/phone number. If you want to go that route you can use a SmsComposeTask or an EmailComposeTask.
I had been stuck with the problem and research for it for few days but to no avail.
I'm working on a c# project and my program will automactically read the username from the user's windows whenever the user try to access the web application through the internet.
I tried with the following commands below and it works when I'm debugging the program/ running from localhost in the server. It managed to grab my username from windows and appear on the application.
(HttpContext.Current.User.Identity.Name);
(System.Environment.UserName);
(WindowsIdentity.GetCurrent().Name);
(Page.User.Identity.Name);
(System.Security.Principal.WindowsIdentity.GetCurrent().Name);
However, they did not work when I publish it and tried to access them from the web.
Instead, it gives me the following ID which I suspect is from the IIS7/ windows server 2008 that I host my site at. Rather than giving me the username from the user's console.
-there is no value-
-it gives me my server name
NTAUTHORITY\NETWORKSERVICE
-there is no value-
NTAUTHORITY\NETWORKSERVICE
May I know what went wrong in this case?
Another thing, through my research, I learnt how to get the username/ userdomain through the cmd.exe with commands below.
echo %username%
set username
wmic useraccount where name=%username% get name
wmic useraccount where name=%username% get sid
whoami
whoami/user
May I know if it's possible to apply these commands in windows visual studio for me to read the username from the user'windows when they access my webpage?
So, I hope I can get some advice from the users from this community. Thank you!
I solved the problem already.
Problem lies in the IIS. I checked against the authentication method and turned off everything except windows. From there, I checked against the web.config and ensure that the is turned to "false".
I also used HttpContext.Current.User.Identity.Name to get the username from the user's console.
I'm writing the windows form program to monitor our in-house windows services.
The screenshot is provided for the draft version of that program.
What I want to do is... I want to pass UserName & Password to run the services from my program. I don't know which class or components to use.
I tried to use the following codes, as we used in Installing the services. However, it does not still work. Perhaps, I don't know how to bind the user credential with service controller.
ServiceProcessInstaller serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.User;
serviceProcessInstaller1.Password = txtPassword.Text;
serviceProcessInstaller1.Username = txtUserName.Text;
So, Please advise me how could I achieve my requirements? Thanks.
Have a look at this library which lets you do just that:
Install a Windows Service in a smart way instead of using the Windows Installer MSI package
Since you are trying to manipulate the account that an existing, installed service is running under, you will need to use the code specified in the following article:
http://weblogs.asp.net/avnerk/archive/2007/05/08/setting-windows-service-account-c-and-wmi.aspx
Basically, the author found that it wasn't as simple as expected but it was possible (without a registry modification).