I have a Windows Phone 8 App. It uses a series of WebAPI 2 calls to retrieve data from the server. In Visual Studio 2013 I can run the WebAPI project in Visual Studio and then run the App on an emulator through Visual Studio and everything works. For this to work I do have to run Visual Studio 2013 as an Administrator and I had to add an extra line into the IISExpress applicationhost.config file under the API application's entry as seen below:
<binding protocol="http" bindingInformation="*:56952:192.168.1.59" />
This is the line of code in the App that sets the location of the WebAPIs:
public const string APIPrefix = "http://192.168.1.59:56952";
It does not matter if I run the app on a Windows Phone 8.1 Or Windows 10 Mobile emulator, as long as I am running through Visual Studio 2013 it connects to the WebAPI project I have running in Visual Studio. Note that 192.168.1.59 is the IP address of my development machine where I am running Visual Studio.
When I upgrade the projects to Visual Studio 2015 and run everything the exact same way (run as administrator and the project names are exactly the same so I don't need to make a change to the applicationhost.config file) any call to a WebAPI returns the "Not Found" message.
Any idea what I am missing in Visual Studio 2015 to make this work?
So I did find a fix for this. If I change the API Prefix from:
APIPrefix = "http://192.168.1.59:56952";
to
APIPrefix = "http://localhost:56952";
it seems work everywhere except on the Windows 10 Mobile emulator version 10.0.14393.0. I have found the problem with that version of the emulator reported on another thread here
Unable to access local Web API from Visual Studio 2015 WIndows 10 Phone Emulator
Hope this helps other people.
Related
I'm developing WinRT metro app using Visual Studio 2013 premium version on Windows 8.1 Enterprise 64 bit machine. After getting windows automatic update, I am facing following error while debugging my app in Visual studio.
Although, it starts the simulator and deployed my solution. But now, I am not able to debug my app using simulator.
Don't know the root cause but following solution works for me
Close Visual Studio
Delete Temporary ASP.Net files
Delete VisualStudio Solution.suo file
Open Visual Studio and run the solution
I'm using Windows 7 32x. It seems I'm not able to create an app package in Visual Studio 2013 Professional, the "Store" option doesn't appear. I've read somewhere that we couldn't package on Win7, is there any way around? I'd like to upload my app to Windows Store, thanks.
You won't be able to do that. On Windows Store development center web site it's stated quite explicitly:
To create an app, you must use Visual Studio 2013 on a computer running Windows 8.1.
You can't create an app by using Windows 7. In addition, developer licenses aren't available for Windows Server 2012, so you can't develop a Windows Store app on that operating system.
More on the topic: http://msdn.microsoft.com/en-GB/library/windows/apps/br211384.aspx
Check the section "Important"
So I'm trying to do what I think is a very simple thing: generate a Windows Phone app with PhoneGap and open it in Visual Studio. On a totally fresh Windows installation (via Bootcamp), I've:
Downloaded Visual Studio Express 2013 for Windows (the very first download button: http://developer.windowsphone.com/en-us/downloadsdk)
Created a PhoneGap Windows Phone app per the Getting Started guide.
However, every time I try to open the csproj file, I keep getting this error:
Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- HelloWorld, "C:\BodBot\BodBot-PG\BodBot\platforms\wp8\HelloWorld.csproj"
No changes required
These projects can be opened in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without changing them.
- HelloWorld, "C:\BodBot\BodBot-PG\BodBot\platforms\wp8\HelloWorld.sln"
No matter what I do. It works totally fine on Visual Studio 2012 for Windows Phone. I've tried it on VS 2013 for Desktop, and that doesn't work either. No clue what is happening here, and don't know even where to start to figure out what's wrong. I've Googled extensively to no avail; basically all instances of this error seem to have to do with previous version of VS. Pointing in any direction would be very much appreciated.
Turns out Update 2 wasn't getting installed correctly. I ended up installing Visual Studio and the Update 2 separately and Update 2 got installed successfully. Everything works now.
To build Multi device hybrid (Cordova tooling) apps with Visual Studio, you need to have Visual Studio 2013 Update 2 - Professional, Ultimate, or Premium.
Visual Studio 2013 Update 2: Global Apps e Android/iOS App
I have been developing WP (Windows Phone) 8.0 apps using Visual Studio Express for Windows Phone. To start developing for WP 8.1, I downloaded VS 2013 including update 2 RC from Windows Phone Developer site which is supposed to use to develop WP 8.1 apps.
I've tried twice, but there is no option to create WP 8.1 app even after a successful installation. What I get is only this:
i.e. no option to create Windows Phone 8.1 apps. If it matters, I'm interested in WP 8.1 Visual C# template specifically.
As I've mentioned, since I develop Windows Phone 8.0 apps, therefore Visual Studio Express (2012) for Windows Phone is already installed.
I've already gone through:
WP8 Development on Visual Studio Express 2013
Why is there no Windows Phone version of Visual Studio Express 2013?
Visual Studio 2013 and Windows Phone
How to get started with windows phone SDK 8.1?
WP8 Development on Visual Studio Express 2013
but none address the solution.
Being a windows app developer even I was baffled with the shift in Windows Phone location. You can find it in
Visual C# --> Store Apps --> Windows Phone apps.
Do sign in, in Visual Studio through Microsoft Account then go to ur notification and update ur VS and you will get this screen. Its usually caused due to some updates working only when VS can access developer's account and also I am using VS 2013 pro.
Have you installed Windows phone emulator SDK with the updated emulators?
I finally got the solution.
I downloaded both Visual Studio 2013, and update 2 RC using the /layout switch at command prompt. From MSDN:
After you download the update executable from the MSDN website to a
location on your file system, run the following command at a command
prompt: /layout.
This command downloads all the
packages for the installation. By using the /layout switch, you can
download all the installation packages, not just the ones that apply
to the download machine. This approach gives you all the files that
you need to run this update anywhere and may be useful if you want to
install components that weren't installed originally.
To do this, download the Visual Studio 2013, and Visual Studio 2013 Update 2 RC files (about 2-3 MBs each). Then, create a shortcut of these files on desktop, and then open properties of shortcut. In target field after ", add a space followed with /layout as shown below:
This will download all installation files to your disk and when you install the VS (the exe at specified download folder), it won't ask it to fetch from internet, rather will do it from offline files and phone SDK 8.1 will be installed too.
Please be warned that, this will take a lot of time. To save time, I suggest following what is in Update section.
Update
While searching on internet, I found these two links on Microsoft website:
Microsoft Visual Studio Express 2013 for Windows
Desktop
Microsoft Visual Studio Express 2013 for Windows with Update
2
In download section, these two sites show that, the offline download option is now available (as evident from the ISOs shown). Though, I don't know if that would help as I haven't tested this option. Just that this option will be much more quicker than using /layout switch.
I've been developing for Windows Mobile/Pocket PC for a number of years without any issues. I recently started getting "Unable to start debugging" error messages after I installed Visual Studio 2010 and Windows Phone 7.1 SDK. The Visual Studio 2008 Remote tools would work, and Visual Studio could deploy the files, but "Start with Debugging" would not work while "Start without Debugging" would work.
I uninstalled the Windows Phone 7 SDK and am able to debug Windows Mobile applications again. Is there any way to allow the Windows Mobile 6.x and Windows Phone 7 SDKs to coexist on one computer?
With these Errors Double Check and make sure Service Pack one is installed for 2010.
Trevor, this issue has been reported as a bug with a known workaround by Jeffrey Walton on Microsoft Connect. The fix is summarized as follows:
Rename the directory C:\Program Files\Microsoft Visual Studio 10.0\SmartDevices\Debugger\target\wce400\armv4i to armv4i_temp
Copy the directory C:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\Debugger\target\wce400\armv4i inside the Visual Studio 2010 path.
Reference: VS 2010 Windows Phone 7 Developer Tools breaks existing VS 2008 Windows Mobile Developer Tools
Visual Studio 2010 can not build (much less debug) a Windows Mobile application. It can develop for Windows Phone 7 (apparently - I certainly do not develop for it).
To develop (build/debug) for Windows Mobile, drop back to Visual Studio 2008. That's the last version of Visual Studio that offered support for Windows Mobile.
Unfortunate.
Right edm2.exe and other remote debugger Arm4i files versions must be deployed to device. Rename temporarily all folders containing edm3.exe and try VS2008 debug. If works, search edm*.exe in registry and repair related keys to VS2008only state.