Questions tagged [dnx50]

54 questions
10
votes
5 answers

Export to pdf using ASP.NET 5

I am working on MVC 6 application(DNX Core 5.0 framework). Unfortunately, I don't find any library for pdf export. Any help will be appreciated.
Antoan Elenkov
  • 711
  • 1
  • 5
  • 20
7
votes
3 answers

Asp.net 5 Web Application startup exception after successful publish

I have an Asp.net 5 web application that works and runs fine in development (from Visual Studio or VS code I can launch no problem). However, after successfully publishing the app, when trying to launch the website with "web.cmd" the following…
brando
  • 8,215
  • 8
  • 40
  • 59
7
votes
2 answers

The element 'system.webServer' has invalid child element 'httpPlatform'

I am working through Shawn Wildermuth's course here and get the following warning about web.config when I build Severity Code Description Project File Line Warning The element 'system.webServer' has invalid child element…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
4
votes
3 answers

SelectSingleNode is giving compilation error in dnx core 5.0

I am getting this error with SelectSingleNode method: DNX Core 5.0 error CS1061: 'XmlDocument' does not contain a definition for 'SelectSingleNode' and no extension method 'SelectSingleNode' accepting a first argument of type 'XmlDocument' could be…
Prosenjit
  • 41
  • 3
3
votes
0 answers

Send X509 Certificate with HttpRequestMessage (dnxcore50)

Any ideas on how to include a client certificate in a POST request to an external API using .NET Core, running on a Mac? I would do this with WebRequestHandler from the Microsoft.Net.Http nupkg, but it looks like it's not available--I'm getting…
Romi Petrelis
  • 536
  • 6
  • 6
3
votes
0 answers

How to enable keep-alive in HttpClient

HttpClient class with in .NET core is not using keep-alives. It is re-connecting and re-authenticating to server on each request. This can be especially slow with NTLM authentication that requires multiple round-trips. I'm passing new…
alex
  • 12,464
  • 3
  • 46
  • 67
3
votes
1 answer

Can the dnx/dotnetcore package cache location be changed

I have a machine where the C:\ drive is running out of space and I'd like to change the location where my DNX/DOTNET packages are installed to a location under my D:\ drive. Is the package cache location configurable? NOTE: I don't have the…
Damian
  • 2,709
  • 2
  • 29
  • 40
3
votes
1 answer

Why can't xUnit find my DNX tests?

I'm starting a new ASP.net vNext / MVC6 project and I want to use xUnit to test it. I've followed the instructions on the xUnit web site for DNX projects. When I try to run the tests in Visual Studio, either using the built-in runner or in…
Tim Long
  • 13,508
  • 19
  • 79
  • 147
3
votes
1 answer

Environment.Version equivalent in core clr

The following code is valid for the dnx451 framework but not the dnxcore50 string ver = Environment.Version This method does not exist: Is there an equivalent property in the dnxcore50 framework? Update as per Victors answer you can use…
wal
  • 17,409
  • 8
  • 74
  • 109
3
votes
0 answers

How to work with image in ASP.net 5?

i need resize image, i am use ASP.net 5, and i want to host my app on ubuntu. I have a problem, with dnxcore50, it is not supported system.drawing and other custom libs. How to resolve this problem or what should I do? Thanks
Alex Repeckiy
  • 173
  • 10
3
votes
2 answers

Choosing between dnx451 and dnxcore 50 for Azure Web App in terms of functionality, performance, etc

I am creating a new project that will run in Azure Web App on the new ASP.NET 5. We are not planning to run it on linux or anything like that, at least now. So the question is, should I try to keep both frameworks if possible just in case or I…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
2
votes
1 answer

ASP.NET No suitable constructor for WebSocketManagerMiddleware

I got error when created WebSocketManagerExtensions like this: System.InvalidOperationException A suitable constructor for type 'CustomerManagementCore.WebSocketManager.WebSocketManagerMiddleware' could not be located. Ensure the type is concrete…
Justinus Hermawan
  • 1,194
  • 1
  • 23
  • 44
2
votes
0 answers

angular2 with ASP.NET 5 working in Chrome but not in Firefox and IE (Error in zone.js)

Basic Problem with the following configuration is, that it is working in Chrome without exceptions. But FF and IE are throwing exceptions from zone.js. Alle files seem to be adressed correctly (no html instead of js in 404 case), but im still…
southz rgw
  • 353
  • 4
  • 13
2
votes
2 answers

How to create nuget package (dll) for standard framework and .Net Core?

I want to create data small data access library for Sql Server that wraps standard Sql Client classes, and publish it to NuGet. I want to use this NuGet package both in standard and .Net core apps. I created class library project with some data…
Jovan MSFT
  • 13,232
  • 4
  • 40
  • 55
2
votes
1 answer

Using [Bind(Exclude='ID')] in DNX 5 with no System.Web

I've read that you can use: [Bind(Exclude="id")] to stop an ID field from invalidating a ModelState when creating a record from a 'Create' action. With DNX Core 5 System.Web is no longer available. Is there an equivalent way to ignore an…
jidl
  • 195
  • 1
  • 2
  • 19
1
2 3 4