I want to print a .pdf file in server-side (api or mvc).
I have tried to research but can not find any solution.
I need a solution, please.
I want to print a .pdf file in server-side (api or mvc).
I have tried to research but can not find any solution.
I need a solution, please.
Hello All,
I have created a web API in the asp.Net core and enabled cors in the startup.cs file. After deployment windows server APIs are accessible via AJAX from another domain. But when I am hosting the APIs on another windows server it is throwing the following error:-
"Failed to load http://someDomian/api/APIName: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:57515, *', but only one is allowed. Origin 'http://localhost:57515' is therefore not allowed access."
I am wondering why APIs are giving errors on one web server while they are accessible from another web server.
Thanks in advance
I want to add an ApplicationUser user in my integration test, so i need to use ‘UserManager.CreateAsync()’.
I already know how to get the ApplicationDbContext, from the ‘integration testing’ docs page.
My question is how do i get the UserManager service in the integration test or any other di registered service?
Hi All,
Can we install .net core SDK on CentOS 7.2 ?
As per link they support only 7.1
https://www.microsoft.com/net/core#linuxcentos
Regards,
Sidh
I need some guidance on choosing between MVC and Razor Pages for a small business application.
I read a thread on reddit (link below) about using razor pages. There was quite a bit of disdain for razor pages; the comments were opinionated and unhelpful. I like the organizational benefits to Razor Pages, and would prefer to use it unless there is a clear reason why I shouldn't.
https://www.reddit.com/r/dotnet/comments/6vnpmy/aspnet_razor_pages_vs_mvc_how_do_razor_pages_fit/
Currently, I don't see why Razor Pages wouldn't be able to replace controllers for the following reasons...
It still seems like there is still a pretty good separation between the model, view, and business logic when using Razor Pages. If anyone has a concrete example as to why Razor Pages wouldn't work for this use case, please let me know.
I am trying to create an ASP.NET Core application from scratch. It helps to understand everything. Unfortunately, I am getting an error when I attempt to see my database. The error is shown below. I have read through everything it seems like. I have googled. I have tried a bunch of different things. I am completely lost on this and I admit it. I am trying to create some roles and to create a couple of users so that I can easily seed my database. Can someone show me a correct/recommended way to add some roles and a user to my starting app?
+ $exception {System.InvalidOperationException: Cannot create a DbSet for 'ApplicationRole' because this type is not included in the model for the context.
The exception occurs on this command in my DbInitializer Initilize() method:
!(await _roleManager.RoleExistsAsync("Administrator"))
Here is the content of my Startup class:
public class Startup
{
public static IConfigurationRoot Configuration { get; set; }
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json");
Configuration = builder.Build();
services.AddSingleton(Configuration);
// Add EF services to the services container.
services.AddDbContext<PoopTheWorldContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("PoopConnection")));
services.AddMvcCore();
services.AddIdentity<ApplicationUser, ApplicationRole>()
.AddEntityFrameworkStores<PoopTheWorldContext>()
.AddDefaultTokenProviders();
services.Configure<IdentityOptions>(options =>
{
// Password settings
options.Password.RequireDigit = true;
options.Password.RequiredLength = 8;
options.Password.RequireNonAlphanumeric = false;
options.Password.RequireUppercase = true;
options.Password.RequireLowercase = false;
options.Password.RequiredUniqueChars = 6;
// Lockout settings
options.Lockout.DefaultLockoutTimeSpan = TimeSpan.FromMinutes(30);
options.Lockout.MaxFailedAccessAttempts = 10;
options.Lockout.AllowedForNewUsers = true;
// User settings
options.User.RequireUniqueEmail = true;
});
services.ConfigureApplicationCookie(options =>
{
// Cookie settings
options.Cookie.HttpOnly = true;
options.Cookie.Expiration = TimeSpan.FromDays(150);
options.LoginPath = "/Account/Login"; // If the LoginPath is not set here, ASP.NET Core will default to /Account/Login
options.LogoutPath = "/Account/Logout"; // If the LogoutPath is not set here, ASP.NET Core will default to /Account/Logout
options.AccessDeniedPath = "/Account/AccessDenied"; // If the AccessDeniedPath is not set here, ASP.NET Core will default to /Account/AccessDenied
options.SlidingExpiration = true;
});
// Add Database Initializer
services.AddScoped<IDbInitializer, DbInitializer>();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app,
IHostingEnvironment env, IDbInitializer dbInitializer)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.Run(async (context) =>
{
await context.Response.WriteAsync("Hello World!");
});
app.UseStaticFiles();
app.UseAuthentication();
dbInitializer.Initialize();
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
}
}
Here is the content of my DbInitializer class:
public class DbInitializer : IDbInitializer
{
private readonly PoopTheWorldContext _context;
private readonly UserManager<ApplicationUser> _userManager;
private readonly RoleManager<ApplicationRole> _roleManager;
public DbInitializer(
PoopTheWorldContext context,
UserManager<ApplicationUser> userManager,
RoleManager<ApplicationRole> roleManager)
{
_context = context;
_userManager = userManager;
_roleManager = roleManager;
}
//This example just creates an Administrator role and one Admin users
public async void Initialize()
{
//create database schema if none exists
_context.Database.EnsureCreated();
//If there is already an Administrator role, abort
if (!(await _roleManager.RoleExistsAsync("Administrator"))) <- Error occurs here
{
//Create the Administartor Role
await _roleManager.CreateAsync(new ApplicationRole("Administrator"));
}
//Create the default Admin account and apply the Administrator role
string user = "xxx@yyy.com";
string password = "AbC!12345";
var success = await _userManager.CreateAsync(new ApplicationUser { UserName = user, Email = user, EmailConfirmed = true }, password);
if (success.Succeeded)
{
await _userManager.AddToRoleAsync(await _userManager.FindByNameAsync(user), "Administrator");
}
}
Thanks for any help. :-)
It's hard to find documentation on what command line arguments work where, but I believe I should be able to change the "binding" used by my self contained / self hosted application by passing --urls "http://*:9001" for example. But no matter what I pass, the application still binds to localhost.
(I've also tried server.urls)
PS C:\git\music\Music> .\bin\Release\netcoreapp2.0\win10-x64\publish\Music.exe --urls http://*:5000 Hosting environment: Production Content root path: C:\git\music\Music Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down. Application is shutting down... PS C:\git\music\Music> .\bin\Release\netcoreapp2.0\win10-x64\publish\Music.exe --urls "http://*:5001" Hosting environment: Production Content root path: C:\git\music\Music Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down. Application is shutting down...
Edit: setting $env:ASPNETCORE_URLS="http://0.0.0.0:9001" works but shouldn't the command line version also work?
How to get Session in ASP.NET Core 2.0 on Cross-Origin Requests?
I use a pie chart using google charts. In my page I load the chart as described in the docs. It's a view in asp.net that renders the output. The view checks if a class called Avstemning is populated then puts strings from that class into the chart as data. But if I use Norwegian letters like ø,æ, å. The chart data can't read it even as I specify the language option to use. What is going on here? If I change the data variable to take hard coded options with norwegian letters it works. But that's not exactly ideal. Any ideas on how to solve this?
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> @if (Model.Avstemning != null) { <script type="text/javascript"> google.charts .load('current', { 'packages': ['corechart'], 'language':'no' }); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Avstemning', '@Model.Avstemning.Tittel'], ['@Model.Avstemning.Option1', @Model.Avstemning.One], ['@Model.Avstemning.Option2', @Model.Avstemning.Two], ['@Model.Avstemning.Option3', @Model.Avstemning.Three] ]); var options = { title: '@Model.Avstemning.Tittel'}; var chart = new google.visualization.PieChart(document.getElementById('piechart')); chart.draw(data, options); } </script> }
My guess is that the strings that populates the javascript code is in another format(?) so the javascript can't translate it to norwegian?
Hi there,
I am developing a MVC/WebAPI project, that authenticates the user against an AAD. This works perfectly (because it was set up by the project creation assistant ;)). But now I am faced with the problem to access more user details in AAD. I am using the Graph Client library, but cannot get access to it, because I am a little confused by all the token stuff and didn't find a working example for that.
What I have done till now:
1. Changed AzureAdAuthenticationBuilderExtensions.cs to access the tokens afterwards:
options.ResponseType = "token id_token"; options.Resource = _azureOptions.ClientId; options.SaveTokens = true;
2. Added following code to a WebAPI method to retrieve the current user's profile:
var accessTokenRequest = HttpContext.GetTokenAsync("access_token"); accessTokenRequest.Wait(); //Update cloud data AuthenticationContext authContext = new AuthenticationContext(Configuration.GetValue<string>("AzureAd:Instance") + Configuration.GetValue<string>("AzureAd:Domain")); var ua = new UserAssertion(accessTokenRequest.Result); var at = authContext.AcquireTokenAsync("https://graph.microsoft.com", Configuration.GetValue<string>("AzureAd:ClientId"), ua); at.Wait(); GraphServiceClient graphClient = new GraphServiceClient(new DelegateAuthenticationProvider( (requestMessage) => { requestMessage.Headers.Authorization = new AuthenticationHeaderValue("bearer", at.Result.AccessToken); return Task.FromResult(0); })); var request = graphClient.Me.Request(); var b = request.GetAsync().Result;
I am sure, that I am mixing up the token types, because I don't get the Access Token from the AuthenticationContext. It fails with the exception
"One or more errors occurred. (AADSTS50027: Invalid JWT token. AADSTS50027: Invalid JWT token. Token format not valid."
Can anyone lead me into the right direction?
Thanks in advance!
My next step in this journey is to create some roles and a simple user. Unfortunately, I get an error regarding my tables not having primary keys as shown below. I don't understand how to fix it. I think this should be really simple, I should just get an instance of a role manager, and then just add a role, so I am really surprised by this. Unfortunately, the error message is saying that the IdentityUserLogin<Guid> doesn't have a primary key. When I look in OnModelCreate, there is a Key entry for that table, so I am not sure what is going on. Any help is appreciated.
TIA
I am trying to use the following code in my Startup's ConfigureServices method:
// Build the intermediate service provider
var serviceProvider = services.BuildServiceProvider();
//resolve implementations
var dbContext = serviceProvider.GetService<PoopTheWorldContext>();
var _context = new PoopTheWorldContext(
serviceProvider.GetRequiredService<DbContextOptions<PoopTheWorldContext>>());
var userManager = serviceProvider.GetService<UserManager<ApplicationUser>>();
var roleManager = serviceProvider.GetService<RoleManager<ApplicationRole>>();
var roleTask = roleManager.RoleExistsAsync("Administrator");
var roleExists = roleTask.Result;
Exception:
System.AggregateException occurred
HResult=0x80131500
Message=One or more errors occurred. (The entity type 'IdentityUserLogin<Guid>' requires a primary key to be defined.)
Source=<Cannot evaluate the exception source>
StackTrace:
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at PooperApp.Startup.ConfigureServices(IServiceCollection services) in C:\Users\wallym\Documents\Visual Studio 2017\Projects\PooperApp\PooperApp\Startup.cs:line 91
Inner Exception 1:
InvalidOperationException: The entity type 'IdentityUserLogin<Guid>' requires a primary key to be defined.
I check out my OnModelCreating, and I see a key definition for IdentityUserLogin.
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<AspNetRoleClaims>(entity =>
{
entity.HasIndex(e => e.RoleId);
entity.HasOne(d => d.Role)
.WithMany(p => p.AspNetRoleClaims)
.HasForeignKey(d => d.RoleId);
});
modelBuilder.Entity<AspNetRoles>(entity =>
{
entity.HasIndex(e => e.NormalizedName)
.HasName("RoleNameIndex")
.IsUnique()
.HasFilter("([NormalizedName] IS NOT NULL)");
entity.Property(e => e.Id).ValueGeneratedNever();
entity.Property(e => e.Name).HasMaxLength(256);
entity.Property(e => e.NormalizedName).HasMaxLength(256);
});
modelBuilder.Entity<AspNetUserClaims>(entity =>
{
entity.HasIndex(e => e.UserId);
entity.HasOne(d => d.User)
.WithMany(p => p.AspNetUserClaims)
.HasForeignKey(d => d.UserId);
});
modelBuilder.Entity<AspNetUserLogins>(entity =>
{
entity.HasKey(e => new { e.LoginProvider, e.ProviderKey });
entity.HasIndex(e => e.UserId);
entity.HasOne(d => d.User)
.WithMany(p => p.AspNetUserLogins)
.HasForeignKey(d => d.UserId);
});
modelBuilder.Entity<AspNetUserRoles>(entity =>
{
entity.HasKey(e => new { e.UserId, e.RoleId });
entity.HasIndex(e => e.RoleId);
entity.HasOne(d => d.Role)
.WithMany(p => p.AspNetUserRoles)
.HasForeignKey(d => d.RoleId);
entity.HasOne(d => d.User)
.WithMany(p => p.AspNetUserRoles)
.HasForeignKey(d => d.UserId);
});
modelBuilder.Entity<AspNetUsers>(entity =>
{
entity.HasIndex(e => e.NormalizedEmail)
.HasName("EmailIndex");
entity.HasIndex(e => e.NormalizedUserName)
.HasName("UserNameIndex")
.IsUnique()
.HasFilter("([NormalizedUserName] IS NOT NULL)");
entity.Property(e => e.Id).ValueGeneratedNever();
entity.Property(e => e.Email).HasMaxLength(256);
entity.Property(e => e.NormalizedEmail).HasMaxLength(256);
entity.Property(e => e.NormalizedUserName).HasMaxLength(256);
entity.Property(e => e.UserName).HasMaxLength(256);
});
modelBuilder.Entity<AspNetUserTokens>(entity =>
{
entity.HasKey(e => new { e.UserId, e.LoginProvider, e.Name });
entity.HasOne(d => d.User)
.WithMany(p => p.AspNetUserTokens)
.HasForeignKey(d => d.UserId);
});
}
Hi everyone if anyone reads me help me please i need it. I am a student, I work on an asp mvc core 2.0 project on VS 2017, except that my application does not run. Vs returns the following error:
Severity Code Description Project File Line Delete status Error Visual Studio Container Tools requires Docker CE for Windows. To obtain it, go to https://go.microsoft.com/fwlink/?linkid=847268 For more information, see: http://aka.ms/DockerToolsTroubleshooting docker-composer C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Sdks \ Microsoft.Docker.Sdk \ build \ Microsoft.VisualStudio.Docker.Compose.targets 165
what should I do? Thank you.
Hi i start learning dot net core.
When i create a new project in Visual Studio Code, I try running the project but I got the following erorr
"InvalidOperationException: The layout view '~/Views/Shared/_Layout.cshtml' could not be located. The following locations were searched:
~/Views/Shared/_Layout.cshtml"
Here is the _Layout.cshtml
<!DOCTYPE html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>@ViewData["Title"] - MVCProject</title><environment include="Development"><link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" /><link rel="stylesheet" href="~/css/site.css" /></environment><environment exclude="Development"><link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css" asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css" asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" /><link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" /></environment></head><body><nav class="navbar navbar-inverse navbar-fixed-top"><div class="container"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">MVCProject</a></div><div class="navbar-collapse collapse"><ul class="nav navbar-nav"><li><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li><li><a asp-area="" asp-controller="Home" asp-action="About">About</a></li><li><a asp-area="" asp-controller="Home" asp-action="Contact">Contact</a></li></ul></div></div></nav><div class="container body-content"> @RenderBody()<hr /><footer><p>© 2017 - MVCProject</p></footer></div><environment include="Development"><script src="~/lib/jquery/dist/jquery.js"></script><script src="~/lib/bootstrap/dist/js/bootstrap.js"></script><script src="~/js/site.js" asp-append-version="true"></script></environment><environment exclude="Development"><script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js" asp-fallback-src="~/lib/jquery/dist/jquery.min.js" asp-fallback-test="window.jQuery" crossorigin="anonymous" integrity="sha384-K+ctZQ+LL8q6tP7I94W+qzQsfRV2a+AfHIi9k8z8l9ggpc8X+Ytst4yBo/hH+8Fk"></script><script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/bootstrap.min.js" asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js" asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal" crossorigin="anonymous" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"></script><script src="~/js/site.min.js" asp-append-version="true"></script></environment> @RenderSection("Scripts", required: false)</body></html>
And here is the _ViewStart.cshtm
@{ Layout = "~/Views/Shared/_Layout.cshtml"; }
Please show me the way to fix it
My ASP.NET Core on .NET Core 2.0 app is authenticating with Azure Active directory with the following code:
///
/// Azure AD Configuration
///
var clientId = "YYYYY";
var tenantId = "XXXXX";
app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
{
AuthenticationScheme = "oidc",
DisplayName = "AzureAD",
SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme,
ClientId = clientId,
Authority = $"https://login.microsoftonline.com/{tenantId}",
ResponseType = OpenIdConnectResponseType.IdToken,
StateDataFormat = dataFormat
});
I can login successfully. When I iterate my Users.Claims object I get the following claim name:
nbf
exp
iss
aud
nonce
iat
sid
sub
auth_time
idp
family_name
given_name
name
amr
I have zero User.Identities.
My user is in the role Observers whic is defines as follows in the manufest:
{
"allowedMemberTypes": [
"User"
],
"displayName": "Observer",
"id": "fcac0bdb-e45d-4cfc-9733-fbea156da358",
"isEnabled": true,
"description": "Observers only have the ability to view tasks and their statuses.",
"value": "Observer"
}
How do I view that role in the Microsoft.AspNetCore.Authorization.Infrastructure.User object?
Hi
can i enable ISAPI extension in Kestrel ?
How can i load and run an isapi extension (like delphi isapi extension dll) in kestrel
Hi,
what is the best way to handle exceptions inside ConfigureServices method?
If I use UseDeveloperExceptionPage I can see the exception details, but if I use UseExceptionHandler the correct handler (action) is not invoked and the generic error page is shown. Exception handler works fine on all other exceptions (inside controllers).
Thanks
I have a asp.net core 2 web app (against full .net framework) that I created using the Angular SPA template is VS2017. I have added in lots of controllers, views & models.
Whilst everything works including the page on the website containing the angular app - that is functional.
However the problem is when I made changes to the angular code it is just ignored. I have added a new component and changes the routing a bit but no matter whether I press F5 to run the project, or compile the the project (in debug or release) it just doesn't use the latest angular source code and carries on using the old version.
No errors are showing up anywhere, I don't know where to start looking.
I have a different asp net core 2 web app that uses angular and that one works ok, but i can't see the difference between the 2 (except that one targets the .net core framework rather than full .net framework).
This application is running in Service Fabric. One website (WebService) does not have a port configured for its endpoint and as it is running on 5 nodes each node gets a dynamic port from the cluster configured range. One website is just a Gateway for the outside world, it is configured with HTTP and Port 1664. The Gateway is running this :
app.RunHttpServiceGateway("/MyApp", "fabric:/MyApp/MyWebService");
This works: http://localhost:1664/MyApp nicely shows the website that is served by the WebService.
But The WebService makes use of Azure OpenID and after login has a redirect Url https://localhost:44386
Now because the gateway is listening on http::+1664, after login, we lost the site. So we need to have the gateway running on HTTPS at port 44386.
What we had was this for the Gateway:
protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners() { return new ServiceInstanceListener[] { new ServiceInstanceListener(serviceContext => new KestrelCommunicationListener(serviceContext, "ServiceEndpoint", (url, listener) => { ServiceEventSource.Current.ServiceMessage(serviceContext, $"Starting Kestrel on {url}"); return new WebHostBuilder() .UseKestrel() .ConfigureServices( services => services .AddSingleton<StatelessServiceContext>(serviceContext)) .UseContentRoot(Directory.GetCurrentDirectory()) .UseStartup<Startup>() .UseServiceFabricIntegration(listener, ServiceFabricIntegrationOptions.None) .UseUrls(url) .Build(); })) }; }
ServiceManifest:
<Resources> <Endpoints> <!-- This endpoint is used by the communication listener to obtain the port on which to listen. Please note that if your service is partitioned, this port is shared with replicas of different partitions that are placed in your code. --> <Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input" Port="1664" /> </Endpoints> </Resources>
In the https implementation we changed it to:
protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners() { return new ServiceInstanceListener[] { new ServiceInstanceListener(serviceContext => new KestrelCommunicationListener(serviceContext, "ServiceEndpoint", (url, listener) => { ServiceEventSource.Current.ServiceMessage(serviceContext, $"Starting Kestrel on {url}"); string certificateFileName = "localhost.pfx"; string certificatePassword = "passw0rd!"; var cert = new X509Certificate2(certificateFileName, certificatePassword); return new WebHostBuilder() .UseKestrel(options => { options.Listen(new IPEndPoint(IPAddress.Loopback, 44386), listenOptions => { var httpsConnectionAdapterOptions = new HttpsConnectionAdapterOptions() { ClientCertificateMode = ClientCertificateMode.AllowCertificate, SslProtocols = System.Security.Authentication.SslProtocols.Tls, ServerCertificate = cert }; listenOptions.UseHttps(httpsConnectionAdapterOptions); }); }) .ConfigureServices( services => services .AddSingleton<StatelessServiceContext>(serviceContext)) .UseContentRoot(Directory.GetCurrentDirectory()) .UseStartup<Startup>() .UseServiceFabricIntegration(listener, ServiceFabricIntegrationOptions.None) .UseUrls(url) .Build(); })) }; }
<Resources> <Endpoints> <!-- This endpoint is used by the communication listener to obtain the port on which to listen. Please note that if your service is partitioned, this port is shared with replicas of different partitions that are placed in your code. --> <Endpoint Protocol="https" Name="ServiceEndpoint" Type="Input" Port="44386" /> </Endpoints> </Resources>
Now browing to https://localhost:44386/MyApp,prompts me if I want to accept the certificate, but then in Edge I get:
The connection to the website was reset.
Error Code: INET_E_DOWNLOAD_FAILURE
And in Chrome I get:
localhost didn’t accept your login certificate, or one may not have been provided.
<div id="suggestions-list" jstcache="6" jsdisplay="(suggestionsSummaryList && suggestionsSummaryList.length)">I developed asp.net core intranet application which uses windows authentication and We have this weird problem start seeing.
When my client deploy the app to the production environment and test with a few users it works nicely but once they start using with more users( around 50 )
it seems to kick out user who was logged in and people are prompted for credential. My client network looks very complicated(they said it was set up to be secure ) and
has to go through special router(they could not explain what's for ). While I can create fake 50 users in Domain controller to simulate the different users with JMeter. are there any monitor tools I can use to find out what is the problem on the client site?
Thanks in advance
Hey everyone
I have a project that has a bunch of aspx pages in it, including a login page. What is happening right now is that login pages takes the user to several other subsequent pages and so forth.
What I want to do is once the user login all the pages should be in a framework or envelope with top right corner with a logout button.
How can I go about doing that. Maybe add a page (maybe a master page) that will stay during the course of the site. I don't know.
I want to use all the aspx pages just need them in a box or a boundary.
Thanks
-Sarah