Giter Site home page Giter Site logo

Comments (6)

thuru-zz avatar thuru-zz commented on June 30, 2024

Same issue on both .NET 4.7 and .NET Core as well

from elasticdatabasetoolsnetcore.

206mph avatar 206mph commented on June 30, 2024

I'm getting the same error as well in .NET Core.

from elasticdatabasetoolsnetcore.

206mph avatar 206mph commented on June 30, 2024

Has anyone found a workaround for this?

from elasticdatabasetoolsnetcore.

thuru-zz avatar thuru-zz commented on June 30, 2024

seems like the elastic pool development in the asp.net core is not active. I ended up handling this manually using custom code and switching the context in EFCore.
https://thuru.net/2017/05/28/ef-core-with-azure-elastic-database-pool-on-net-framework/

from elasticdatabasetoolsnetcore.

thePmr avatar thePmr commented on June 30, 2024

@206mph yes, there's a workaround.

Seems what happened with the project when you've opened it is described here – files .xproj and project.json have been converted to good old .csproj. The problem here is that resource files were expelled from project during this upgrade. What you need is to add them manually:

  1. Open .csproj with text editor.
  2. Copy the following in the end of this file, right before tag:
...
  <ItemGroup>
    <Compile Update="ShardManagement\Errors.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>Errors.resx</DependentUpon>
    </Compile>
    <Compile Update="ShardManagement\PerformanceCounters.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>PerformanceCounters.resx</DependentUpon>
    </Compile>
    <Compile Update="ShardManagement\ReadOnlyScripts.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>ReadOnlyScripts.resx</DependentUpon>
    </Compile>
    <Compile Update="ShardManagement\Scripts.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>Scripts.resx</DependentUpon>
    </Compile>
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Update="ShardManagement\Errors.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Errors.Designer.cs</LastGenOutput>
      <CopyToOutputDirectory>Never</CopyToOutputDirectory>
    </EmbeddedResource>
    <EmbeddedResource Update="ShardManagement\PerformanceCounters.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>PerformanceCounters.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Update="ShardManagement\ReadOnlyScripts.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>ReadOnlyScripts.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Update="ShardManagement\Scripts.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Scripts.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>

</Project>
  1. Run the project from VS
  2. May be you will need to regenerate resources. To do so: right click on each .resx file and select "Run custom tool".

from elasticdatabasetoolsnetcore.

PraisyA avatar PraisyA commented on June 30, 2024

Hello ,

I got same issue , is anybody got the solution . If you get solution please share with us .

I got below error today (after i upgraded to .NetCore2.0 ) .

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Microsoft.Azure.SqlDatabase.ElasticScaleNetCore.ShardManagement.ReadOnlyScripts.resources" was correctly embedded or linked into assembly "ElasticScaleNetCore.Client" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Thanks.

from elasticdatabasetoolsnetcore.

Related Issues (1)

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.