Algunos “Workarrounds” programando para Windows Azure

Hola a tod@s ,

En esta ocasion, me gustaría comentar algunos workarrounds sobre errores que podemos encontrar durante los desarrollos para Windows Azure.

  • There was an error attaching the debugger to the IIS worker process for URL” for role instance

image

Solución: Incluye la línea “ <compilation debug=”true” targetFramework=”4.0″ />” dentro de “<system.web>” del web.config.

  • ¿Quieres evitar que  el Compute Emulator del SDK 1.3 muestre constantemente la venta siguiente cuando tengas abierto un “web.config en el Visual Studio”?

image

Solución: Incluye la instrucción  “attrib -r “$(ProjectDir)Web.Config” en la propiedad “Post-build Event command line” en la propiedades del proyecto web.

  • Could not load file or assembly ‘msshrtmi’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

Solución:

  1. Abre el proyecto en notepad
  2. Elimina el tag xml “PlatformTarget” de todas las “PropertyGroup”
  3. Ejemplo de un property group.

<PropertyGroup Condition=” ‘$(Configuration)|$(Platform)’ == ‘Debug|AnyCPU’ “>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<Optimize>false</Optimize>
<WarningLevel>4</WarningLevel>
</PropertyGroup>

Adicionalmente me gustaría dejar algunas referencias al blog de Cesar de la Torre (Microsoft) donde encontrarás otros“workarrounds”:

Irán apareciendo más sobre la marcha y, sobre la marcha los iremos viendo! Open-mouthed smile

Saludos
Juanlu

Leave a Reply

Your email address will not be published. Required fields are marked *