Base solution for your next web application
Open Closed

Error on first launch #1757


User avatar
0
irfanashraf created

Hello everyone! When I first launch application I get following error: (What are installation/setup requirements can any one share)

Server Error in '/' Application.

Value cannot be null. Parameter name: str

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: str

Source Error:

Line 32: } Line 33: Line 34: var siteRootFormat = _settingManager.GetSettingValue(AppSettings.General.WebSiteRootAddress).EnsureEndsWith('/'); Line 35: Line 36: if (!siteRootFormat.Contains(WebUrlService.TenancyNamePlaceHolder))

Source File: E:\Projects\WTM\BuildProcessTemplates\WTM\WTM\WTM.Web\MultiTenancy\SubdomainTenancyNameFinder.cs Line: 34

Stack Trace:

[ArgumentNullException: Value cannot be null. Parameter name: str] Abp.Extensions.StringExtensions.EnsureEndsWith(String str, Char c, StringComparison comparisonType) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Extensions\StringExtensions.cs:30 Abp.Extensions.StringExtensions.EnsureEndsWith(String str, Char c) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Extensions\StringExtensions.cs:20 WTM.Web.MultiTenancy.SubdomainTenancyNameFinder.GetCurrentTenancyNameOrNull() in E:\Projects\WTM\BuildProcessTemplates\WTM\WTM\WTM.Web\MultiTenancy\SubdomainTenancyNameFinder.cs:34 WTM.Web.MultiTenancy.TenantIdAccessor.SetCurrentTenantId() in E:\Projects\WTM\BuildProcessTemplates\WTM\WTM\WTM.Web\MultiTenancy\TenantIdAccessor.cs:83 WTM.Web.MvcApplication.SetTentantId() in E:\Projects\WTM\BuildProcessTemplates\WTM\WTM\WTM.Web\Global.asax.cs:46 WTM.Web.MvcApplication.Application_AuthenticateRequest(Object sender, EventArgs e) in E:\Projects\WTM\BuildProcessTemplates\WTM\WTM\WTM.Web\Global.asax.cs:30 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1038.0


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    That seems related to AspNet Zero. Please write to this forum (if you have purchased it): <a class="postlink-local" href="http://forum.aspnetboilerplate.com/viewforum.php?f=5">viewforum.php?f=5</a>