Print Page | Close Window

Aspx permission checker

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7330
Printed Date: 29 March 2026 at 12:00pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Aspx permission checker
Posted By: pnp!
Subject: Aspx permission checker
Date Posted: 17 November 2003 at 10:10am

I want to see whether a windows NT user has permission to acces to a file (in a ntfs filesystem)
Can you help me with this? (I can't figure out how to do it)...

I use (in the web.config), impersonate=true, and ntlm securyty in iis. But I don't know how to check it.

I want to use the same as the 'asp's' PERMISSION CHECKER, it worked in this way
Set pmck = Server.CreateObject("MSWC.PermissionChecker")
boolean_Userhasacces= pmck.HasAccess("d:\inetpub\comoajtc\default.asp")
[maybe it can help you]

Thanks!!...

 




Replies:
Posted By: Mart
Date Posted: 17 November 2003 at 10:14am
Have a poke around the System.IO namespace, its bound to be in there


Posted By: pnp!
Date Posted: 17 November 2003 at 11:13am

Originally posted by Mart Mart wrote:

Have a poke around the System.IO namespace, its bound to be in there

Yes!... that's what I did!.. but I didn't find anything.. that's why I'm asking it here!

 

Thanks anyway!!



Posted By: Mart
Date Posted: 18 November 2003 at 1:25pm

I havent ever used this and im not sure if it can convert something like that but try using ASP to ASP.NET Migration assistant

http://www.asp.net/migrationassistants/asp2aspnet.aspx?tabindex=0&tabid=1 - http://www.asp.net/migrationassistants/asp2aspnet.aspx?tabin dex=0&tabid=1




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net