Trouble after uploading .VDH file on Azure storage - visual-studio-2012

I am refering to following article.
http://blogs.technet.com/b/erezs_iis_blog/archive/2013/05/22/uploading-a-custom-operating-system-to-azure-virtual-machines.aspx
[ I am using Win8, VS2012 ]
I have a .VHD file that contains OS and other softwares installed. I would like to use this .VHD into Azure to create a new Virtual Machine. Hence i am refering to above article.
Problem #1: Even after installing Azure SDK for Vs2012 , I could not find CSUpload.exe on my PC. I wonder why its not installed. - any clue.
Problem #2. Since CSUpload.exe was not found, I was just looking into VS2012 and found that i can connect to Azure using "Server Explorer" and there i was able to upload .VHD into storage area, that i created as explained in above article.
BUT
after uploading .VHD file, from Azure manager, when i try to create a new virtual Machine, I am not able to find my newly uploaded .VHD in the list of Gallery, that as per article should appear in the "My Images" or "My Disk" list.
Any clue, what can be wrong. ?
Regards

Problem #1: Even after installing Azure SDK for Vs2012 , I could not
find CSUpload.exe on my PC. I wonder why its not installed. - any
clue.
I just checked in SDK 2.3 and csupload.exe is missing from bin directory. Though it is present in v 2.2. May be they deprecated this application in the latest version. You could try uninstalling the latest version and install version 2.2. Once 2.2 is installed, you will find csupload in C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.2\bin directory.
Problem #2. Since CSUpload.exe was not found, I was just looking into
VS2012 and found that i can connect to Azure using "Server Explorer"
and there i was able to upload .VHD into storage area, that i created
as explained in above article.
In order for you to create a VM from a VHD file, the file must be uploaded as a Page blob. Files uploaded via Visual Studio Server Explorer are saved as Block blob. You may want to try and use another tool which supports uploading files as page blobs. Do take a look at AzCopy (I haven't tried it personally but I think it supports uploading page blobs).

You can at least use the PowerShell module for Azure for this, the cmdlet is Add-AzureVMImage. Cmdlet documentation at http://msdn.microsoft.com/en-us/library/dn495163.aspx.

Related

How to upload files in HoloLens 2 from Windows Device Portal

I want to upload files in HoloLens with Windows Device Portal. According to the documentation on using the Windows Device Portal, I should be able to "Use the file explorer to browse, upload, and download files". Nevertheless, in the File Explorer section of Windows Device Portal, I can't see any option to upload files, but I can only browse or download files. Can anyone give a hint on how to upload files?
Nevertheless, in the File Explorer section of Windows Device Portal, I can't see any option to upload files, but I can only browse or download files
Please aware that not all folders have the file uploading permission, not sure which folder path you are accessing. As a test, if you go to the Documents folder, normally you should see the Upload button as below:
If you really can't see the button, you can check the following things:
The HoloLens OS version and browser. We have ever seen the compatibility issue on several browsers running previous HoloLens OS version, I would suggest you trying Microsoft Edge and upgrading OS to the latest version. Check out this release note
Policy Restriction on Device. Some group policy may impose restrictions on device, you may need to check with IT team in this case.

Windows store app deployment error

I just downloaded and installed Visual studio on my computer (windows 8.1) to start building windows 8 apps. The problem is when I try to run any application this error message shows up (the application from this error message is called Parcels.comStarter):
Error 1 Error : DEP0700 : Registration of the app failed. Deployment
Register operation on Package
a783768f-d79c-495b-bf64-e59e4297fb42_1.0.0.0_neutral__1mfyfctfxa0tr
from:
(d:\Gebruikers\wardv_000\Downloads\Parcels.comStarter\Parcels.comStarter\Parcels.com\bin\Debug\AppX\AppxManifest.xml)
failed with error 0x8E5E0530. See
http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues. (0x80073cf9) Parcels.com
I searched the entire internet but I didn't found a solution. I also did reinstall visual studio and I still have the problem.
Thanks in advance
Open the Services management console (services.msc) and stop the Windows Installer service.
In Windows Explorer, go to C:\ProgramData\Microsoft\Windows\AppRepository\ and rename PackageRepository.edb to PackageRepository.edb.backup.
Back in the management console, restart the Windows Installer service.
Now run Visual Studio as an administrator and open your project.
I was having this exact same problem, and the solution for me was to unlink my Windows account from my Microsoft account.
There are a couple of things to try.
Run WSReset (press [Win] then type wsreset)
Delete the metastore and remotemetastore folder here: C:\Users\%userprofile%\AppData\Local\Microsoft\Windows\SettingSync where %userprofile% is your username. (I suggest just renaming them to metastore.old and remotemetastore.old)
Make sure that there are no staged packages for the app in question.
If you re-deployed an app that was already installed by some other user, then you would get a deployment error. This should wear off if you change the identity in your package.appxmanifest fie.
You should try an OS refresh. You should not lose your apps and settings.
After that re-link your windows account to microsoft account.
If that doesnt work...The problem may be that visual studio is not able to delete the application data in local folder. So when you go in the location C:\Users\UserName\AppData\Local\Packages you will find application data of app installed in your computer, now you need to find your app's application data and delete the folder. The folder name is the same as the package family name which you can see in your solution.
now again open the solution and rebuild and your app will run. (hopefully)
close visual studio and simulator before deleting the folder.
make sure that your account is set as administrator.
I had the same problem with visual studio running under Parallels VM. The solution was to copy the project from a cloud based directory to a local directory.

Mass Upload to Windows Phone 8 Isolated Storage

I am wondering if there is a way to upload a high number of files(.txt)/images(.jpg) to wp8 isolated storage?
Currentley i am working on a project inside a school wich will not give me the ability to download any extra SDKs.
We are running visual studio 2012 and in order for the project to work we will need to read from many *.txt files. The files have already been created so i dont want to have to recreate them in code
Also, is there a different method for uploading files to the isolated storage in the VS2012 phone emulator compared to the actual phone?
You have Isolage Storage Explorer Tool, that is a command line tool to access phone/emulator internal storage.
Read here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286408(v=vs.105).aspx

Azure cloud publish not uploading new files

I've recently copied my visual studio 2010 website project from my windows 7 PC to a new PC running windows 8. That all went relatively smoothly. When I now publish or package the cloud project it only packages files that were originally on the windows 7 PC. Any files that I have created on the windows 8 PC are ignored. The solution builds fine and I can run and debug the project fine. Any ideas?
Not sure why that would be, but here's something to try: In Visual Studio Solution Explorer, right-click the solution and choose Clean Solution. Then try to package/publish again.
When you say files do you mean images/JavaScript?
What is the setting of the "Copy to Output Directory" ? for the files/content that is not making it...make sure it is NOT set to "Do not copy"
Are you using the new v1.8 of the SDK? (did you upgrade your project?)...this can happen if you are using an old SDK from a previous computer and then try to build stuff using a "fresh installation".
The issue was that somewhere along the way the cloud project got disassociated with the web project so wasn't actually updating the file list for publishing - it was just using the file list that had already been generated on my old PC.
The fix was to scrap the cloud project and start over with a new one, then add a new web role to it and then convert that web role into a web application project and then move my whole existing website into that...

Windows Azure Tools: Warning: Unable to delete directory

Anyone know the solution for this? Using the latest version of Azure tools and every time I do a build I see these messages in the output window:
Windows Azure Tools: Warning: Unable to delete directory APPROOT.
Windows Azure Tools: Warning: Unable to delete directory WEBUX.
Windows Azure Tools: Warning: Unable to delete directory APPROOT.
Angela, it is very much possible that an application has open handle to these folders and build process could not delete the folder/files so it can update with new binaries. This problem is specific to your machine, not Windows Azure.
If you could not figure out which application is using, what you could do is restart your machine so you know none of any application is using and then start Visual Studio and clean/rebuild your application and see if you still see this error. If you still see the error, I can provide some other troubleshooting info to help you further.
I ran into this error too. Azure SDK 1.7 added a new way to deliver 'extra' file resources upto the roles. To fix my this error, I manually deleted the folders under the Azure project, Profile roles after exiting VS.
As Avkash mentioned, some app is using your files... a few suggestions that worked for me:
1) Prevent antiviruses from inspecting the build folders
2) Disable Windows search service
3) Disable any auto-backup or auto-sync services that look at build folders
HTH

Resources