Skip to content

Can not start kernelhttpserver #212

Closed

Description

@xboxeer

Describe the bug
I followed the instruction of running kernelhttpserver but keeps receiving this exception:
[2023-03-29T16:01:35.028Z] Found C:\Users\zy418\Documents\Visual Studio 2022\semantic-kernel\samples\dotnet\KernelHttpServer\KernelHttpServer.csproj. Using for user secrets file configuration.
[2023-03-29T16:01:37.317Z] A host error has occurred during startup operation 'a5a93bd4-cb49-4c0f-80b6-f299af6af6fb'.
[2023-03-29T16:01:37.319Z] Microsoft.Azure.WebJobs.Extensions.Http: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. 系统找不到指定的文件(System can not find the specific file)。.
Value cannot be null. (Parameter 'provider')

To Reproduce
Just following this document to start the kernelserver

Expected behavior
Server should run successfully

Screenshots
met error message below:
image

Desktop (please complete the following information):

  • OS: Windows
  • IDE: VS Code

image

- func tool version: -

image

Additional context
Add any other context about the problem here.

Activity

  1. tynguyen commented on Mar 29, 2023

    @tynguyen

    This seems to be the main cause.
    It runs well on my machine so I would recommend uninstall .NET SDK and reinstall it. Make sure install .NET v7 to use notebooks.

  2. xboxeer commented on Mar 30, 2023

    @xboxeer
    Author

    This seems to be the main cause. It runs well on my machine so I would recommend uninstall .NET SDK and reinstall it. Make sure install .NET v7 to use notebooks.

    Thanks for the prompt :)! I reinstalled my .net sdk and azure function tool and now it works.

  3. added a commit that references this issue on Oct 10, 2023
    3838fca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions