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

Data not saved on IIS server #56

Closed
arti86pl opened this issue Mar 11, 2020 · 1 comment
Closed

Data not saved on IIS server #56

arti86pl opened this issue Mar 11, 2020 · 1 comment
Labels
Bug Something isn't working Resolved: Won't Fix The reported behaviour will not be changed.

Comments

@arti86pl
Copy link

arti86pl commented Mar 11, 2020

Describe the bug
For some reason data isn't over written when app is on IIS, when I run it on my visual studio, works perfect. See below code:

To Reproduce
On one page, this saves my user's data when logged in:
` async Task saveUID()
{
Users user = await Users.loginUser(Username, Password);

    await localStorage.SetItemAsync("uid", user.id);
    await localStorage.SetItemAsync("first_name", user.firstname);
    await localStorage.SetItemAsync("userdata", user);
}

`
Then I go to user profile page, with following code:

protected override async Task OnInitializedAsync() { uid = await localStorage.GetItemAsync<int>("uid"); first_name = await localStorage.GetItemAsync<string>("first_name"); user = await Users.loginUser("", "", uid); }
Login with one user, read data, save new user data and try to read it.

Expected behavior
It should get data from localstorage, and as I said, when I run it in Visual Studio it works spot on, when I transfer it to IIS server, doesn't and

Hosting Model (is this issue happening with a certain hosting model?):

  • Blazor Server
  • IIS on Windows Server
@arti86pl arti86pl added Bug Something isn't working Triage Issue needs to be triaged labels Mar 11, 2020
@arti86pl arti86pl changed the title [Bug] Data not saved on IIS server Mar 11, 2020
@arti86pl
Copy link
Author

I've resolved it, page was navigating too fast to main page from login.

@chrissainty chrissainty added Resolved: Won't Fix The reported behaviour will not be changed. and removed Triage Issue needs to be triaged labels Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Resolved: Won't Fix The reported behaviour will not be changed.
Projects
None yet
Development

No branches or pull requests

2 participants