Windows Azure not generating aspx files - azure

I setup my first Azure Cloude Service as well as Web Role. When I build and then publish application I can only see bin directory with all my dlls. I don't have any folders or aspx files.
\ProjectName.CloudService\bin\Debug\ProjectName.CloudService.csx\roles\Web\bin
How can I compile other files.

Are the .aspx files actually added to the Visual Studio project? (Visual Studio only copies the files it knows about.) If you don't see them in the treeview for the project, click the button at the top that shows files not part of the project, and then right-click and "include in project" on the files you're missing.
If that doesn't work, you might consider heading over to the MSDN forum for Windows Azure: http://social.msdn.microsoft.com/forums/en-us/windowsazure/threads and asking there.

If you look in your Cloud Service project folder, you won't find the aspx files, dlls, etc. The Cloud Service project folder will only contain your configuration files and eventually your packaged Azure deployment files. You'll want to look in bin\Debug\ folder under your Web Role (ASP.NET) project.

Related

How to debug a class library on Azure App Service?

I have a .NET application running in Azure. It has a library linked to it, but its source code is in a separate solution, and I need to debug this library. How do I link this library in Azure, and connect the debugger?
In .Net Application , Right click on the Reference folder and browse your class library and select the dll file (YourClassLibraryName.dll) from the bin folder of the class library.
dll Reference will be added in the .Net Application Reference folder.
Build and re-deploy the .Net Application.
If you have the project's dependencies, using Visual Studio to deploy (via publish profile) will automatically upload all of the project's dependant projects/ libraries.
Publishing your Solution will automatically publish your dll's.
The bin folder and its contents are copied to the target machine when the project is published.
After publishing the application,check whether all the files and dll's exists in the bin folder
Path - Azure Portal=>Azure Web App=>Advanced Tools=>Go=>Debug Console=>CMD=>site=>wwwroot=> bin
You can see the referenced dlls with extension .dll and .pdb
In VS, Add the namespace of the class library and Set breakpoints in your code where you want them.
To begin debugging, press F5. Visual Studio will identify the module load, load the symbols, and then stop at the breakpoint.
In Visual studio => Net Application => In Publish window = >Hosting Settings => Click on Attach Debugger option

Visual Studio only publishes hostingstart.html to Azure

I have two ASP.Net Project. Project A is an earlier/older version of Project B. I used the publish functionality of Visual Studio to publish the .web project to Azure. Project A seems to get published successfully, and I can go to its Azure website in Chrome. But project B seems to succeed but when I browse to its site, I get a default Azure page stating "Your App Service is up and running".
Within Azure, I then go to Project B -> Development Tools -> Console and I simply enter ls to list the root directory contents. I simply get hostingstart.html.
When I do the same with Project A, I get: App_Readme Content Global.asax Images NewImages Scripts Views Web.config bin favicon.ico hostingstart.html packages.config
When I did the publish, I had Visual Studio running in Administrator Mode.
Also when I use IIS Express to locally deploy/publish, both sites load up and work fine.
I did not originally work on the two Projects. I simply inherited them, so I wouldn't know what was changed between A and B.
Is there something I have to enable in Project B to allow all the required files to be included in the publish?

Visual Studio 2015 web deploy always deletes a specific file all the time

In my Visual Studio 2015 MVC 5 web application, I'm deploying to Azure using publishing profile. In the publishing wizard, under settings, I have selected the Release build configuration and checked the "Remove additional files at destination" under File Publishing options.
When I'm done the publishing or even in preview mode it always deleting a view from the destination, instead of updating. It was never being published to the destination via the wizard, so I have FTP the cshtml file using FileZilla.
I have tried re-creating the publishing profile, but it works same as before. How do I include this file to be published as other files does?
I have found the issue. In that specific file I looked for properties windows for any uncommon setting with same file types, and I found that Build Action setting was set to None while other files have set to Content. After that the file getting deleting issue solved.

Exclude a directory from loading in a web project in Visual Studio 2012

We have a CMS site, where the user has uploaded a lot of content into the content directory of the site, for a lot of articles.
It takes a really long time to open this project because of loading all these sub-directories (one per article).
Is there any way to tell Visual Studio NOT to load a particular directory in the site? This directory has no code files in it, and nothing I would want to edit as part of development.
If this is a "Web Site" project with no .csproj file, you may have to set the folder to Hidden.
Visual Studio does not load hidden folders.
http://forums.asp.net/t/1179077.aspx/1

How to create a Web App project without page.designer.cs files?

In Visual Studio 2012 there is no website deployment, ok I switched to Web Project, now it has generated tons of page.designer.cs files, how can I make a web app project without the designer.cs files ?
Visual Studio create these files for easiness of coder, you will always get these kind of files when you create a new web app project. These files creates the necessary code you need for designing the web page.
But once you publish the web app to the server using the VS2010 publisher, these files are gone and only the .aspx files are remained. Why does this happen? because your code i.e. .cs files needs to compiled before it can be published on the server.

Resources