Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>I've managed to solve my problem.</strong> Sorry, that I'm answering my own question - hope this doesn't offend anyone.</p> <p>What I wanted to achieve is not possible with Azure Web Sites, but with Web Roles. As seen here on <a href="http://channel9.msdn.com/Shows/Cloud+Cover/Cloud-Cover-Episode-37-Multiple-Websites-in-a-Web-Role" rel="nofollow">CloudCover</a> and on <a href="http://blog.structuretoobig.com/post/2012/01/17/One-Azure-Web-Role-Multiple-Websites.aspx" rel="nofollow">StructureTooBig</a>.</p> <p>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.</p> <p>My WebRole looks like this now:</p> <pre><code>&lt;WebRole name="MvcWebRole1" vmsize="ExtraSmall"&gt; &lt;Sites&gt; &lt;Site name="Web" physicalDirectory="[projectpath]"&gt; &lt;VirtualApplication name="backend" physicalDirectory="[projectpath]"&gt; &lt;/VirtualApplication&gt; &lt;VirtualDirectory name="store" physicalDirectory="[projectpath]"&gt; &lt;/VirtualDirectory&gt; &lt;Bindings&gt; &lt;Binding name="Endpoint1" endpointName="Endpoint1" /&gt; &lt;/Bindings&gt; &lt;/Site&gt; &lt;/Sites&gt; &lt;Endpoints&gt; &lt;InputEndpoint name="Endpoint1" protocol="http" port="80" /&gt; &lt;/Endpoints&gt; &lt;Imports&gt; &lt;Import moduleName="Diagnostics" /&gt; &lt;Import moduleName="RemoteAccess" /&gt; &lt;Import moduleName="RemoteForwarder" /&gt; &lt;/Imports&gt; </code></pre> <p></p> <p>I'm accessing (read+write) the store now via:</p> <pre><code>HttpContext.Current.Request.MapPath("/Store" + DirSeperator); </code></pre> <p>instead of</p> <pre><code>Directory.GetParent(HttpContext.Current.Server.MapPath("~")).ToString() + DirSeperator + "Web" + DirSeperator + "Store" + DirSeperator; </code></pre> <p>Which works perfectly on both projects.</p> <p>So, this solution works and I've already deployed it to production!</p> <p><strong>Emerging problems:</strong></p> <ul> <li>Web Sites work with <em>git</em> integration, but Cloud Services won't (this is very bad for my workflow).</li> <li>The deployment takes about 30-45 minutes. Holy ...</li> <li>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).</li> <li>Is there a way to access the data via FTP?</li> </ul> <p>Ciao</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload