Base solution for your next web application

Activities of "naurinrr"

The layout has,

    @if (isChatEnabled)
    {
        @Html.Partial("~/Areas/Petra/Views/Layout/_ChatBar.cshtml")
    }

and

@if (isChatEnabled)
    {
        <script src="@(ApplicationPath)view-resources/Areas/Petra/Views/Layout/_ChatBar.js" asp-append-version="true"></script>
        <script src="@(ApplicationPath)Common/Scripts/Chat/chat.signalr.js" asp-append-version="true"></script>
    }

Now I am rendering the chat partial from my own view so included the scripts in that view in a Scripts section at the bottom.

Hi,

I am implementing contextual chat where users can chat about a particular record instead of system wide chat. Please see attached for design layout.

I don't get any errors but the scripts are not working either. I understand this might be more of a jquery question than the framework but I am stuck so thought will check here. The layout already has all the scripts needed for chat loaded. The renderbody in layout will render my ViewModal page which has,

<div class="tab-pane" id="m_tabs_2_1" role="tabpanel">
                                    @Html.Partial("~/Areas/Petra/Views/Layout/_ChatBar.cshtml")
                                </div>

Any help will be appreciated.

Thanks

Hi,

I am setting up a build pipeline for continuous integration and deployment. I am getting the following errors in Nuget restore step.

`

2018-11-11T23:36:10.4801663Z ##[section]Starting: NuGet restore
D:\a\1\s\src\DemoDeploy.Application.Client\DemoDeploy.Application.Client.csproj
    Package modernhttpclient 2.4.2 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package modernhttpclient 2.4.2 supports:
      - monoandroid (MonoAndroid,Version=v0.0)
      - monotouch (MonoTouch,Version=v0.0)
      - portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)
      - xamarinios10 (Xamarin.iOS,Version=v1.0)
    One or more packages are incompatible with .NETStandard,Version=v2.0.

Errors in D:\a\1\s\src\DemoDeploy.Core\DemoDeploy.Core.csproj
    Package Abp.AutoMapper 3.9.0 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.AutoMapper 3.9.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Abp.Zero.Ldap 3.9.0 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Zero.Ldap 3.9.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Project DemoDeploy.Core.Shared is not compatible with net461 (.NETFramework,Version=v4.6.1). Project DemoDeploy.Core.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Microsoft.Extensions.Configuration.EnvironmentVariables 2.1.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Microsoft.Extensions.Configuration.EnvironmentVariables 2.1.1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Microsoft.Extensions.Configuration.Json 2.1.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Microsoft.Extensions.Configuration.Json 2.1.1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Abp.ZeroCore.IdentityServer4.EntityFrameworkCore 3.9.0 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.ZeroCore.IdentityServer4.EntityFrameworkCore 3.9.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Abp.MailKit 3.9.0 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.MailKit 3.9.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Microsoft.Extensions.Configuration.UserSecrets 2.1.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Microsoft.Extensions.Configuration.UserSecrets 2.1.1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Castle.Windsor.MsDependencyInjection 3.3.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Castle.Windsor.MsDependencyInjection 3.3.1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Abp.ZeroCore 3.8.3 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.ZeroCore 3.8.3 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Abp.Web.Common 3.8.3 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Web.Common 3.8.3 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    One or more projects are incompatible with .NETFramework,Version=v4.6.1.
    One or more packages are incompatible with .NETFramework,Version=v4.6.1.

This is not the complete log. There are similar errors in all the projects. I could not fit the entire log in here. Please help!

Hi there,

Any documentation or examples for creating entities with many to many or one to many relationships? Would I put a navigation properties for that? Please explain using Student and Course example which has many to many relationship. How do I specify complex type attributes other than Enums E.g.

public class Contact
{
    public CorrespondencePreference Correspondence { get; set; }

    public IEnumerable<EmailAddress> Emails => this._emails;

    public virtual Category Category { get; set; }

    public ContactJob Job { get; set; }
 }

where ContactJob, Category and EmailAddress are complex types.

Hi everyone,

I used the RAD tool to generate the pages for an entity in my domain. I am unable to create a new item. The database table was created correctly and all the related files seem to be there but I get the error attached.

[https://1drv.ms/u/s!AipZ--KcXtD_szlBjVOIPN-aNZ1N])

I don't know where I can find a detailed log. Please help!!

Hi I am still getting this issue in MVC + jQuery latest project and I downloaded the RAD tool today as well from here,

[https://marketplace.visualstudio.com/items?itemName=Volosoft.AspNetZeroPowerTools])

what do you suggest I do?

Oops! All done!

Thanks so much! that was exactly the problem. I am now having issues with SignalR.

[https://1drv.ms/u/s!ArBRDfNptp88hh8o_U3tf_rY_XIs])

I found a few hacks but not sure which one to use. Any idea how to get around this?

Thanks for your reply. I checked the output from npm run create-bundles and it choked while minifying the app-layout-libs,

Processing wwwroot/view-resources/Areas/Petra/Views/_Bundles/app-layout-libs.js
  Bundled
Object reference not set to an instance of an object.

However the app-layout-libs.js is available under the path on azure server even if not minified. Its the same locally so I don't understand why it works locally but does not work after publishing.

I was able to use dotnet ef migrations script --idempotent --output "script.sql" to generate a script to run on my database. The problem now is that several of the jquery libraries are not working after publishing!!

See errors [https://1drv.ms/u/s!ArBRDfNptp88hh51SqbXzkua_Zte])

The link to the live site is <a class="postlink" href="https://progentestwebmvc20180824015653.azurewebsites.net">https://progentestwebmvc20180824015653. ... bsites.net</a>

You can login to default tenancy using username admin and default password: 123qwe. I have not changed that yet.

Thanks in advance.

Showing 11 to 20 of 28 entries