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

Activities of "goldstar25"

Mail has been sent.

Yes,it's ok!I wrote the connection string in the code...

So sure yes, I have tried. But still thank you. This bug fixes please let me know.

Have you tried it? Fix a point,The CTMSDbContext works on these code on my local computer:

public CTMSDbContext() : base(GetConnectionString())
        {
        }
        private static string GetConnectionString()
        {
            //Notice that; this logic only works on development time.
            //It is used to get connection string from appsettings.json in the Web project.

            var configuration = AppConfigurations.Get(
                WebContentDirectoryFinder.CalculateContentRootFolder()
                );

            return configuration.GetConnectionString(
                AdminConsts.ConnectionStringName
                );
        }

I read the source,it should be not works on server. I tried a lot of ways, but it did not work. I think the default case is from "web.config" to get while .NET Core is appsettings.json.

Yes.It's works on my computer,but not works on server.

It's OK!Thanks! And need add these code to set tenantId filter:

CurrentUnitOfWork.SetFilterParameter(AbpDataFilters.MayHaveTenant, AbpDataFilters.Parameters.TenantId, tenantId);

Source code:[attachment=0:3g29fpyl]SyncWeChatUsersJob.zip[/attachment:3g29fpyl] SyncWeChatUsersJob.zip

[attachment=0:3dhby4nm]QQ截图20170309151952.png[/attachment:3dhby4nm]

Now,no exception,but L function not work.I use this code in view:

<p>
        @L("Test")
        <br />
        @(LocalizationHelper.GetString(TestDemoConsts.LocalizationSourceName, "Test"))
    </p>

It's not work.it print "[Test] ". And the xml content is:

<?xml version="1.0" encoding="utf-8"?>
<localizationDictionary culture="en">
  <texts>
    <text name="Test" value="Test Test Test" />    
  </texts>
</localizationDictionary>

I has config "TestLocalizationConfigurer":

namespace TestDemo.Localization
{
    public class TestLocalizationConfigurer
    {
        public static void Configure(ILocalizationConfiguration localizationConfiguration)
        {
            localizationConfiguration.Sources.Add(
                new DictionaryBasedLocalizationSource(
                    TestDemoConsts.LocalizationSourceName,
                    new XmlEmbeddedFileLocalizationDictionaryProvider(
                        Assembly.GetExecutingAssembly(),
                        "TestDemo.Localization"
                    )
                )
            );
        }
    }
}

And write in AbpModule:

public override void Initialize()
        {
            //设置语言资源
            TestLocalizationConfigurer.Configure(Configuration.Localization);
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
        }

I just tested,I found "_ViewStart.cshtml" also not work.

Showing 11 to 20 of 32 entries