Questions tagged [.net]

0 votes
0 replies
Call to WCF WebService works locally but not from Azure App Service
I have a WCF WebService (.NET 4.0) that is accessible through a public IP address. I have a C# MVC project running (.NET 4.7.2) that I host in Az...
asked 4 months ago
-1 votes
0 replies
Windows-Based Client that will take data from another Windows Program [closed]
We would like to create a new software client that will run on a Windows environment that will listen to another, separate software system's inpu...
asked 4 months ago
2 votes
2 replies
Linq GroupBy Clause not including items with zero count
I have a query below which is supposed to group the result by Id, EntityName, DocType, Jurisdiction. For each group the query also returns the Pr...
asked 4 months ago
-1 votes
1 replies
How to get element id from xml url string
I need to import some xml data into my application but i cant find out how to get the element attribute from the product element. i havent reall...
asked 4 months ago
1 votes
2 replies
How to access nested namespaces to avoid the need to fully qualify in .NET
I feel like I'm missing something obvious here, but this issue has dogged me for some time. I define some classes in a couple of different neste...
asked 4 months ago
1 votes
1 replies
Why does my app not stop after an unhandled exception?
I want to find out how the Windows Event Log works when my app crashes, so I added a test button to throw new Exception(). To my surprise, the ap...
asked 4 months ago
1 votes
1 replies
Unable to Deploy System.Net.Http with ClickOnce installer
We are developing a .NET windows application and decided to use ClickOnce instead of just copy/paste files from release folder. After deployed a...
asked 4 months ago
0 votes
0 replies
Parameter is incorrect with Legacy MSXML2.ServerXMLHTTP60 Error
I have a legacy Windows Service I inherited from a previous developer. What exactly is the error: Parameter is incorrect The application...
asked 4 months ago
1 votes
1 replies
How do I provide context to terminologies in Visual Studio?
The IDE does not recognize some terminology as being in context with my code. Could I employ quotes ""? This code is for an OSS controller. When...
asked 4 months ago
0 votes
1 replies
Is there a way to view DynamicMethod resulting x86 assembly code?
I'm building a DynamicMethod on the fly inserting OpCodes using ILGenerator. I'm using a Visual Studio plugin to view the IL code in the DynamicM...
asked 4 months ago
0 votes
0 replies
JetBrains Rider “extern alias” and “using” support
Currently I see JetBrains Rider has some issues with extern alias and using. It underlines it all, some text is red. So, I have kind of "Referen...
asked 4 months ago
0 votes
1 replies
Delete first element of array before pushing a new one
I'm using FireSharp to manage an array of items in a Firebase Realtime database. I'm trying to implement a kind of queue of 30 messages. I want...
0 votes
0 replies
Display string as HTML view on printer, PDF, OneNote, Fax, XPS, etc
I would like to print HTML view from string no matter what kind of printer user choose. I'm trying to use System.Drawing library and method DrawS...
asked 4 months ago
0 votes
1 replies
Cmd.Parameters Vs Cmd.Parameters.Item
I am facing some awkward situation with VB.Net code. I am having source code of ASP.Net using VB.Net which was written in late 2010. It has bee...
asked 4 months ago
-1 votes
0 replies
How do I call the Form1_Paint event in TextBox_TextChanged event in C#?
I have a TextBox named and it requires a folder path from the user. I am searching for a file in the specified folder. If found, it will change t...
asked 4 months ago
0 votes
1 replies
Send a message with a new library (Microsoft.Azure.ServiceBus) that is read by an old library (Microsoft.ServiceBus.Messaging) with BodyType - String
I have a client written for some time ago that uses the old library and does call GetBody<string>() to read the body when receiving message...
asked 4 months ago
0 votes
2 replies
How do I implement SSO that can connect to multiple Active directories?
I need to implement user authentication by reading from multiple Active Directories. If this is possible, what would be the standard way of stori...
-3 votes
0 replies
How to assign sql variable to c# variable, in T4
Iam using texttemplates(c#.net) to generate sql query, as below, <#@ template language="C#" #> <# int showMessage = #> SELECT (CAS...
asked 4 months ago
-1 votes
1 replies
Conditionally change the types of certain properties when serializing to JSON
I have a custom class, which I am serializing using JSON.NET. In that class, lets call it posInvoice, I have properties such as UnitPrice, Quanti...
asked 4 months ago
0 votes
0 replies
Bunifu ToogleSwitch: how set DisableState?
Do you know how set Bunifu ToogleSwitch to "DisabledState" in a way to show its "disabled" colors? This control has 3 states: ON, OFF and DISABL...
asked 4 months ago
0 votes
1 replies
could not load file or assembly 'quickfix_net.dll' or one of its dependencies
(Let me apologize first and say I have researched this question heavily and I'm aware there is much discussion about it and I believe I have trie...
asked 4 months ago
0 votes
3 replies
Efficiently writing an int array to file
I have a potentially larger int array that I'm writing to a file using BinaryWriter. Of course, I can use the default approach. using (BinaryWri...
asked 4 months ago
0 votes
0 replies
How to set minimum width of outlook Right Side Pane in Inspector and Explorer window
I have created a outlook addin using addin-express. When I drag the addin from right pane to bottom pane and reduce its height into 2 digits e.x...
-1 votes
0 replies
Asp.net core with non core dependencies
Is it possible to enjoy the portability that .net core offers while still using some dll's that have not been ported? I'm currently trying to ru...
asked 4 months ago
-2 votes
0 replies
Exception thrown: 'System.ArgumentException' in System.Drawing.dll
I am trying to compress a bmp image and save in a desired location. But getting error Exception thrown: 'System.ArgumentException' in System.Dra...
asked 4 months ago