Code Monkey home page Code Monkey logo

service-fabric-dotnet-quickstart's Introduction

languages products page_type description
csharp
azure
azure-service-fabric
sample
The quickstart contains an application with multiple services demonstrating the concepts of service communication and use of reliable dictionaries.

Service Fabric .NET Quickstart

This repository contains an quickstart project for Microsoft Azure Service Fabric. The quickstart project contains a single application with multiple services demonstrating the basic concepts of service communication and use of reliable dictionaries.

For a guided tour with the quickstart: Service Fabric .NET quickstart

More info on Service Fabric:


*This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.*

service-fabric-dotnet-quickstart's People

Contributors

dependabot[bot] avatar erikadoyle avatar fbeltrao avatar jagilber avatar masnider avatar microsoftopensource avatar msftgits avatar peterpogorski avatar supernova-eng avatar vturecek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

service-fabric-dotnet-quickstart's Issues

Switch from angular and angular ui to vue

Motivation

The tutorial project currently uses angular js v1.7, while .NET version has been updated continuously with a branch using .NET 6.0. The js code has been largely left the same and it has started to rot. See: screenshots in MicrosoftDocs/azure-docs#82174

Moreover, Angular js v1.7 is not a recommended framework even by Angular team. Hence project should be updated to a modern framework.

Solution: switch to a modern js framework i.e. Vue.js

Among the popular js frameworks, angular 2, react, vue, and svelte, only vue works without build tools. Hence i consider vue as the logical js framework to use.

I am willing to take the initiative here and make PRs to that end. However, as this requires effort on my part, so i want a confirmation from project maintainers before i invest my time into it

The document is not yet updated??

Hi
As per the Updates on " Azure Service Fabric: The road ahead for microservices : Build 2018 "
It is clear that the dependancy on servicefabrics runtime for communicating the microservices, has been removed. But the same has not yet updated in the documents...

Unable to run the .Net sample and create .Net application manually "\Voting\pkg\Debug is not found."

I am the beginner of Service Fabric. I have followed these 2 documents and encounter the same error message. I'm unable to run the sample locally.
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-quickstart-dotnet
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-create-dotnet-app

C:\Users\zhuwei\sf\service-fabric-dotnet-quickstart\Voting\pkg\Debug is not found.
At C:\Program Files\Microsoft SDKs\Service
Fabric\Tools\PSModule\ServiceFabricSDK\Publish-NewServiceFabricApplication.ps1:120 char:9

  •     throw $errMsg
    
  •     ~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (C:\Users\zhuwei...g is not found.:String) [], RuntimeException
    • FullyQualifiedErrorId : C:\Users\zhuwei\sf\service-fabric-dotnet-quickstart\Voting\pkg\Debug is not found.

Finished executing script 'Publish-NewServiceFabricApplication'.
Time elapsed: 00:00:22.4344033

When I "start Debugging", I will get the messages as below.

1>------ Build started: Project: Voting, Configuration: Debug x64 ------
2>------ Deploy started: Project: Voting, Configuration: Debug x64 ------
2>Started executing script 'GetApplicationExistence'.
2>Finished executing script 'GetApplicationExistence'.
2>Time elapsed: 00:00:10.6953467
2>Started executing script 'Set-LocalClusterReady'.
2>powershell -NonInteractive -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -Command "Import-Module 'C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Scripts\DefaultLocalClusterSetup.psm1'; Set-LocalClusterReady -createOneNodeCluster $true"
2>Launching Service Fabric Local Cluster Manager...
2>You can use Service Fabric Local Cluster Manager (system tray application) to manage your local dev cluster.
2>Finished executing script 'Set-LocalClusterReady'.
2>Time elapsed: 00:00:00.7394200
2>Started executing script 'GetApplicationExistence'.
2>Finished executing script 'GetApplicationExistence'.
2>Time elapsed: 00:00:10.6577025
2>Started executing script 'GetApplicationExistence'.
2>Finished executing script 'GetApplicationExistence'.
2>Time elapsed: 00:00:10.6976790
2>Unable to determine whether the application is installed on the cluster or not
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

any suggestion is appreciated!

Index.cshtml needs to be updated for VotingWeb

I just tried the app but unfortunately the vote names and numbers don't show up. It turns out that the data returned from server use uppercase K and V for key/value pairs (e.g. {Key: "Pizza", Value: 1}), so the cshtml has to be updated accordingly. I don't have permission to this repo so I forked the repo and you can see the commit here.

I assume this app worked before so I guess one of the package update broke the app. I have not tested with other packages so I'm not sure how it got broken. Here are my environments:

  • Windows 10 1909
  • DotNet Core 3.0
  • Visual Studio 2019 Enterprise
  • Service Fabric: 7.0.457.9590
  • Newtonsoft.Json: 12.0.3
  • Browser: Chrome 78.0.3904.108

Voting deployed locally and party server - VotingData not working

I was following https://docs.microsoft.com/en-gb/azure/service-fabric/service-fabric-quickstart-dotnet

Visual Studio's Publish output finishes with:

2>Service Status:
2>fabric:/Voting/VotingData is not ready, 1 partitions remaining.
2>fabric:/Voting/VotingWeb is ready.
2>
2>Something is taking too long, the application is still not ready.
2>Finished executing script 'Get-ServiceFabricApplicationStatus'.

Service Fabric Explorer on a party server looks like:

service-fabric-error

I got a similar error when initially publishing locally.

Any tips or suggestions for further debugging?

Environment variable

The app runs in Production because is the default environment. .AddEnvironmentVariables() in Startup doesn't load the environment from ASPNETCORE_ENVIRONMENT and launchSettings.Development.json is never loaded. In order to manage the environment you need to set it in the Settings.xml first and then overwrite it in ApplicationManifest and ApplicationParameters

Latest SDK: Voting.sfproj: The application which this project type is based on was not found.

I am unable to load the Voting.sfproj using the latest version of VS2017 (15.5.2) with the latest version of the Microsoft Azure Service Fabric SDK (2.8.232).

Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- Voting, "C:\repo\service-fabric-dotnet-quickstart\Voting\Voting.sfproj"

\Voting\pkg\Debug is not found

the samples and documentation seems to be old for Service Fabric at docs.microsoft.com!?

Please update the samples, or remove them

Cannot get Https Working

I have followed this tutorial to the letter several times but cannot get Https to work when deployed to Service Fabric.

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-dotnet-app-enable-https-endpoint

Everything works in local service Fabric, the application deploys and looks healthy but when browsing responds immediately with ERR_CONNECTION_CLOSED

When I try in Powershell Invoke-WebRequest I get

The underlying connection was closed: An unexpected error occurred on a send

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.