Quantcast
Channel: User Scott Salyer - Stack Overflow
Browsing latest articles
Browse All 36 View Live

Comment by Scott Salyer on VS2022 - Can't view values of variables when...

I tried this for a .Net 7 app, but still get the same error. I'm on VS 17.4.2.

View Article



Comment by Scott Salyer on .NET 7 Distributed Transactions issues

I guess my question here is if EF Core 7 is referencing 5.0.1, I'm not sure how I can update that since it's an external package and not something I control? Do I just wait for the EF team to reference...

View Article

Comment by Scott Salyer on SQL Server Full-Text Index with Overridable Data

The problem with this is there are 7 fields that can be overridden. Would I join the table for each override option to grab the corresponding values for each column?

View Article

Comment by Scott Salyer on SQL Server Full-Text Index with Overridable Data

That's the only other option I could come up with!

View Article

Comment by Scott Salyer on Global Exception Handling with .NET Core 7

@RuikaiFeng done! I added all relevant code - middleware and the startup.cs setup that enables the middleware.

View Article


Comment by Scott Salyer on Global Exception Handling with .NET Core 7

I tried commenting that out entirely, but then I just get a 500 error with no response text.

View Article

Comment by Scott Salyer on The entity type [type] is not part of the model...

I don't, but that's where it gets weird - it's basically all types when this happens. All I have to do is refresh the page and a new type won't be there (shown via a YSOD), so it's almost like it loses...

View Article

Comment by Scott Salyer on ConstraintLayout Adding Margin to Top

Worked like a charm - thank you!

View Article


Comment by Scott Salyer on NServiceBus Invalid Subscriptions

Ugh - that was bad copy/paste. Updated the code :-)

View Article


Comment by Scott Salyer on NServiceBus Invalid Subscriptions

Thank you! Sometimes the nServiceBus documentation gets really confusing (one of their engineers confirmed this), so it can be hard to piece some of this together. I took your examples and was able to...

View Article

Answer by Scott Salyer for HTTP Error 500.19 - Internal Server Error...

After a lot of trial and error, I finally figured it out! The <rewrite /> section is what it was mad about and I had to install the URL Rewrite Module from Microsoft to get it to work. It...

View Article

Image may be NSFW.
Clik here to view.

HTTP Error 500.19 - Internal Server Error (0x8007000d)

I am trying to deploy a .Net Core 5 WASM app to a brand new Windows Server 2019 virtual server and am encountering the very generic The requested page cannot be accessed because the related...

View Article

NumberFormatter Not Found in Laravel 5.5

I have a fairly basic setup to use the NumberFormatter inside PHP like so:$percent_formatter = new \NumberFormatter('en_US', NumberFormatter::PERCENT);For some reason, I get a Laravel error back saying...

View Article


ASP.NET Core 5 Web API Uploading Files

I am trying to work through uploading files with .Net 5 Web API and Blazor and struggling immensely with getting this implemented.From everything I've gathered online, I have to have an upload control,...

View Article

Image may be NSFW.
Clik here to view.

Cannot Migrate Blazor App to .Net 5 Due to System.Runtime Error

I have been working through an awesome tutorial within Udemy to learn more about Blazor (https://www.udemy.com/course/programming-in-blazor-aspnet-core/), but have hit a stumbling block that I'm not...

View Article


Image may be NSFW.
Clik here to view.

WPF Cut Corner Element

I am trying to create something similar to the image below in WPF. This control is designed to be the base view of everything in my app and will be sitting inside a Window control with a background...

View Article

JsonSerializer.DeserializeAsync Not deserializing

I am working with my first Blazor app and running into a strange problem. I have a Web API that returns a fairly basic JSON response:{"entityId": 26,"notifications": [ {"type": "Success","message":...

View Article


Answer by Scott Salyer for Sweet Alert Form Submit Confirmation Doesn't...

I think the problem is you've got a onsubmit="submitForm(this);" action, but then you're later calling form.submit() so it probably just repeats that same action every time. Checking the console with...

View Article

Is IISExpress Single-Threaded?

I am in the process of writing a custom .Net app that utilizes Claims for security, since we're crossing many boundaries - web, API, batch processing and so on. During development, there are occasions...

View Article

Answer by Scott Salyer for ASP.NET Core MVC Reusable HTML Components

A lucky Google search helped me track down this article regarding tag helpers. Utilizing that, I don't need a RenderFragment (which seems to be Blazor-specific) - I can add inner HTML as needed, by...

View Article

ASP.NET Core MVC Reusable HTML Components

I am starting to dive in deeper to ASP.NET Core and probably my #1 feature with Blazor is the ability to reuse components with RenderFragment parameters, such as:<div class="dropdown is-right"...

View Article


Razor Pages (dotnet core) - 404

We have an app built on dotnet core (currently 5, will be upgrading to 6 soon) that has a very strange issue. 95% of the web app runs perfectly, but there is a single razor page that generates a 404 -...

View Article


Answer by Scott Salyer for Razor Pages (dotnet core) - 404

Well that was quick. A friend looked at it and realized the Build Type on the cshtml page was set to None instead of Content - how it worked in VS I'm not sure I understand, but at least it's solved now.

View Article

Answer by Scott Salyer for Zebra DataWedge Intents with GS-128

After going back and forth with our sales rep and one of their engineers, it turns out the reason this wasn't working is because of a bug within Zebra's DataWedge platform - it's supposed to...

View Article

Zebra DataWedge Intents with GS-128

I am beginning to develop an Android app for a Zebra MC9300 scanner and running into what I'm guessing is a configuration issue, but being new to both Zebra and Android development, I'm at a bit of a...

View Article


Android MultiLine Text Wrapping

I am in the process of building my first Android app and running into a weird problem where text wrapping doesn't seem to work as one would expect. The XML layout is a RelativeLayout because it's a...

View Article

Answer by Scott Salyer for Android MaterialButtonGroup Style Change

After reviewing some additional details, I ended up solving the immediate problem by using setTextAppearance and setBackgroundColor since those are all I was really trying to change anyway. End result...

View Article

Image may be NSFW.
Clik here to view.

Android MaterialButtonGroup Style Change

I am in the process of building my first Android app and am running into an issue that should seemingly be very simple, but I'm at a loss on why it won't work. I am trying to use a MaterialButtonGroup...

View Article

Answer by Scott Salyer for Type Load Exception in EF Core Project

This one nailed me too with EF 7. If you're utilizing lazy loading, make sure to have the Microsoft.EntityFrameworkCore.Proxies packaged referenced as well.

View Article



Answer by Scott Salyer for .NET 7 Distributed Transactions issues

For anyone who uses multiple nested TransactionScope instances that can be scattered across multiple business classes, I came up with a simple class that lets you keep a similar approach, but enables...

View Article

Laravel Nova Card Options Missing Function

I was recently given a Laravel app that uses Nova and Vue in it - all three of which I've never worked with before, so apologies in advance if I ask something that should be obvious. Inside the app...

View Article

Answer by Scott Salyer for Global Exception Handling with .NET Core 7

It took some creative digging (thanks to the numerous tips posted), but I finally tracked down what was going on! The relevant code plays into app.UseEndpoints - for whatever reason, adding your...

View Article

Does C# Support Project-Wide Default Namespace Imports Like VB.NET?

I am a recently converted VB developer to C#, but there is one thing thus far that I haven't been able to find. In VB when I setup a new project I can specify the namespaces used in the project and add...

View Article


ConstraintLayout Adding Margin to Top

I am working with an Android app that I inherited (plus I'm fairly new to Android dev) and running into a strange issue with a ConstraintLayout that is used inside a RecyclerView. Everything functions...

View Article

iFrame Automatic Sizing

Before the "beating a dead horse" comments begin, let me clarify what I am trying to do to see if someone can help me.I have a parent window with an iFrame in it. The content in the iFrame is loaded...

View Article

Blazor Component Javascript Errors (Microsoft.JSInterop.JSException)

I have a pretty basic Javascript function stored in a separate JS file that sets the page title for a new Blazor app that looks like this:window.setTitle = (title, icon) => { //title document.title...

View Article

Browsing latest articles
Browse All 36 View Live




Latest Images