Reputation: 13
I have a small ASP.NET Core Razor Pages project. I have 1 page handlers:
public int XId { get; set; }
public async Task<IActionResult> OnGetAsync(int Did)
{
XId = Did;
return Page();
}
and in my .cshtml file:
<span>@Model.XId</span>
in localhost everything is ok. for example https://localhost:44320/Home/bb?Did=4 will show 4 but in web server it is always 0 it seams that parameter is 0 what is the problem?
I upload this site to another sever and it work fine! is that problem relate to iis configuration?
Upvotes: 0
Views: 461
Reputation: 13
The problem was with the CDN configuration and after reset CDN, every things ok.
Upvotes: 0