Has anybody here seen working sample/source code of Marionette and asp.net mvc? I've found one asp.net mvc sample project under project sections of Marionettejs but that is outdated and doesn't work either. So can somebody tell me precisely where I can get one.
Have you seen this?
https://github.com/priley86/marionette-mvc4-bootstrap-template
I know it's an old question, but better late then never :)
Related
I've used Signal-R in a Blazor Server app, but I don't see a way to implement it in NET MAUI. Apparently this environment doesn't support Signal-R yet but I might be wrong.
If it is, I would appreciate it if you could describe to me how to declare an IHubContext as a service in MauiProgram.cs. Thanks in advance.
I haven't tried it myself (will do later this year), but according to this project: https://github.com/matt-goldman/maui-chat it should be supported.
I've got an app that has elmah embedded in it for error logging. That app runs .net framework 4.x and uses a sql server backend. It is hosted up in azure.
I am porting the app the .net core and to connect to the same database. I've been googling, but can't find a way to manually enter an error into elmah under asp .net core. I need to store more information than just errors. I'm sure that the problem is with my searching on how to do this, so if someone could help a dumb soul and say how to do it, I would appreciate it.
TIA,
Wally
Have you tried HttpContext.RiseError(new InvalidOperationException("Test")); as mentioned in the https://github.com/ElmahCore/ElmahCore/#rise-exception ?
Apologies if this is a stupid question, I've been looking into this for hours and have gotten myself really confused by the different framework versions and by the current state of SignalR.
I've got an asp.net core 1.1 web application (.NET Framework) currently targetting net462, and I wish to add websocket functionality to this using SignalR. I've tried adding the MyGet feed (https://dotnet.myget.org/F/aspnetcore-master/api/v3/index.json) but can't add Microsoft.AspNetCore.SignalR, even though this seems to be the recommended course of action. I wondered if this was because of an incompatibility between SignalR and net462, but SignalR targets netstandard1.3 which as far as I can tell should be compatible with net462.
Can anyone point me in the right direction?
I made two silly mistakes here, posting just in case it helps anyone else:
The correct feed url was: https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json
I didn't notice there was a 'Package source' dropdown
Recently I added a mobile version of the site using MVC4 .mobile views. I structured the site in a very similar way to the desktop version by starting from _Layout.mobile.cshtml which pointed to the correct scripts and css designed specifically for the mobile site.
After publishing the site I checked that everything worked correctly which it did just as how it was designed. But shortly I was told that the site was broken. When checking the mobile site I noticed that the _Layout.mobile.cshtml was loaded but instead of the Index.mobile.cshtml which is sent from the Home controller, what was returned instead was the standard Index.cshtml designed for desktop. The desktop Index file was also rendered using the mobile css which caused the whole mobile site to look very messed up. On a side note, no changes occurred to the desktop version of the site.
Republishing fixed the issue, but I also noticed that sometimes it reverts back to displaying the correct views without republishing even after it broke.
I began to research the issue and what I stumbled across discussions about Display Modes not working such as this:
ASP.NET MVC 4 Mobile Display Modes Stop Working
With a NuGet solution that read as deprecated: http://www.nuget.org/packages/Microsoft.AspNet.Mvc.FixedDisplayModes
I assumed that since this discussion was from a year ago talking about early releases it should be fixed by more recent MVC4 updates. My current version was 4.0.20710.0 so I updated to 4.0.30506 using NuGet before doing anything else.
This did not solve the issue but not only that, upon inspecting I noticed the reference System.Web.MVC was still pointing towards the 4.0.20710.0 version dll file.
I am worried about adding an unnecessary fix that is labeled deprecated and was hoping that the MVC update would resolve this issue. Any suggestions?
the package in your link is the package for the pre-release Asp.Net MVC 5. Indeed, they did solve the issue you are having in the Asp.Net MVC 5 package, but it is still pre-release with Visual Studio 2013. In the additional links on the page, there is a link for the non-beta, non-RC release that still applies to Asp.Net MVC 4 (FixedDisplayModes)
first of all this is my first question and I want to follow rules, but if I made a mistake, I am apologize :) My problem is that I want scale-out my website, which using SignalR and I wanted to download SignalR.Redis from NuGet. But it says that there is nothing like this but I found some tutorials witch talking about support for Redis in form of mentioned package on NuGet. I looking on internet for the reason of missing package, but I didnĀ“t find any information about that. Or am I doing something wrong? Can you help me, please?
SignalR Redis is not currently available. The beta for 1.1 will be coming out soon which will have the Redis scaleout package.