Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during creation a new organization #14

Open
ZedZipDev opened this issue Mar 24, 2022 · 0 comments
Open

Error during creation a new organization #14

ZedZipDev opened this issue Mar 24, 2022 · 0 comments

Comments

@ZedZipDev
Copy link

When I run the app and try to create a new organization I receive an error:
{"error":"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 26 - Error Locating Server/Instance Specified)"}

It is here

 private async Task<bool> TryAddCompany()
        {
            try
            {
                await mediator.Send(new UpSertTenantCommond() { TenantName = CompanyCommond.Name,TenantLogo=CompanyCommond.Logo });
                HttpContext.Response.Cookies.Append("tenant", CompanyCommond.Name);
                HttpContext.Session.SetString("tenant", CompanyCommond.Name);
                CompanyCommond.IsActive = true;
                CompanyCommond.Id = await mediator.Send(CompanyCommond);
            }
            catch (ValidationException validationException)
            {

                AddValidation(validationException);
                return false;

            }
            return true;
        }

How to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant