I have been trying to connect my paid individual account to Visual Studio 2022
I have entered the keyName, Issuer ID, KEY ID and downloaded the private key exactly as in https://learn.microsoft.com/en-us/dotnet/maui/ios/apple-account-management?view=net-maui-7.0&tabs=vs
but when I click on add button nothing occur and no error message is shown,
I have also visual studio 2019 installed on the same machine but also cannot add the account using the user name and the password
any one has any idea about the reason
Make sure that you go into Tools > Options > Xamarin and add your Apple developer account by using the Apple ID that is affiliated with that account.
When that is complete, you can highlight it, then click on View Details to see your Certificates and Profiles. If none are there, create a Certificate and Download all profiles.
Related
I have a UWP app I work on from two difference devices. After the latest Visual Studio 2019 update I began receiving this error:
No certificate found with the supplied thumbprint: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The app previously had the temporary key Visual Studio used to auto generate that it no longer does. I generated a new key file from the instructions at this link
https://learn.microsoft.com/en-us/windows/msix/package/create-certificate-package-signing and that worked on my desktop. I was able to select the certificate in the package manifest, update the "PackageCertificateThumbprint" in the csproj file and then both build and create the sideload package.
Now, switch to my laptop. I get the above errors again even though I've brought the cert I created over to that machine. The package GUI tells me that there isn't a valid cert to use. I've tried adding that cert to the local machine to no avail.
What am I missing that I should be doing?
My goal is to be able to develop on two different workstations without having to do a dance of creating a new cert everytime I switch one or have to update the csproj file every time I switch from one to the other.
This is a personal project, it's not to the point of going to the store but I do need to dev on two boxes and create side load packages for a set of testers.
Right click the project -> Properties -> Package Manifest
On the Package.appxmanifest go to Packaging tab -> Choose Certificate
In the new window click "Select a Certificate..." if you have one, or create a certificate if you haven't created one
(https://learn.microsoft.com/en-us/windows/uwp/packaging/create-certificate-package-signing)
Source - https://github.com/microsoft/AdaptiveCards/issues/3194#issuecomment-516100011
Unload project.
Edit project file.
Make sure package cert is the same as the one you intend to use.
When i switched to vs 2019 it switched to an old one.
It may old certificate invalid or no Certificate Available, so that we need to create new certificate following way:
Double Click Package.appxmanifest file
Go to the Packaging tab.
the 'Choose Certificate…' button.
Click Create
if Developer Mode is disable kindly enabled
Click OK
Rebuild Project its working fine.
You can try two ways to solve this problem:
Clean solution and restart the visual studio then rebuild the solution.
Delete the test certificate.
Best regards.
I'm trying to use an iPhone 6 for running Xamarin.iOS app.
I connect iPhone to my Mac(in VMware), and not Windows Machine When I select iPhone in VS 2015 menu my iPhone name appear on VS 2015.
However , always show loading in Main.storyboard and doesn't show design and when I run the project I get this error :
Error : MessagingRemoteException: An error occured on client Build42217 executing a reply for topic xvs/Build/4.2.2.11/execute-
task/Lesson1/7b0d249%FDetectSigningldentiy
DirectoryNotFounfException: Directory '/Users/arazpashazadeh/Library/MobileDevice/Provisioning Profiles' not found.
What solution would you recommend to solve this problem?
This is what I do when i want to build on my Iphone
To deploy on your device, you need :
A Macintosh
Connect visual studio with MacAgent to your Macintosh
Create X-Code project to create a Bundle identifier
Plug your device on your mac
Build it on your device
Don't forget to authorize your app in (settings -> General -> Profils -> Dev App )
In xCode project in info.plist copy Bundle indentifier and paste it in your VS info.plist
Hope this helps you
Regards
1) If you haven't created a development provisioning profile for your device, follow this manual:
https://developer.xamarin.com/guides/ios/getting_started/installation/device_provisioning/
2) If you had created the profile before, open Xcode, click Xcode in the top left corner of the screen, click Preferences, click Accounts, sign in if needed, click View Details and click Download All Profiles.
3) Consider restarting the Visual Studio to synchronize.
Also make sure that your profiles are not expired.
You can also check the '/Users/arazpashazadeh/Library/MobileDevice/Provisioning Profiles' directory:
Inside VMWare, click Shift+Win+G, type ~/Library and navigate to Mobile Device folder. If you see Provisioning Profiles folder in there but it still doesn't work, you can try to move it to trash and repeat step #2 and #3.
Thank you for your guidance but when I log on to the Developer Center to accept license show me : To continue your enrollment, complete your purchase now and redirect me to Purchase Details page to pay US$ 99 cost for 1 year , but in the above link not to pay cost.
then I try generate a development certificate manually again redirect to Purchase Details page to pay US$ 99 cost for 1 year.
Why this happened to me؟
I try second step and add my Apple ID but in the View Details I don't have profiles for download
why created a development step different for me?
I have enabled SSL in Visual Studio as shown below:
I have also set the below:
When I access the website via IE (via Visual Studio debugging) I see this:
When I access the website via Firefox (via Visual Studio debugging) I see this:
There is no option to progress to the website in either Firefox or IE. I have spent all day trying to understand what is wrong. What am I doing wrong?
I see this EXACT problem from time to time, when using SSL, and have found that (especially when working on someone else's project in a team environment) the Visual Studio project web settings (SSL ports) sometimes get messed up. Here's what I do to fix them:
In Solution Explorer, click your project.
Hit the F4 key (view properties).
Copy the URL (NOT the SSL URL).
Paste the URL into the Project Url on the Web Tab, Save.
In Solution Explorer, click your project.
Hit the F4 key (view properties).
Change SSL Enabled to false.
Change it back to true. There should be a new SSL URL. Copy it.
Paste the new SSL URL into Project URL on Web tab. Click Create Virtual Directory.
Click Override application root URL, and paste in SSL URL. Save.
This always solves the issue for me.
Say you have a .NET MVC or Web API project and you’d like to run it on SSL. In other words you’d like to start up the project on a URL similar to https://localhost:xxxx.
The first step is easy. You just select the MVC/Web API project name in the solution and locate the property called “SSL Enabled” in properties window:
The same properties window will also show the HTTPS url for the application. In the above example it’s https://localhost:44300/. Copy that URL and go to the project properties window. Locate the Web tab and override the Project Url property with the https address:
Start the application. You’ll likely get a message in the browser saying that the localhost address is not trusted, you can continue to the website at your own risk. Here’s a Chrome example in Swedish:
The problem is that the certificate that was installed automatically for you by Visual Studio is not trusted. You can locate the certificate in the Personal folder of the computer-level certificates in the certificates snap-in:
If you double-click the certificate you’ll see that it’s not trusted:
The message also provides the solution: the certificate must be imported into the trusted root certification authorities folder. You’ll see that as a folder in the same snap-in just below “Personal”. So how can we do that?
EXPORT
Right-click the certificate
Select All Tasks
Export… from the context menu.
Click Next on the certificate export wizard.
Leave the “Do not export the private key” option untouched, click Next.
Accept the default on the next screen, i.e. “DER encoded binary X.509” should stay selected, then click Next.
Provide a name and a location for the exported file. Call it “localhost” and save it in a location where you can easily find it.
Click Next and the Finish.
There should be a popup message saying that the export was successful.
IMPORT
Next right-click the folder called Trusted Root Certification Authorities and select All Tasks
Import… from the context menu.
Leave the “Local Machine” option untouched in the certificate import wizard, click Next.
Browse to the certificate you saved just before.
Click Next and accept all the default values along the way until you reach the end of the wizard.
There should be a message saying that the import was successful.
If you now go back to the Personal store and double-click the localhost certificate then you should see that it’s trusted:
OK, let’s start the .NET web project again, the opening page should open without any warning. If you still see the same issue then test it a brand new browser session, e.g. here in IE:
You can also view the extracted certificate from the browser window. Here’s an example from IE:
#MattW I am using Mac and was facing this issue. I am using Visual Studio 2019 for Mac on macOS Catalina. I opened the "Project Options" for my project and changed "HTTP" to "HTTPS" in "App URL" under Default Run Configuration for ASP.NET Core
I already had a self-signed certificate for localhost, so Visual Studio gave me a message box asking me to use that Development certificate from Keychain. It asked for my password and used the certificate. The application worked without any issue on "HTTPS"
In case you do not have the development certificate you can generate one, using the following command in your Mac:
dotnet dev-certs https --clean
dotnet dev-certs https --trust
Read more at https://learn.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-3.1&tabs=netcore-cli
If you have a Web Site project, with the globe icon in Solution Explorer, enabling SSL goes a little different from a Web App project, with the globe in a rectangle, to which the other answers apply.
The Web Site project does not have the Web Tab. Instead, copy the SSL URL from the project properties (F4) to the Start Url in the project property pages (Shift F4). This step is optional, but if you don't do it, you will have to type the SSL port number manually in your browser.
Besides, for any type of web project, it does not really matter which port number you enter in Properties. The simplest is to accept the number filled in as default by VisualStudio, but another free port number will work just as well.
Of course, you will work with a self-signed certificate, i.e. signed by VS. So the browser might complain about this, and in order to debug your project with SSL, you will have to accept an exception in the browser.
I have created a Add-In for Ms Word. It is working fine if I publish it and install .vsto file in my system.
But if I use in other it throws error. I think I missed any steps for sign in.
I have followed these steps:
1- Go to Project Propertiy -> Signin Tab
2- Checked "Sign the ClickOnce manifest"
3- Create Test Certificate and provide password.
4- Checked the "Sign the assembly"
5- Choose a strong name key file: "myproject_temporarykey.pfx"
Then I have publish the project.
Can anybody please suggest what step(s) I am missing here?
I am making setup Project for my windows Service.
while installing, user should enter the license key and i need to verify this.
but how to set the setup project to prompt for a product key
can anyone help me on this please.
Thanks,
Sadly you not going to find this in Visual Studio 2012, but you may find it in 2008/2010.
2 Things you looking:
(A) Customer Information User Interface Dialog Box
(B) SerialNumberTemplate Property