I have a .NET app that is dependent on a native DLL. I have the .NET app set as AnyCPU.
In the post-build step, I plan to copy the correct native DLL from some directory (x86 or AMD64) and place it in the target path.
However, this doesn't work. On a 64-bit machine, the environment variable PROCESSOR_ARCHITECTURE is "x86" in Visual Stu...
I am new to .NET, and don't have much experience in programming.
What is the standard way of handling user authentication in .NET in the following situation?
In Process A, User inputs ID/Password
Process A sends the ID/Password to Process B over a nonsecure public channel.
Process B authenticates the user with the recieved ID/Password
...
I've discovered multiple options for convert a few to serveral PDFs into Postscript, but many are command-line programs with command-line limitations (this application lives on .NET).
Our application generates tens-of-thousands of PDFs that we need to send to a printer, except BEFORE the Postscript is printed we need to edit the Postscr...
I use SOS.dll in VisualStudio to debug my C# program. The program is as below.
The debug command is !DumpStackObjects.
class Program
{
static void Main()
{
Int32 result = f(1);
}
static Int32 f(Int32 i)
{
Int32 j = i + 1;
return j; <===========BreakPoint is here
}
}
After I...
I'm trying to understand how a while loop looks in IL. I have written this C# function:
static void Brackets()
{
while (memory[pointer] > 0)
{
// Snipped body of the while loop, as it's not important
}
}
The IL looks like this:
.method private hidebysig static void Brackets() cil mana...
I have a .xml file in my App_Data folder, I can access it fine in my localhost, however after uploading it to my webhost I got the following:
ASP.NET is not authorized to access
the requested resource. Consider
granting access rights to the resource
to the ASP.NET request identity.
ASP.NET has a base process identity
(typic...
What i'm trying to do is automate the clicking of a button if a condition is met but there are other buttons that are on the page that have the same name, but do different things.
Example:
Accept Button-->Some random Text1-->more random Text1 : "onclick=randomwebpage.com/12345.php"
Accept button-->some random Text2-->more random Text2 :...
I have few Question for which I am not able to get a proper answer .
1) Why should we call SuppressFinalize in the Dispose function when we dont have a destructor .
2) Dispose and finalize are used for freeing resources before the object is garbage collected. Whether it is managed or unmanaged resource we need to free it , then why we ...
I am developing a .NET Windows service that is creating a couple of threads and then uses these threads to send print jobs to printers (there is a thread for each printer). I have some issues which sometimes can be fixed by restarting the service. Some issues also arise when the service has been running for a while. This makes me suspect...
is there any .net4 version of system.data.sqlite?
i get this error:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
what is "additional configuration information"?
or is there another version?
...
Hi,
I kept only one dedicated PC for testing several DotNet and other applications.
If I install one application along with the prerequisites like dotnet, MSI, DirectX, some drievrs etc.
I cant make it sure that the next application installation is correcly done. Results can be seen when deployed application does not run successfully on...
Hi!
I am using vb.net to display email from outlook express! Everything work fine but when some message has attachment, i can not display message that email has attachment!
This is my code:
Private Sub LoginButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoginButton.Click
Dim oItem
Dim i As ...
I have a method private static DataTable ParseTable(HtmlNode table) and sometimes this method has no return value then I want to make return value optional, is it possible ?
I have tried with if condition.But there is error.
How can I make return value optional for the method if possible ?
...
I know there is a proposed standard for JSON schema validation, is there an implementation in .Net?
...
I am wondering about the relationship between .NET ClassLoader and Assembly
I use the "!dumpdomain xxxx" command and got the following output:
Domain 1: 00522108
LowFrequencyHeap: 0052212c
HighFrequencyHeap: 00522178
StubHeap: 005221c4
Stage: OPEN
SecurityDescriptor: 00523430
Name: BoxUnbox.exe
**Assembly**: 0056eb88 [C:\Windows\assem...
What does the following function perform?
public static double CleanAngle(double angle) {
while (angle < 0)
angle += 2 * System.Math.PI;
while (angle > 2 * System.Math.PI)
angle -= 2 * System.Math.PI;
return angle;
}
This is how it is used with ATan2. I believe the actually va...
I have texts like this one:
this is a text in [lang lang="en" ]english[/lang] or a text in [lang lang="en" ]spanish[/lang]
I need to substitute them for:
this is a text in <span lang="en">english </span> or a text in <span lang="es">spanish</span>
I need a regular expression, not a simple replace. The languages in the lang tag can ...
I have 1 bit in a byte (always in the lowest order position) that I'd like to invert.
ie given 00000001 I'd like to get 00000000 and with 00000000 I'd like 00000001.
I solved it like this:
bit > 0 ? 0 : 1;
I'm curious to see how else it could be done.
...
I have following object structure, deseralized from XML (WS):
<ns2:Category>
<ns2:CategoryId>800003</ns2:CategoryId>
<ns2:CategoryName>Name1</ns2:CategoryName>
<ns2:Categories>
<ns2:Category>
<ns2:CategoryId>800008</ns2:CategoryId>
<ns2:CategoryName>Name2</ns2:CategoryName>
<ns2:Categories>
<ns2:Categ...
My WPF application works fine on a number of machines, but now I get a report about this error on a user machine:
Description:
Stopped working
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: mysoftware.exe
Problem Signature 02: 1.0.0.1
Problem Signature 03: 4bbcd9d9
Problem Signature 04: ...