Questions tagged [.net-security]

Not a stand alone tag. Use with any relevant language, project type and specific security tags. For questions relating to the programming aspects of .NET framework and security. For security questions that are not specific to coding, consider looking at https://security.stackexchange.com/.

Not a stand alone tag. Use with any relevant language, project type and specific security tags. For questions relating to the programming aspects of framework and security. For security questions that are not specific to coding, consider looking at Information Security Stack Exchange.

For more information about see the docs at Security in the .NET Framework

44 questions
1
vote
0 answers

Force HttpClient or WebRequest to use TLS 1.0 for negative test

With the trend to disable TLS 1.0 at server side, I need a negative test in C#. This should be a single test method among many others that will test other features, and we have parallel tests. Therefore, the global setting at ServicePointManager…
fernacolo
  • 5,982
  • 4
  • 35
  • 57
1
vote
1 answer

C# - .NET 4.0 - That Assembly does not allow partially trusted callers

When running from a network share, my application throws the following exception: That assembly does not allow partially trusted callers. My application references two DLL files: BitFactory.Logging.dll FileHelpers.dll I'm not sure which one it is…
Nasir
  • 9,529
  • 7
  • 28
  • 38
1
vote
1 answer

Can I create a bitcoin wallet with SecurityDriven.Net/Inferno library?

I see that SecurityDriven.NET/Inferno is a minimalistic & safe approach to cryptography in .NET, especially compared to BouncyCastle. Does it provide enough algorithms to create a simple bitcoin wallet?
knocte
  • 14,579
  • 6
  • 67
  • 110
1
vote
1 answer

Assembly MOV Instruction

Hi guys im working on a CTF challenge and don't quite understand this asm command: mov %edx,0x20(%esp,%eax,4) Im assuming its: move $edx into (0x20 + $esp + $eax + 4) However when I checked this with gdb it isn't correct. Anyone mind explaining…
Meraj Patel
  • 129
  • 4
1
vote
2 answers

Installing VSTO Outlook addin for All Users to drive other than C: results in Microsoft Office Customization Installer dialog

First let me get this stuff out of the way: This happens with my own addin, as well as another third party VSTO add-in, so I don't think I'm doing anything incorrect .net 4.0. VSTO runtime 10.0.50701 Windows 8. Also tried Windows 7 I am using the…
JohnZaj
  • 2,900
  • 5
  • 33
  • 50
1
vote
1 answer

Extending aspnet_users to add additional field

I have an application that i am building in lightswitch and created the user roles and authentication for them. in my database, i have all aspnet security tables. Now in aspnet_Users where i have all my users and aspnet_memebership with relevant…
Maverick1415
  • 103
  • 1
  • 11
1
vote
2 answers

Programmatically check if user has enough rights for software installation

In my application (it supports only Windows 7 and higher), I want to run a script, which will run some installation program. Before doing it, I need to check if running this script from my app will provide it with enough rights that it could run…
vklu4itesvet
  • 347
  • 1
  • 4
  • 14
1
vote
2 answers

CASPOL, FullTrust and running an ActiveX Control in IE with FullTrust based on URL

I've set up an activex control to run on a webpage. The server is able to serve this webpage to itself, but other machines on the intranet and internet aren't able to access it. The Caspol settings look like this: Code Groups: 1. All code:…
Daniel
  • 10,191
  • 22
  • 79
  • 110
0
votes
1 answer

Getting windows user name without using Windows auth?

Is it possible to get the currently logged in Windows user name in ASP.NET MVC3 without using Windows Auth? I just need the login name, nothing else. I'm building a quick and dirty dashboard app that will be used by my team. Some of the team's…
0
votes
1 answer

Showing images from DB in aspx file issue regarding security

we have link and when some one click on link then a image will be shown. the link is like image.aspx will fetch image from db based on ID. whenever we click on link then a error is showing regarding security at staging server. locally everything…
Thomas
  • 31,089
  • 118
  • 335
  • 589
0
votes
2 answers

Sending