How do you download a web application from Azure? - angularjs

My company has been given a web application in Azure. This is our first Azure project; typically we develop C#/asp.net apps in Visual Studio with data in SQL Server and move the finished app to a web server.
I've connected Visual Studio 2015 to the Azure account. I can see the blobs, tables, and files. I've found a few html templates, but don't see any controllers; I think they might be in .dll files in the bin folder.
I would like to download the entire web application to Visual Studio on my local machine so I can debug it, make changes, and then republish the site. How do I do this? I can double-click on the files and view them in VS and I suppose I could save them one at a time, but that doesn't seem efficient. How can I download the whole project including putting the data in the blobs into something I can test locally (or connect a local VS instance to the remote data/blobs)?
Here is what I'm seeing from the Azure site in Visual Studio:
Update 1:
I think what I'm trying to find at this point is the js controllers (i.e. browseController.js). I can't find any controllers on Azure. Where would they be? Here's the expanded Cloud Explorer:

I would like to download the entire web application to Visual Studio
on my local machine so I can debug it, make changes, and then
republish the site. How do I do this?
I don't think it is possible to do what you're trying to accomplish because what gets deployed is the compiled code and not the source code. You would need source code to make changes.
You can take a backup of the application that's currently running into blob storage and from there you can download the application but again it would be the compiled application and not the source code.

Related

The server content appears to be out of date. Would you like to build and deploy the project first?

i created cube in analysis services in VS 2017
my problem is i cant process .cube file to sql server
this is error message i get
The server content appears to be out of date. Would you like to build
and deploy the project first?
i have analysis services server opened in background
in services both analysis services server and sql server browser are activei would appreciate any kind of help
This means that the definition of the cube and/or database on your database server are different from what is in your project in Visual Studio. Meaning somebody made changes to one, but not the other.
You need to bring them into sync before you can process the cube from your Visual Studio project.
If you want to overwrite what's on the server with what's in the project, just build and deploy the project.
If you want to overwrite your project with what's on the server, you'll need to generate a new project by importing from your database, and use it to replace your existing one.
Thanks everyone i solved it
in deployment settings i set server destination as servername/user instead of servername

Visual Studio Team Services

Is it possible to export Visual Studio Team Services project to a local PC with full history? If not, can one project be transferred to a new Visual Studio Team Services? These two are completely separated.
Is it possible to export Visual Studio Team Services project to a local PC with full history?
You can use our tools in Visual Studio, Eclipse, or from the command
line to keep a local copy of your source code on your machine. Today
there isn’t a way to export work items or other project data to your
local machine, but we’re planning on adding this capability at a later
date.
Can one project be transferred to a new Visual Studio Team Services?
It's also not possible at present.
The only option available is to do a replay-migration which
essentially copies all data from one account to another. You could use
some 3-party tools to handle this. Details please refer
jessehouwing's answer in this similar question: Migrate projects between VSTS Accounts

Azure Angularjs Website + Nancyfx + SQL Databases deployment strategies

I have deployed an Website built with angularjs and a Web Service Running Nancyfx framework rather than the "suggested" Web Api. I also use 2 SQL Databases.
I did this from Visual Studio where I have my project running. However the app (still in development) was developed locally on my mac and then just copied in visual studio.
Since I would be working with a friend of mine on it (who also uses mac) and we already have it on bitbucket with Git (my local version) I was wondering if it was possible to 'Set up deployment from source control' but only for the "website" part, meaning the angularjs. The web service needs to obviously be deployed from Visual Studio (I'm the only one working on that part).
Is there any way to achieve this? If I set up deployment from source control and then publish to the website from visual studio, would this override the existing version and current deployment last updated from Git? will it get denied publishing since it's set up from Git?
I am not sure how to better approach this.
The dirty way would be to set git for me and my friend on my local "app" folder of my Visual Studio solution so that I get his changes and then it's my job to publish it to azure via Visual Studio.
Turned out that what i needed is exactly this: Publish WebAPI and MVC projects to same Azure Web Site?
I therefore split my webservice (API) project so it's by itself and published that to mywebsite/api while my app resides on mywebsite/app so that I can publish my webservice changes from visual studio without problems, and also publish the changes to my angularjs app via git.
I haven't encountered any downside atm of doing this but it seems this is the best approach.

How can I copy Dll's to Program Files folder in Windows 2008 Server using C#

We already have a C# application for Deploying Dll's to different environments(DEV/QA/PROD). This application when asked copies the required Dll's to Program Files folder. This was working fine in Windows 2003 server. But now we migrated our server environments to Windows Server 2008 which brings UAC into picture.
Now when we try to copy the Dll's from local desktop to Server Program files using our application the application is failing.
Can any one suggest me what is the C# code that can make my application to elevate it privileges which allows me to copy the Dll's to remote server.
Regards
Masthan
Add an application assembly manifest that includes requestedExecutionLevel of requireAdministrator.
That way your update program will be run as an administrator.
You could also change your installer to give all users Full Control to your application folder; that way any user could modify your application.

How to deploy a windows form application including database to another PC?

All
I have built a windows form application using VS 2005 Standard edition which uses SQL Express as the database.
I'd now like to deploy my application to another PC that has .NET framework and SQL Server already installed.
The bit I am unclear about is what do I need to do to ensure that my database is also deployed with my application?
I have spent most of the day reading various articles from msdn to other blogs and I can't get a clear understanding on what is the best way to deploy my application. Some of the varying advice includes:
Add a 'setup' project and create a setup.exe file
Use a custom action to create a database during installation (uses installer class)
Manually detach .mdf and .ldf from database and use command line on target PC to reattach to database
Amend .config file to get new connection string (from target machine) and then reference that in my ado.net code
etc. etc.
Can anybody cut through the confusion for me and help me out?
Thanks
Here’s the simplest way I can think of:
Build the application
Copy the
executable (in the Bin directory) and
the app.config file to the other
machine. The executable and
app.config need to be in the same
folder
Backup the database on your
machine and restore it on the other
machine
Change app.config to point to
the restored database

Resources