DbContext is getting disposed - Dependency Injection EF Core (Simple App)
Hello everyone! I've been searching for a while, but I haven't spot anything unusual... Maybe some configuration I've been missing? I'm injecting a dependency file which at the same time contains an...
View ArticleProblem with the passage of a json string in javascript
Hello everyone, I'm developing in asp.net mvc core and use c #, I need to move to javascript a json string representing an array of objects.After processing "ViewData["Data"] =...
View Article.Net Core - windows explorer has stopped working
When I try to run any .net core app on my machine I get an error saying windows explorer has stopped working.The code compiles on my machine fine and works until it gets to host.Run() in Main..I tried...
View ArticleWhere from to start learning asp.net.core 1.0
sirPlease guide where from I should start learning to become an expert in asp.net core 1.0.Regards
View ArticleMocking framework for core
Hi,When I tried to add Moq(4.7.8) from nuget package for my asp.net core project , I got following error. What is the correct version of Moq I should use..Error One or more packages are incompatible...
View ArticleSCD Deployment
I've created a very simple project in VS 2017 using the standard template ASP.NET Core Web Application (.Net Core) and edited the csproj per SCD recommendations in MS docs:Adding this to the property...
View ArticleSignalR and SQL Dependency in asp.netCore 1.1
I'm working on a project whereby i want to pust notifications to the client when database changes. Can i use SignalR and Sql dependency with asp.net core 1.1. Thanks for your Help
View ArticleHow many servers are available to deploy a asp-net core web applications?...
SirHow many servers are available to deploy a asp-net core web applications? Please mention.Regards
View ArticleHow I can read for 10 images two api call the most efficient foreach(item in...
Hello,I have a IEnumerable<string> that contains objectNumbers.Now for each objectNumber I have to read two different api endpoints.If I have read both I will filter some data out of both and...
View ArticleI can not open the files when I start the browser in debugging mode with...
Hello everyone, I am developing an application asp.net core mvc with Visual Studio 2015, and within a html page I have placed links to files of different types (for. Example: pdf, xls, txt, etc ...)...
View ArticleHow do I get route values from inside a View Component controller?
I have a View Component in _Layout.cshtml. My application has a route of /home/{id}. How can I get the id value in my URL route from the View Component controller?public class LayoutViewComponent :...
View ArticleChanges to files aren't reflected in web page
I have found one issue with automatically getting new page when refreshing it after changing some source file in VS. The explanation of this issue is here. Any ideas?
View ArticleReplace the RouteHandler in custom route
In MVC 5 I can do stuff like<div class="comment-right-col">publicclassCustomRouteHandler:MvcRouteHandler{protectedoverrideIHttpHandlerGetHttpHandler(RequestContext requestContext){// add to...
View ArticleIs there a filter for static file request?
is there a way to intercept or filter the request before serving the file? like if i request localhost:5000/images/random.jpg?w=100&h=100so i can get the random.jpg the w and the h, then return it...
View ArticleMemory increase when make multiple requests to .Net Core WebAPI
Hi everyone, I'm working with Asp.net Core WebAPI and I had a problem with memory management as I've posted in this link, I'm not sure whether memory leak or something I don't understand clearly about...
View ArticleDoes Angular2 can directly access the images under app folder ?
<div class="vote"> 0down votefavorite<div class="favoritecount"></div> </div> <div> <div class="post-text" itemprop="text">I am using a jquery theme in my ASP.NET...
View ArticleXunit and .net core
I am having strange problems trying to get Xunit to work on .net core. The latest issue I am having is that xunit seems to depend upon System.Xml.Linq (which of course is not available in .net...
View ArticleMake a pdf and print a file
Hello everyoneI'm really new to .NET Core and we have to make a webapplication for some company. We have an Excel-template which we can fill in with some data, then we have to create a PDF from this...
View Articlecode first using vs2017
The only visual studio i have used so far is -Visual studio 2012 express for web.Well i have created few mvc application with the help of local database(without use of ssms),by using the code first...
View ArticleHow Are You Calling Your Development vs. Production Web Service in ASP.NET CORE
i m working with .net core recently. In my scenario i have to use different web services for test and production in my application. (same functionality but with different service address)for testing it...
View Article