Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "strix20"

The github just gives you access to the source code. The 404 is because you have not registered your github user yet. If you log in to the main website, at the top you will see a manage license link. Then you can navigate to the "Github Users" tab, where you can add your github user name to grant yourself access to the repos.

But I assume you want to start working on the project, in which case you will need to download the transformed template.

To download your custom template project, log into the main website, and click the download link at the top right of the menu.

Shouldn't it be AutoMapFrom, based on the mapping you are doing?

I'm in the process of upgrading my project to v4.5 to migrate to core 2.0. It seems the 4.5 project has startup has not been modified to adhere to the new .net core 2.0 configuration setup. All configuration should be moved to program.cs, and startup should inject a dependency of IConfiguration.

(see [https://joonasw.net/view/aspnet-core-2-configuration-changes]))

I have made these changes myself, and I noticed that there are several places where ABP / Zero erroneously uses IConfigurationRoot instead of the proper IConfiguration. I have changed those as well in my project, and the MVC project works fine.

However, the Migration project fails to run, because it cannot resolve the IConfiguration dependency properly. I have tried to work out how to register this dependency manually, but it appears that the IOCManager provided by ABP, which wraps Castle Windsor, does not provide a way to register a singleton.

How can this be done?

Did you .Include the country?

EF Core does not support lazy loading.

<cite>ismcagdas: </cite> Hi @MikeB,

Do you use VS 2017 or 2015 ?

@strix20,

Does this happen when running unit tests for ASP.NET MVC5.x & jQuery ?

Thanks.

It happens when I build the project. I downloaded a clean solution, open it, restore nuget packages, and build fails.

I'm using VS2017 17.3.4.

What you are looking for is not a key. You can only have a single key per table.

It sounds like you want a unique Index. EF Core does not support indices via attributes, so you must define the index with fluent API.

Alternatively you can simply disable automatic migrations, and write the SQL yourself (which in my opinion, you should always do. From an architecture standpoint, you should be writing SQL yourself and managing it with a db script management system like DBUp or FlyWay.)

Here is an example of how to do the indices via Fluent Api in EF Core:

[https://stackoverflow.com/questions/41246614/entity-framework-core-add-unique-constraint-code-first])

The default JSON serializer in MVC cannot handle recursive loops. You either need to create a custom serializer, remove the parent or child object from the DTO, or mark it to be ignore by json.

All azure services are accessed through the SDK API provided by microsoft. Running locally vs on azure has no impact, because internally the SDK just makes Http / TCP requests to the resources in azure. It's really no different than connecting to a SQL Azure database locally vs from a web app.

We do have multiple environments because we use gitflow.

We use Team City as our build server, with Octopus Deploy, and use the config transforms in Octopus to transform the appsettings.json by selecting environment specific settings (ie. appsettings.Develop.json, appsettings.Staging.json, appsettings.Production.json)

We have separate service bus Queues and Blob directories for our production and development/test environments, to ensure that testing never impacts production.

We use service bus because we have a Windows Service that interacts with additional software that must be run on a VM inside of a VPN, and cannot be run on the web server. Service Bus provides a simple, reliable, fast way to distribute messages across applications by interacting with a queue service that lives in Azure.

It doesn't appear to have anything to do with the service.

It looks like ABP is using a dynamic api controller to resolve api actions?

I haven't done much with their webapi, so I'm not really familiar with how the dynamic controller resolution works.

But you can find a similar issue reported here:

<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1713">https://github.com/aspnetboilerplate/as ... ssues/1713</a>

Try reading the documentation here on how it works (I don't have the time right now, but I will look into it later.)

<a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API">https://aspnetboilerplate.com/Pages/Doc ... ic-Web-API</a>

I'm also having the xUnit issue. Has anyone figured out how to resolve it?

Showing 91 to 100 of 132 entries