martes, 14 de abril de 2020

HTTP Error 500.21 - Internal Server Error Handler "aspNetCore" has a bad module "AspNetCoreModule" in its module list

Despues de instalar Instalador actual de .NET Core Hosting Bundle (descarga directa) 
dotnet-hosting-3.1.0-win.exe

me comenzó a marcar error al levantar la web api:


Solución: 

En el IIS verificar los módulos para ver que versión de aspnetcoremodule tiene
en este caso tiene la v2



Verificar que versión tiene en el web config de nuestra aplicación.




Cambiar por la versión que tenemos instalada 

miércoles, 8 de abril de 2020

Error de Reporting Services El servidor de informes no pudo validar la integridad de los datos cifrados de la base de datos. (rsCannotValidateEncryptedData)

El servicio no está disponible.

El servidor de informes no está configurado correctamente. Póngase en contacto con el administrador del sistema para resolver el problema. Administradores del sistema: el servidor de informes no puede usar la clave de cifrado ni acceder a ella. Es posible que se tenga que agregar el servidor al grupo de escalado horizontal, volver a importar el contenido cifrado o suprimir todo el contenido cifrado y generar una nueva clave de cifrado.



Este error me apareció después de reinstalar reporting services y conectar con una base de datos ya existente.


Solucion:



lunes, 6 de abril de 2020

Deallocate Virtual Machine Azure "Azure Lab Services"

Una máquina virtual de Windows 10 de Azure funciona durante un día y se usa a través de RDP sin problemas, mientras que de repente RDP cae y RDP ya no es un medio para conectarse. Al mirar Azure Portal, en un Registro de actividad, se puede ver que la VM está Deallocate y la Entidad que inició la acción es Azure Lab Services.






Solución 

Verifique si eso está configurado en el portal:



jueves, 12 de marzo de 2020

Problema al llamar a Get Method of a Rest API en la web en mi código Xamarin.Forms

 System.NullReferenceException: Object reference not set to an instance of an object.


Estoy tratando de consumir un método Get de un WebAPI aleatorio en la Web a través de mi Xamarin.Formscódigo. Pero no puedo llamar a esa API.

Codigo Inicial


  private HttpClient httpClient;  

  public async Task<List<User>> GetUsersGroup(string group)

        {          
            List<User> users1 = new List<User>();

            var url = $"{Config.RoomsEndPoint}/{group}";
            var result = await httpClient.GetStringAsync(url);
            users1 = JsonConvert.DeserializeObject<List<User>>(result);
            return users1;


        }

Solucion


private HttpClient httpClient; 

public async Task<List<User>> GetUsersGroup(string group)
        {
            if (httpClient == null)
            {
                httpClient = new HttpClient();
            }
            List<User> users1 = new List<User>();

            var url = $"{Config.RoomsEndPoint}/{group}";
            var result = await httpClient.GetStringAsync(url);
            users1 = JsonConvert.DeserializeObject<List<User>>(result);
            return users1;


        }

function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method

The 'AddToGroup' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'AddToGroup'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'signalRGroupActions' to type IAsyncCollector`1. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
[12/03/2020 03:01:23 p. m.] The 'Messages' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Messages'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'signalRMessages' to type IAsyncCollector`1. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
[12/03/2020 03:01:23 p. m.] The 'negotiate' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'negotiate'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'signalRConnectionInfo' to type SignalRConnectionInfo. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
[12/03/2020 03:01:23 p. m.] The 'RemoveFromGroup' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'RemoveFromGroup'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'signalRGroupActions' to type IAsyncCollector`1. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
[12/03/2020 03:01:23 p. m.] The 'User' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'User'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'userTable' to type CloudTable. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
[12/03/2020 03:01:23 p. m.] The 'Users' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Users'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'usersTable' to type CloudTable. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
Hosting environment: Production
Content root path: C:\DevProjects\OrdenesTrabajo\Mobile\Trino\ChatTrino.Function\bin\Debug\netcoreapp2.1


Solución 


Pude solucionar este problema agregando el paquete NuGet
Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator