Why the gently caress did .NET MVC work perfectly fine yesterday then absolutely poo poo the bed when I rebuilt and published this morning? I fixed it by readding the references and setting copy local to true but it is not the first time this has happened.
|
|
# ¿ Jan 28, 2015 16:28 |
|
|
# ¿ May 17, 2024 14:45 |
EssOEss posted:There is probably something wrong with your project setup. I have never seen a case where "Setting copy local to true" is a meaningful step for a well-formed project, only cases where it can be sort of used to hide some deeper underlying issue. I believe readding references fixed it, copy local was a panic move.
|
|
# ¿ Jan 29, 2015 15:24 |
Trying to transition to visual studio 2015 and it's breaking on exceptions even if it's in a try/catch and even if I have all the exception types unchecked in the exception handler. What gives?
|
|
# ¿ Sep 1, 2015 02:16 |
Already on, unfortunately.
|
|
# ¿ Sep 1, 2015 04:01 |
Is there a way in visual studio to check a project for all uses of any enums? I'm having serialization problems with them, but its not just one specific enum, and I have a few hundred of them to sort out (tool generated).
|
|
# ¿ Sep 23, 2015 20:29 |
What would be the best way to have a .net 3.5 console app communicate with a .net 4.0 console app?
|
|
# ¿ Oct 19, 2015 16:25 |
RICHUNCLEPENNYBAGS posted:Do they run on the same machine? PowerShell may be an option. I ended up just publishing a web site with a .svc
|
|
# ¿ Oct 19, 2015 19:03 |
What would be the best way to create a web URL that has a base64 encoded string in it? I had a problem with forward slashes earlier, are there other characters I might need to worry about?
|
|
# ¿ Dec 7, 2015 15:52 |
epalm posted:I'm assuming you mean this? Are there any other projects in your solution that use it? What happens if you remove and readd the reference then rebuild?
|
|
# ¿ Dec 8, 2015 18:24 |
We're in the planning phase of a project and I want to get a general opinion of our current plan. 1. User navigates to "upload" page 2. User uploads file 3. File is saved on the server (temporary files?) 4. Upon successful upload, user is redirected to a "review" page 5. File is run through some components to extract data, data is populated into the "review" page 6. User reviews/modified the extracted data on the review page, then submits 7. A record is created in a database from the data, and the file is saved to a new non-temporary location which is linked to from the record. My biggest concern is how to deal with the file's persistence, making sure that it is properly cleaned up if the user backs out somewhere between steps 4 and 7 but also stays around for the entire process. Also, what would be the best way to make the review page recognize the file that was uploaded? I was thinking when the file was saved in step 3 to give it a GUID for a name, and pass that as a URL parameter to the review page when redirected but the filename will still be important for step 7.
|
|
# ¿ Feb 15, 2016 17:55 |
Is there a way to make an XML serializer print like this:pre:<Contact> <FirstName>Bob</FirstName> <MiddleName></MiddleName> <LastName>Smith</LastName> </Contact> pre:<Contact> <FirstName>Bob</FirstName> <MiddleName /> <LastName>Smith</LastName> </Contact> v That is (un)fortunately beyond the scope of my responsibility. Polio Vax Scene fucked around with this message at 17:43 on Oct 7, 2016 |
|
# ¿ Oct 7, 2016 17:37 |
Is there any functional difference between these two?: var x = DoThingAsync().Result; var y = DoThingAsync(); y.Wait(); var x = y.Result; I understand that both go against the whole point of the async methodology, this is just for a POC console app.
|
|
# ¿ Dec 11, 2018 17:35 |
Something like this?:pre:static T[] Foo<T>(params T[] c) { var ret = new List<T>(); foreach (var obj in c) { ret.Add(obj); } return ret.ToArray(); }
|
|
# ¿ Jun 26, 2019 17:52 |
This was my favorite site starting out. https://www.dotnetperls.com/
|
|
# ¿ Jul 18, 2019 22:50 |
I'm lost and need some guidance. We're building an integration with a third party that uses JWTs to authenticate users. The tokens are signed using an x509 cert. When I use the System.IdentityModel.Tokens.Jwt package to generate a token, it adds an x5t header to the token. We need this to be an x5c header instead, as the third party will not support x5t signed tokens. I've been struggling to find a way to change how the token is signed with no luck. code:
|
|
# ¿ Sep 9, 2020 18:35 |
Yep, the third party engineer was very helpful and was able to provide a sample. So below is my x5c header token code, for posterity.code:
|
|
# ¿ Sep 10, 2020 18:25 |
I'm looking at options for extending a .net core program I've written so that users can create libraries that will be loaded up and imported. Looking at options I see MEF is available in .net core now but I'm not finding a lot of information regarding security. Where can I get info on restricting what actions are available in the loaded libraries' operations?
|
|
# ¿ Sep 29, 2021 21:10 |
That is precisely what I meant. Hmm...so would the next best idea be some sort of lua-like scripting module? Open to suggestions
|
|
# ¿ Sep 29, 2021 21:45 |
It's the latter, with the intent being distribution of plug-ins amongst the community that uses the program. Like what's a way to stop someone from making a plug-in that deletes (or attempts to) all the files in their C: drive? Maybe I just need to have some sort of open source review and master build process instead of letting community members build their own plug-ins?
|
|
# ¿ Sep 29, 2021 23:41 |
I've got a weird issue where I'm trying to separate strings into segments and if a unicode character happens to be right at the segmentation point it'll get "chopped in half" What would be a good way to avoid this?
|
|
# ¿ Nov 4, 2021 19:43 |
Mata posted:I think you can use char.IsLowSurrogate or IsHighSurrogate to detect this case. Thanks, this is exactly what I needed.
|
|
# ¿ Nov 5, 2021 22:49 |
There's a developer on our team that continues to use .NET Framework for all their work. I think they're intimidated by .NET Core or something. Any good resources you recommend that can be used to convince them to swap? vvv Even though we are on the same team, we primarily work on separate projects. The requirement to have all projects on the same framework has not been mandated yet, but I suspect that will be happening soon, and want to have as little friction as possible when it does become reality. Polio Vax Scene fucked around with this message at 17:58 on Dec 20, 2021 |
|
# ¿ Dec 20, 2021 17:38 |
Writing the code is the least important part of writing code
|
|
# ¿ Jan 21, 2022 19:13 |
NihilCredo posted:System.Globalization.CultureInfo.IdgafAboutCulture uncultured swine
|
|
# ¿ Jan 28, 2022 16:19 |
Your team, a team of intellectuals: Have we considered doing a benchmark test of string concatenation methods to identify the most efficient way to generate our log files? We could increase performance by up to 4%! My team: code:
|
|
# ¿ Mar 8, 2022 17:34 |
My work falls into one of these categories - little scripts or programs to shuffle data around - backend data transformations, validations, restrictions from user submitted data - building various integration APIs between our stuff and 3rd parties There's SOME UI stuff occasionally but we let Microsoft's products do most of the heavy lifting on the front end
|
|
# ¿ Mar 5, 2023 23:40 |
|
|
# ¿ May 17, 2024 14:45 |
we have a company license for devexpress so we just feed it into that steamroller
|
|
# ¿ Dec 11, 2023 17:08 |