Click here to Skip to main content
15,887,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Display Pdf along with Html Controls in MVC Application Pin
Richard Deeming26-Jun-15 7:24
mveRichard Deeming26-Jun-15 7:24 
QuestionIpad prints white page as pdf content from wireless printer Pin
Member 1179252426-Jun-15 3:10
Member 1179252426-Jun-15 3:10 
AnswerRe: Ipad prints white page as pdf content from wireless printer Pin
ZurdoDev26-Jun-15 3:49
professionalZurdoDev26-Jun-15 3:49 
Questionhow i can make multiple admin same admin panel? Pin
Member 1179354525-Jun-15 18:48
Member 1179354525-Jun-15 18:48 
QuestionRe: how i can make multiple admin same admin panel? Pin
ZurdoDev26-Jun-15 3:49
professionalZurdoDev26-Jun-15 3:49 
QuestionHow to display image from access database in crystal report? Pin
Member 887182124-Jun-15 0:15
Member 887182124-Jun-15 0:15 
SuggestionRe: How to display image from access database in crystal report? Pin
ZurdoDev26-Jun-15 3:50
professionalZurdoDev26-Jun-15 3:50 
QuestionFile deletion issue in a VB.NET project Pin
Mustanggx22-Jun-15 6:08
Mustanggx22-Jun-15 6:08 
Hi,

I do have a website that is acting like a FTP site for uploads and downloads.

The workflow is:
- A user account is created
- A folder is created (kind of a home directory)
- A user logs in
- Uploads a file
- An agent logs in
- Download the file

When ever an agent logs in, there is a check for user accounts with no activity for 90+ days.

If found, the user account is deleted and the associated folder too.

THAT's where I have my problem.

1) The user is removed from the role (all good)
2) The user account is deleted (all good)
3) The files and the folder are deleted (issue: permission denied)

Looking at the file permissions in the Windows Explorer, none of the accounts listed does, indeed, have permission to delete the files.
The files to be deleted are ALL created one way or another via the website (either by upload of code behind file creation)

I Googled around and it looks like the Impersonation is the way to go for the deletion.

Now, I found this tutorial on this website but it's all in C# and my page is in VB.NET:
A complete Impersonation Demo in C#.NET[^]

I did find a VB version of the impersonation (lost the link) and when it ran, it crashed the website completely.

I now found this one:
https://code.msdn.microsoft.com/windowsapps/VBImpersonateUser-d8467be8[^]

Before I start to use this (since it's a production website), can anyone tell me if it's any good?

Or...maybe has a better idea on how to delete files created by the website that cannot be deleted by that same website.

Thanks.
AnswerRe: File deletion issue in a VB.NET project Pin
jkirkerx23-Jun-15 10:42
professionaljkirkerx23-Jun-15 10:42 
GeneralRe: File deletion issue in a VB.NET project Pin
Mustanggx25-Jun-15 3:59
Mustanggx25-Jun-15 3:59 
QuestionHow to send an URL as hyperlink using System.Web.Mail Pin
Mallika Karuppiah21-Jun-15 4:20
Mallika Karuppiah21-Jun-15 4:20 
AnswerRe: How to send an URL as hyperlink using System.Web.Mail Pin
Sascha Lefèvre21-Jun-15 4:28
professionalSascha Lefèvre21-Jun-15 4:28 
GeneralRe: How to send an URL as hyperlink using System.Web.Mail Pin
Mallika Karuppiah21-Jun-15 4:31
Mallika Karuppiah21-Jun-15 4:31 
GeneralRe: How to send an URL as hyperlink using System.Web.Mail Pin
Sascha Lefèvre21-Jun-15 5:30
professionalSascha Lefèvre21-Jun-15 5:30 
AnswerRe: How to send an URL as hyperlink using System.Web.Mail Pin
jkirkerx21-Jun-15 11:41
professionaljkirkerx21-Jun-15 11:41 
SuggestionRe: How to send an URL as hyperlink using System.Web.Mail Pin
Richard Deeming22-Jun-15 1:36
mveRichard Deeming22-Jun-15 1:36 
AnswerRe: How to send an URL as hyperlink using System.Web.Mail Pin
ZurdoDev26-Jun-15 3:52
professionalZurdoDev26-Jun-15 3:52 
QuestionWhy Buttons in update panel are not able to update page ,how to do so? Pin
Rjohri20-Jun-15 20:28
Rjohri20-Jun-15 20:28 
AnswerRe: Why Buttons in update panel are not able to update page ,how to do so? Pin
Herman<T>.Instance13-Jul-15 0:25
Herman<T>.Instance13-Jul-15 0:25 
QuestionHow to restrict saving a website Offline ? Pin
Abhishek65519-Jun-15 2:22
Abhishek65519-Jun-15 2:22 
AnswerRe: How to restrict saving a website Offline ? Pin
F-ES Sitecore19-Jun-15 3:42
professionalF-ES Sitecore19-Jun-15 3:42 
GeneralRe: How to restrict saving a website Offline ? Pin
PIEBALDconsult19-Jun-15 5:41
mvePIEBALDconsult19-Jun-15 5:41 
SuggestionRe: How to restrict saving a website Offline ? Pin
Richard Deeming19-Jun-15 6:26
mveRichard Deeming19-Jun-15 6:26 
GeneralRe: How to restrict saving a website Offline ? Pin
PIEBALDconsult19-Jun-15 6:36
mvePIEBALDconsult19-Jun-15 6:36 
JokeRe: How to restrict saving a website Offline ? Pin
Richard Deeming22-Jun-15 2:58
mveRichard Deeming22-Jun-15 2:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.