Solved

Copy a document to stand alone web server with a username and password

Posted on 2011-09-27
3
219 Views
Last Modified: 2012-06-27
My application needs to copy a .pdf doc to our web server.  It works fine when done from my pc because I am also the webmaster and so have permissions on this server not part of our network.  However, I am creating a VB.NET windows application  that requires the users to be able to upload or delete a .pdf documents in a folder on the web server.  We can give them each their own permissions to that folder but my network administator would prefer one special username and password be used instead.  We have created the special username and pw but I do not know how to code my app to use the special username and pw instead of the users windows username and pw.  Can someone help with this?  I have been searching the net but so far cannot find anything that helps.  Maybe my search is not stating it right, whatever the reason I have not been able to find what I need.  I sure could use some help.  Thanks in advance.
0
Comment
Question by:McGurk1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 500 total points
ID: 36716508
This is generally done using impersonation:
http://msdn.microsoft.com/en-us/library/w070t6ka.aspx
0
 

Author Comment

by:McGurk1
ID: 36720546
Thanks Shaun you sent me in the right direction.  For anyone who needs a simpler code, go to this site:  http://markkremers.blogspot.com/2010/07/impersonation-in-vbnet.html

One thing this site does not give you is this class needs to be imported:
                Imports System.Security.Principal

0
 

Author Closing Comment

by:McGurk1
ID: 36720563
This gave me a start for my search.  The code I used I found at a different site.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question