Solved

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

Posted on 2011-09-27
3
220 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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