.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

CreateProcess Security Problems???

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :WPF

Hi everyone,

I wrote application in C# and that application depend on some action create new process using CreateProcess method. This method is working under XP but my client asked me to upgrade it for win7 and the problem is that UAC is blocking CreateProcess method, 'cause I'm creating new process that writes to disk so UAC is blocking it. I was reading MSDN and tried to find solution but security is very complex and I don't what I'm missing. This is my code:




public byte revision;                                      

public byte size;

public short control;

public IntPtr owner;

View Complete Post

More Related Resource Links

Problems with security trimmed BDC model

I've been trying to implement .NET assembly connector with security trimmer in SharePoint 2010. So far I've managed
to create a single wsp-package that implements a crawlable content source and ISecurityTrimmer2.CheckAccess-method
that gets called when objects from this external content source are being shown in search results (implemented as described
in http://msdn.microsoft.com/en-us/library/ee819923.aspx). Now I'm however facing a problem that the items in documentCrawlUrls
given in IList<String>-parameter of ISecurityTrimmer2.CheckAccess aren't of the same type as the identifiers passed e.g.
to ReadItem-method of the BDC model. Instead, they are something like the following:

when the identifier given to ReadItem is e.g. something like:

So the question is, how can I convert the identifier given to CheckAccess into the same format that is used in the BDC model?

Problems adding AD Security Group to SP Group using PowerShell


I am trying to create a powershell script that will enumerate SharePoint 2010 permissions and groups from a .csv file. The script needs to

1) Create the SharePoint groups
2) Add an owner
3) Add an active directory doman security group
4) Add a permission level to the SharePoint group.

However, I can't seem to add active directory groups to the SharePoint groups even though the groups exist in SharePoint, as they have been imported through the UPS synch.  This is the code I have been using:

param (


    [string] $createspgroups = "SPGroupssh.csv"



$web = Get-SPWeb http://myserver


ipcsv $createspgroups | foreach {

$owner = $web.AllUsers[$_.Owner];

$adgroupname = $web.AllUsers[$_.ADGroupName]; 

$GroupName =$_.GroupName; 

$web.SiteGroups.Add($GroupName,$owner, $adgroupname, $GroupName) 

$memberGrp = $web.SiteGroups[$GroupName] 

$web.AssociatedMemberGroup = $memberGrp 


$memberAssignment = New-Object Microsoft.SharePoint.SPRoleAssignment($memberGrp)   



Latest .NET 4 security update causes problems for ClientAuthenticationServices


Patch KB2416472 causes Membership.ValidateUser within Client Authentication Services to fail while decrypting the Forms Authentication token.  The Encrypted ticket is 272 bytes long and the Maximum allowed length is 256 bytes.

If you uninstall the patch, the problem is resolved. 


Problems on WF4 Services, Security and Large Objects



I have a big problem on using WF4 service. There are several questions I cannot find the answer yet.
Hope that anyone can share their experience to me on solving the following problems.

1. How to change the configuration for each WF4 services ?
    I have created several workflow services and once they build, I can find the service by adding a service reference on the client side.
    However, I need to pass a large object such as image or movie like >20MB file to the WF4 service.
    But I cannot find any configuration on the web.config file on the server side that allow me to change the settings like maxArrayLength,
    maxBufferPoolSize ... 

    For these large objects, is that using streaming mode is the best practice? 
    Actually, where can I find those configuration settings for a xamlx file ?
    And, how can I configure the WF4 service to use Streaming transfer mode on server side?
    In addition, I need to verify the user's identification inside the workflow rather than let them pass in a username and password
    for security reasons. If I need to do so, I might need to

SharePoint Tutorial - Security

Security in SharePoint is comprised of users, groups and roles.

Users, Groups and Roles

A user account comes from the authentication system. For example, if Active Directory is used to authenticate then the user accounts will come from it.

There are two types of groups SharePoint uses: domain groups and SharePoint groups.

Top .NET Performance Problems and how to avoid them

Every time I work with one of our .NET customers to help them with managing their application performance I come across the same problems as seen with other clients before: lots of ADO.NET queries, many hidden exceptions in core or 3rd party .NET libraries, slow 3rd party components, inefficient custom code

Asp.net web site security database


Hello all, I'm new to asp.net and I'm currently practising some few stuffs. I'm creating a hotel reservation system using ASP.net Web site in visual studio 2008 and I currently don't have an App_Data in my solution explorer unlike visual web developer.

1. I have planned to make users of the website login before making their reservations.

2. I have also planned to develop the website such that I will be able to know all reservations made by each user.

First and formost, I will like to know how I can access/View the security database?

Secondly, how do I link my custom made reservation database and the security database in order to achieve my second plan above.?

Someone help me.

Thank you.



hello i have the following problem

i have upload my content to hosting server but i get the following error

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of typ

Visual Studio 2008 Memory problems


My memory in task manager reaches about 900,000K  and I don't know why it does this. Definately slows everything down, especially when I rebuild my tableAdapters, takes about 30 seconds sometimes to rebuild the project.

Problems with Forms Authentication in DD 4 site


Hello,  I am seeing a strange problem with Forms Authentication in my DD site.   A user logs into and can view/edit/delete data all day, but when they execute a Custom Filter against data (for example , a control DynamicData/Filters/CustomerLastNameSearch.ascx ) then the site auth fails, and redirects to the log in screen.

in web.config I have

     <authentication mode="Forms">
            <forms name=".Star" loginUrl="~/Login.aspx" protection="All" defaultUrl="~/Default.aspx" path="/" timeout="43200" cookieless="UseCookies" />     

Offhand, I am thinking two things : that DynamicData/Filters path requires some special handling for some reason, or the control extension ascx is causing auth to get confused.   Has anyone else experienced this or have any suggestions?  Thanks!

System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPerm


Good Day all,

Having an issue with an outside user accessing my IIS7 box. I do not have this problem when running the website from my host machine. I found this post: Http://forums.asp.net/t/1371394.aspx. I assure you that this is not a solution because I am not storing any of my files on a network share. 

What do you think my approach should be. 

I already have read rights to IIS user to my BIN folder. 

Thanks for the help. 

XBAP Security


We have a small XBAP file upload app that we are having trouble deploying. We were getting security errors when we were pushing this application that we don't get when running in our development environments on our machines. We gave the XBAP app full permissions and still got errors. Then we created a personal certificate and were able to get this to work. But that means we have to load a client side certificate for each and every machine that wants to run this which is ridiculous. Does anyone have a solution for this?

Intranet Users Challenged When Using Windows Integrated Security


We've setup an intranet site using Windows Integrated Security. Its up and running and users can access it. However, they are being challenged with a login dialog for the server when they initially access the site.

Isn't is possible to configure the server so that the users aren't challenged AND are recognized as being already authenticated by Windows? We're trying to go with a seamless experience, whereby all they have to do is login to their machine like normal and then go from there.

Security Question Answer Retrieval


I know there is a method built in for retrieving the encrypted password, but how do I retrieve the encrypted security answer?

What I want to do is have a member profile update screen that the end user can update their password and security question and answer. However, when they get to this page, I want to already be showing the security question (the easy part) and its answer (the not so easy part).

I have updated web.config with passwordFormat=Encrypted and have added a machineKey with the generator (forgot the link, but located on eggheadcafe somewhere).

I haven't done ANYTHING yet, since I already have a user store with hashed information. I wanted to get some functionality done before publishing, wiping the store and recreating users (only a couple developers).


Problems posting to a package


Hey Y'all

I'm currently creating a program that accesses a mysql package to add data to a few tables.  I'm currently getting an error that says  "

ORA-01403: no data found
ORA-06512: at "JESSE.PKG_WORKPLAN", line 42
ORA-06512: at "JESSE.PKG_WORKPLAN", line 177
ORA-06512: at line 1


These lines are


and 177:add_team_members(V_PROJECT_ID, V_START_DATE, v_FISC_YEAR, V_MEMBERS ,V_NUM_MEMBERS,'add');

Checking these variables in my asp.net page they are all receiving parameters.

Is there a  way to see what the database is actually receiving from the asp.net page?

Or is there another thing to be looking at?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend