I have an MVC5 Web application (VS2012) which has a reference to a WCF Application. The architecture looks like this:
- Business library -- References to DAL - DAL library - WCF application -- References to Ressources -- References to Business -- References to DAL - Web application -- References to WCF application -- References to Ressources - AzureCloudService -- WebRole for Web application -- WebRole for WCF application - Ressources -- References to Business -- References to DAL
I have created a AzureCloudService with 2 WebRoles for Web and Wcf applications. When I publish the AzureCloudService, no errors are thrown. But when I go to the Web application on Azure, many references or assemblies are not found. So, I had to add the following line in .csproj file:
<Reference Include="Tools, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
Because the project reference was not enough:
<ProjectReference Include="..\Tools\Tools.csproj">
<Project>{guid}</Project>
<Name>Tools</Name>
</ProjectReference>
But, when I added Wcf application and Ressources references, it asks for Business even if there is no project reference in Web Application. After all, I ended with the following error which makes me feel that I'm doing wrong. Has somebody a hint or advice please?
Couldn't find type for class Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
Of course, the following line is present in the .csproj but doesn't seem to work ... or I don't understand something.
<Reference Include="Microsoft.WindowsAzure.Diagnostics, Version=2.5.0.0, Culture=neutral, PublicKeyToken=somenumber">
<Private>True</Private>
</Reference>