I'm getting a weird error from Visual Studio after a fresh install on a clean system.
Today my computer was getting groggy so I decided to reinstall the computer (Win10) this is exactly what I did
1) Backed up using a batch program I wrote which compresses the dragged on directory using 7zip and renames it "folders name( dd/mm # hh:mm)", creates 2 txt files with data for ftp commands, opens an ftp connection to my webserver, uploads the zip, then uploads to same zip to my nas and then to my sd card, the batch deletes the zip from temp and the text files, everything said it performed normally.
2) I went to reset my pc and reset everything and deleted all files
3) After Reinstalling I downloaded 7zip and visual studio with all the addons in the tick box list at the beginning of the installation, except I noticed it has windows phone 10 emulators this time.
4) unzipped my work from the SDHC
5) Opened in VS, VS asked me to login so I did everything loaded in normally
6) Plugged In my phone (Lumia 930 WP10) clicked start debugging
and I got this popup
A PIN is required to establish a connection with the remote device. Please enter the PIN to pair the Device
I have never seen this error, and as far as I can tell no one else has, that's why I have written in detail what I did to get it, the only post I can find says it is in the debugging properties so to set it to no authorisation but that is for a raspberry pi using VS and that option is not there or anywhere within VS
the phone does not have a pin, or can I find a single setting anywhere on the phone or VS.
I did however come across a setting in the phone that allows you to connect to your phone in the browser on a computer via its ip and remotely control the phone and access all the data via the browser
The Error I Get in VS
The Phone Remote from a browser (If anyone is curious)
UPDATE*** no matter what I do, I CAN run any of the windows phone 10 emulators, but VS CANNOT detect any emulators other than 8.1 emulators
Same problem, then I found this answer:
https://stackoverflow.com/a/33667162
The solution is really helpful for me.
Simply, you can do this from an admin command prompt:
reg add HKLM\SYSTEM\CurrentControlSet\Control\SirepClient /v DisableProtocol3 /t REG_DWORD /d 1
PROBLEM SOLVED**
I went to programs & features, clicked visual studio community edition, and clicked repair, after it finished it said there was a problem installing the windows 10 SDK (v XX.XX.XX), so I went to
https://dev.windows.com/en-US/downloads/windows-10-sdk
I noticed the version number on the website to be higher, so I installed the SDK manually using the download link and presto it works :)
I had this issue when running Visual Studio in a virtual machine under both VM Ware Workstation 12 on a windows host, and VMWare Fusion 8 on a MAC host.
The solution was to edit the virtual machine settings and change the USB Compatibility settings from version 3.0 to 2.0.
I made it work with the following steps:
Turn the developer mode off on the phone and switch to "Only install Apps from Store"
Unplug the phone's USB connection
Restart the phone
Restart your PC
Start Visual Studio
Connect the phone to your USB port
Try to debug the app on your phone, if Visual Studio does say anything else than "You have to put the phone into Sideload mode" (or simular), start over with step 1.
Put the phone into sideload mode (not developer mode) and try again to debug, now the same message should show up like in step 7.
Switch your phone into developer mode
Now the deploying process should work without any trouble. If not try the steps (maybe with some variations) again. I don't know where the problem is, but the above steps worked for me. I don't know whether all steps are necessary, report back if you can leave one out. This solution doesn't helps permanently, sometimes the problem comes up again. I think don't unplug the phone while debugging, helps to let the problem occur less often.
You simply need to swipe your phone to unlock it (also enter pin if any). Since the phone is locked you cannot deploy any app on it.
I have created one C# form base application in VS2012 and Windows 8. This application is working fine in Win 8 machine but facing 2 problems in Windows 7
I have used one statusStrip in that application with layout style HorizontalStackWithOverflow. This status Strip lable's text is properly seen in Windows 8 machine but with windows 7 machine it shows text in mirror image text format.
Some forms are not getting opened in Win 7 machine.
Please help me on this
I have created a small app that is build with C# and wpf.
I have created an installer with "installshield limited edition for visual studio 2013" and installed it.
Now every time when my windows is running app is running too,but I did not foudn any setting where I can disable it, does anybody now how I can disable it grammatically?
There's many ways an Application can opt to start up every time the windows starts.
The first way is to register itself in Windows Registry .
you should check the following paths for any Registry entry that causes the app to startup with windows :
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
For more information about using Registry keys to get apps to startup with windows , refer to Run and RunOnce Registry Keys.
The second way it is to put a shortcut for the app in the "Start Up" folder.
Since Windows 8 , Start up folder is no longer exist in the start menu .
If you need to find the start up folder on windows 8 or a greater version of windows , refer to this page.
It is sufficient to delete the registry key , or the start up shortcut for an app to get windows to stop running it every time it starts.
it's the first time that i ask help here, but i really desperete.
I had developed a WPF Applicacation with VS2010 SP1 in c#.NET and SQLite database. It's really a stupit application with 5 windows. The main one, on startup opens few thread: one is needed to manage http connection on it, and 2 thread interacts with a hardware connected with a usb connector (i used a DLL written in C). The main window has 3 buttons and when i press one of them, a new window is displayed. Every single window has a close button that close the window. When i press a button a play a wav file stored in a folder (I used full path to play wav file).
The image for XP embbeded is made starting with tool PE and made with the right tool of microsoft.
The application is developed on a PC with XP SP3 with VS2010 SP1 on board. The application run on it is working perfectly: i can open and close window with any problem and stop.
On XP embedded, i installed .NET Framework 4 and the installer for using SQLite with framework4 (i did the same on my Pc).
If i run my application on XPe (Q7 ATOM E640T with 1 giga of RAM and 4 giga of internal HD SSD), after 8 time that i open and close a windows, the application stops to work and i got a out of memory exception. i monitored with task manager, and when i got the exception the system is using 1/3 of the all memory.
The connection with SQLite is opened at startup of the application and is still opened till the end of it.
With dependency walker I checked witch DLL are loaded on Pc and witch on XPe and i saw that sometime the dll were with different version, so i copied from the Pc the newst on XPe, but nothing went right.
I installed WindDBG on XPe, but it's not help me.
I read a lot of forums where WPF is "compatible" with XPe, so i did the application.
Any suggestion to resolve my problem?
Thanks
I've made an application in C# . it's a WPF application with SDF DB.
I have VS2008 express.
I published my application (with SQL-CE dll) and installed it on my computer (I have windows XP) and on another WinXP computer and it worked fine.
I sent the same files to 2 people with windows 7.
the first one couldn't install the application - she got an error message like "cannot download the application [...] missing required files [...]".
the second one (window 7 with 64 bit) installed it but she could see only the main screen (that doesn't require DB) but after she tried to go to another screen - the application crashed and there was an error message that told her that maybe the application wasn't installed correctly (I have a screenshot but it's in hebrew).
What do I have to do to make the application work on windows7?