Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9315643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:25:21+00:00 2026-06-19T02:25:21+00:00

This is my second deployment to Azure. First was a simple MVC4 Website with

  • 0

This is my second deployment to Azure.
First was a simple MVC4 Website with a Database, which I deployed via git. Worked like a charm.

Now I’ve got the following:
A solution containing three projects.

  • Web -> Which is the MVC4 Frontend
  • Models -> Contains the Models and the DB Context
  • Backend -> MVC4 Project for data administration

All projects are MVC4 (didn’t know how to manage this better for the Models project).
In my models project I’m running the code-firt migrations.
The backend is running in the virtual directory: localhost:80/Backend
(works perfect on localhost)
Both the Web and Backend project have references to the Models Project.

Folder structure:
Solution folder contains:
Web / Models / Backend / MySolution.sln

The first time I deployed I’ve created a git repo in the Projects folder (cause it was a single project). Now my repo is in the solution folder.

I’m also uploading files in the Backend and move it to the other project (Web) via the following path:

Directory.GetParent(HttpContext.Current.Server.MapPath("~")).ToString() + DirSeperator + "Web" + DirSeperator + "Store" + DirSeperator;

Is this going to a problem on Azure?

So my loose question is now, how am I deploying this solution?


I’ve created a Website with Source control in Azure and added a SQL Database to it.

I’ve managed to push the solution to Azure,
but on Azure there’s the messsage

Found solution … with no deployable projects. Deploying files instead.

now.


Do you have any good tutorials for me on this problem?

Am I doing it completely wrong? (I think so)

I’m relatively new to ASP.NET and Azure, so it’s a bit hard for me to understand.

Thanks,
Tobi

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T02:25:22+00:00Added an answer on June 19, 2026 at 2:25 am

    I’ve managed to solve my problem.
    Sorry, that I’m answering my own question – hope this doesn’t offend anyone.

    What I wanted to achieve is not possible with Azure Web Sites, but with Web Roles.
    As seen here on CloudCover and on StructureTooBig.

    So I’ve created a new Azure Cloud Application (provided by the Azure Tools) in Visual Studio, with a default Web Role, which is my Web Frontend project.
    I’ve added a VirtualApplication to the Web Role with the name “backend” and the physicalDirectory set to my Backend Project path.
    Then I’ve added a VirtualDirectory “store”, which I could access from both projects for file uploads.

    My WebRole looks like this now:

    <WebRole name="MvcWebRole1" vmsize="ExtraSmall">
    <Sites>
      <Site name="Web" physicalDirectory="[projectpath]">
        <VirtualApplication name="backend" physicalDirectory="[projectpath]">
        </VirtualApplication>
        <VirtualDirectory name="store" physicalDirectory="[projectpath]">
        </VirtualDirectory>
        <Bindings>
          <Binding name="Endpoint1" endpointName="Endpoint1" />
        </Bindings>
      </Site>
    </Sites>
    <Endpoints>
      <InputEndpoint name="Endpoint1" protocol="http" port="80" />
    </Endpoints>
    <Imports>
      <Import moduleName="Diagnostics" />
      <Import moduleName="RemoteAccess" />
      <Import moduleName="RemoteForwarder" />
    </Imports>
    

    I’m accessing (read+write) the store now via:

    HttpContext.Current.Request.MapPath("/Store" + DirSeperator);
    

    instead of

    Directory.GetParent(HttpContext.Current.Server.MapPath("~")).ToString() + DirSeperator + "Web" + DirSeperator + "Store" + DirSeperator;
    

    Which works perfectly on both projects.

    So, this solution works and I’ve already deployed it to production!

    Emerging problems:

    • Web Sites work with git integration, but Cloud Services won’t (this is very bad for my workflow).
    • The deployment takes about 30-45 minutes. Holy …
    • I’ve had to publish everything again to activate Remote Access and WebDeploy features. And I hope, WebDeploy is going to save time for deploying updates … as everytime I’m updating now, the complete solution is replaced on server (within the mentioned time span).
    • Is there a way to access the data via FTP?

    Ciao

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I built this deployment script which runs when my debian 6.0 server is deployed.
How can I make this second struct work, when the first struct has a
Ok, I need something like this: datediff(second, date_one, date_two) < 1 dates are stored
This is my second question on Bamboo ( My First One ). My understanding
If this is the first string : ABCD if this is the second string:
I have the following paragraphs: <p>This is a first paragraph.</p> <p>This is a second</p>
I want to achieve this: - second parameter by default set to first argument
does someone knows why this first query works and this second not? first query
This is my second attempt at this question . I made a mess of
This is my second question about clicking buttons in JavaScript but this one I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.