profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/GregorBiswanger/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Gregor Biswanger GregorBiswanger cross-platform-blog.com Germany http://about.me/gregor.biswanger Microsoft MVP, Intel Black Belt & Intel Software Innovator - is freelancer as consultant, author, speaker & trainer.

ElectronNET/Electron.NET 5985

:electron: Build cross platform desktop apps with ASP.NET Core (Razor Pages, MVC, Blazor).

GregorBiswanger/json2ts 91

Convert a JSON to TypeScript interfaces.

GregorBiswanger/Brackets-ZoomView 4

ZoomView for Brackets

GregorBiswanger/AspRestApiWorkshop 2

Projektvorlage für meinen ASP.NET Core 3.1 REST-Api Workshop

GregorBiswanger/MyBroker-pwa-workshop 2

The MyBroker Template should be implemented as an Progressive Web App.

GregorBiswanger/AspCoreMyBroker 1

Exercise application for my ASP.NET Core 3.1 training.

GregorBiswanger/AspNetAngularElectronSample 1

ASP.NET Core 5 + Angular 11 + Electron.NET 11.5.1

GregorBiswanger/AspNetCoreGraphQLWorkshop 1

Sample Project for my ASP.NET Core with GraphQL Workshop 🎯

GregorBiswanger/AspSwaggerWorkshop 1

Projektvorlage für meinen ASP.NET Core 5 Swagger/OpenAPI Workshop

GregorBiswanger/BEM-SASS-Workshop 1

Übungen für meinen BEM & SASS Workshop

issue commentdapr/dapr

oAuth2 with Azure AAD Exception: panic: runtime error: invalid memory address or nil pointer dereference

I noticed it while reproducing. If I ONLY add the oAuth to one service.. the API Gateway it works. But not if several Dapr sidecars are assigned one. Unfortunately I can't fix anonymous routes and I don't get any authorization information.. but it is probably due to the API Gateway Envoy.. that must overwrite the header.. Envoy is really brutally complicated for me..

I would also like to be interested in how others integrate their security into a microservice landscape.. normally an API gateway should regulate the security automatically?! So that not every service would have to consider oAuth logic?!

GregorBiswanger

comment created time in 3 months

issue closedElectronNET/Electron.NET

Cannot Access being used by another process

  • Version: 13.5.1.0

<!-- Which version of .NET Core and Node.js are you using (if applicable)? -->

<!-- What target are you building for? -->

  • Target: .Net Core 5.0 & Node 15.10.0

  • Problem: I have created an empty ASP.Net project. Performed all steps as described to install Electron.NET and include it in the project. Now when I enter "electronize start" I get this error:

  • Error: C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1017,5): error MSB4018: Unerwarteter Fehler bei der GenerateBundle-Aufgabe. [C:\dev\HelloElectron\HelloElectron\HelloElectron.csproj] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1017,5): error MSB4018: System.IO.IOException: The process cannot access the file 'C:\dev\HelloElectron\HelloElectron\obj\Host\bin\HelloElectron.exe' because it is being used by another process. [C:\dev\HelloElectron\HelloElectron\HelloElectron.csproj] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1017,5): error MSB4018: at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite) [C:\dev\HelloElectron\HelloElectron\HelloElectron.csproj] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1017,5): error MSB4018: at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) [C:\dev\HelloElectron\HelloElectron\HelloElectron.csproj] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1017,5): error MSB4018: at Microsoft.NET.HostModel.AppHost.BinaryUtils.CopyFile(String sourcePath, String destinationPath) [C:\dev\HelloElectron\HelloElectron\HelloElectron.csproj] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1017,5): error MSB4018: at Microsoft.NET.HostModel.Bundle.Bundler.GenerateBundle(IReadOnlyList`1 fileSpecs) [C:\dev\HelloElectron\HelloElectron\HelloElectron.csproj] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1017,5): error MSB4018: at Microsoft.NET.Build.Tasks.GenerateBundle.ExecuteCore() [C:\dev\HelloElectron\HelloElectron\HelloElectron.csproj] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1017,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [C:\dev\HelloElectron\HelloElectron\HelloElectron.csproj] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1017,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\dev\HelloElectron\HelloElectron\HelloElectron.csproj] C:\Program Files\dotnet\sdk\5.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1017,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\dev\HelloElectron\HelloElectron\HelloElectron.csproj]

Steps to Reproduce: Follow the install instruction.

closed time in 3 months

raizpvp

issue commentElectronNET/Electron.NET

Cannot Access being used by another process

I created a new .NET 5 project and followed the setup steps. There's no problem.

Try deleting the obj\Host-folder and try again. If necessary, try a project again in a different directory?

raizpvp

comment created time in 3 months

startedthomasclaudiushuber/mvvmgen

started time in 3 months

startedthomasclaudiushuber/mvvmgen

started time in 3 months

issue openeddapr/dapr

oAuth2 with Azure AAD Exception: panic: runtime error: invalid memory address or nil pointer dereference

Used Version 1.3

I have assigned the oAuth Middleware pipeline to the Api Gateway (Envoy). Except when I was authenticated and the journey was back, I got the following error message from Envoy: upstream connect error or disconnect/reset before headers. reset reason: connection termination.

The Dapr container breaks and restarts. What could be the reason?

My Api Gateway Dapr Sidecar log:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xd1c1e6]

goroutine 229 [running]:
golang.org/x/oauth2.(*Token).Type(0x0, 0xc000fc8900, 0x20e)
        /home/runner/go/pkg/mod/golang.org/x/oauth2@v0.0.0-20201208152858-08078c50e5b5/token.go:59 +0x26
github.com/dapr/components-contrib/middleware/http/oauth2.(*Middleware).GetHandler.func1.1(0xc000331900)
        /home/runner/go/pkg/mod/github.com/dapr/components-contrib@v1.2.0/middleware/http/oauth2/oauth2_middleware.go:100 +0x736
github.com/dapr/dapr/pkg/diagnostics.(*httpMetrics).FastHTTPMiddleware.func1(0xc000331900)
        /home/runner/work/dapr/dapr/pkg/diagnostics/http_monitoring.go:186 +0x1a4
github.com/dapr/dapr/pkg/diagnostics.HTTPTraceMiddleware.func1(0xc000331900)
        /home/runner/work/dapr/dapr/pkg/diagnostics/http_tracing.go:47 +0x177
github.com/valyala/fasthttp.(*Server).serveConn(0xc000433200, 0x3dc4570, 0xc0001871d8, 0x0, 0x0)
        /home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.21.0/server.go:2193 +0x128e
github.com/valyala/fasthttp.(*workerPool).workerFunc(0xc00087b040, 0xc00113e960)
        /home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.21.0/workerpool.go:223 +0xba
github.com/valyala/fasthttp.(*workerPool).getCh.func1(0xc00087b040, 0xc00113e960, 0x2fd0840, 0xc00113e960)
        /home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.21.0/workerpool.go:195 +0x35
created by github.com/valyala/fasthttp.(*workerPool).getCh
        /home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.21.0/workerpool.go:194 +0x11f

created time in 3 months

issue openedenvoyproxy/envoy

oAuth Response with "upstream connect error or disconnect/reset before headers."

Hey community, I have an oAuth authentication and when I´m successfully logged in and the journey goes back to my API gateway with Envoy,

I get the following error message: response upstream connect error or disconnect / reset before headers. reset reason: connection termination

Does this require something specific to be configured that Envoy accepts and forwards the response?

created time in 3 months

issue commentenvoyproxy/envoy

UI for configuration

@mattklein123 Sorry if my message sounds offensive. I was just very frustrated.

What can definitely help would be a JSON schema. This can also be used with YAML. IDEs support it wonderfully and you then get a wonderful guide to the possibilities of envoy.

GregorBiswanger

comment created time in 3 months

issue openedenvoyproxy/envoy

Example for oAuth with Microsoft Identity

Hello Community, I've been trying an oAuth configuration with Microsoft Identity for hours. Does anyone have an example or already experience with it?

I also wonder how you can also store anonymous routes on Envoy. For a start page, for example.

created time in 3 months

issue commentenvoyproxy/envoy

UI for configuration

@phlax Thank you for your quick response!

Can you recommend a free third-party tool that I can only do the configuration with?

GregorBiswanger

comment created time in 3 months

issue openedenvoyproxy/envoy

UI for configuration

The configuration in Envoy is a disaster. I often waste hours getting something working.

Please extend the Admin UI for a simpler configuration.

created time in 3 months

issue commentDevExpress/angular-testcafe

No Angular Server is started with ng e2e

Hi,

here my steps (I use pnpm):

  • Create a new Angular Project: ng new AngularTestCafe --package-manager pnpm
  • Install Angular-TestCafe and TestCafe: pnpm install --save-dev angular-testcafe testcafe
  • I add this angular.json configuration:
{
  "projects": {
    "AngularTestCafe": {
      "architect": {
        "e2e": {
          "builder": "angular-testcafe:testcafe",
          "options": {
            "browsers": [
              "chrome"
            ],
            "src": [
              "e2e/*.e2e-spec.ts"
            ]
          }
        }
      }
    }
   }
}

  • I create a e2e-folder with my-first-test.e2e-spec.ts:
import { Selector } from 'testcafe';

fixture`My first Angular Test`
    .page`http://localhost:4200`;

test('Show welcome message', async testController => {
    const message = await Selector('body > app-root > div.content > div.card.highlight-card.card-small > span').innerText;
    testController.expect(message).eql('AngularTestCafe app is running!');
});
  • I started the tests with the command: ng e2e
  • TestCafe runs but no Angular Web-Server on localhost, I get the error message:
"TestcafeBuilderOptions" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.
 Running tests in:
 - Chrome 92.0.4515.107 / Windows 10

 My first Angular Test
 × Show welcome message

   1) Cannot obtain information about the node because the specified selector does not match any node in the DOM tree.

       > | Selector('body > app-root > div.content > div.card.highlight-card.card-small > span')

      Browser: Chrome 92.0.4515.107 / Windows 10

         2 |
         3 |fixture`My first Angular Test`
         4 |    .page`http://localhost:4200`;
         5 |
         6 |test('Show welcome message', async testController => {
       > 7 |    const message = await Selector('body > app-root > div.content > div.card.highlight-card.card-small >
      span').innerText;
         8 |    testController.expect(message).eql('AngularTestCafe app is running!');
         9 |});

         at <anonymous> (C:\Users\Gregor\Documents\Web-Projects\AngularTestCafe\e2e\my-first-test.e2e-spec.ts:7:112)
         at <anonymous> (C:\Users\Gregor\Documents\Web-Projects\AngularTestCafe\e2e\my-first-test.e2e-spec.ts:8:71)
         at __awaiter (C:\Users\Gregor\Documents\Web-Projects\AngularTestCafe\e2e\my-first-test.e2e-spec.ts:4:12)
         at <anonymous> (C:\Users\Gregor\Documents\Web-Projects\AngularTestCafe\e2e\my-first-test.e2e-spec.ts:6:53)


   2) Failed to load the page at "http://localhost:4200/".
      Increase the value of the "pageRequestTimeout" variable, enable the "retryTestPages" option, or use quarantine mode
      to perform additional attempts to execute this test.
      You can find troubleshooting information for this issue at
      "https://go.devexpress.com/TestCafe_FAQ_ARequestHasFailed.aspx".

      Error details:
      Failed to find a DNS-record for the resource at "http://localhost:4200/".

      Browser: Chrome 92.0.4515.107 / Windows 10



 1/1 failed (11s)

I publish my project on GitHub for you: https://github.com/GregorBiswanger/AngularTestCafe

I hope that helps.

GregorBiswanger

comment created time in 3 months

create barnchGregorBiswanger/AngularTestCafe

branch : main

created branch time in 3 months

created repositoryGregorBiswanger/AngularTestCafe

created time in 3 months