Click here to Skip to main content
14,661,871 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: Dynamic Item tmpate inside gridview Pin
Arun Jacob16-Sep-09 1:54
MemberArun Jacob16-Sep-09 1:54 
Questionajax controls not working fine..,when evets not fire for some time..., Pin
Member 387988116-Sep-09 0:52
MemberMember 387988116-Sep-09 0:52 
AnswerRe: ajax controls not working fine..,when evets not fire for some time..., Pin
Christian Graus16-Sep-09 1:36
mveChristian Graus16-Sep-09 1:36 
AnswerRe: ajax controls not working fine..,when evets not fire for some time..., Pin
Shalini_U16-Sep-09 3:11
MemberShalini_U16-Sep-09 3:11 
QuestionDatabinding Pin
Member 448708316-Sep-09 0:23
MemberMember 448708316-Sep-09 0:23 
AnswerRe: Databinding Pin
Christian Graus16-Sep-09 1:35
mveChristian Graus16-Sep-09 1:35 
AnswerRe: Databinding Pin
Muhammad Mazhar17-Sep-09 9:35
MemberMuhammad Mazhar17-Sep-09 9:35 
QuestionAccess Denied in CreateDirectory with UNC Path Pin
Stephan Pilz15-Sep-09 23:49
MemberStephan Pilz15-Sep-09 23:49 
Hello together,

I have a part in my web project for managing documents. If I upload a file and create the directory for store in with:

System.IO.Directory.CreateDirectory(strPathName)

it works fine with normal local path like "C:\temp\document".

But if the path is a UNC-Path, I get an access denied exception. It does not matter that the UNC-Path is a local path like "\\localhost\Share" or to another computer.

I try to use the impersonate feature in web.config:
<identity impersonate="true" />
In this case normally ASPNET user is used by IIS and I have set full control access rights for this user to C:\temp directory and all sub dirs. Result: Get access denied exception

Than I set user and pass:
<identity impersonate="true" userName="domain/user" password="xyz" />
I get access denied too.

Last chance was an idea from a guy found in a blog:
http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx
The function runs without an error, but it solves not my problem. I get access denied too.

What can I do?

                   \\\|///
                 \\  - -  //
                  (  @ @  )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz   stephan.pilz@stephan-pilz.de |
|                <a href="http://www.stephan-pilz.de">www.stephan-pilz.de</a>          |
|                ICQ#: 127823481              |
+-----------------------Oooo------------------+
                 oooO   (   )
                (   )    ) /
                 \ (    (_/
                  \_)

AnswerRe: Access Denied in CreateDirectory with UNC Path Pin
Christian Graus16-Sep-09 1:33
mveChristian Graus16-Sep-09 1:33 
GeneralRe: Access Denied in CreateDirectory with UNC Path Pin
Stephan Pilz16-Sep-09 2:47
MemberStephan Pilz16-Sep-09 2:47 
Questionproblem in text box Pin
na3em 200915-Sep-09 23:48
Memberna3em 200915-Sep-09 23:48 
AnswerRe: problem in text box Pin
Christian Graus16-Sep-09 1:32
mveChristian Graus16-Sep-09 1:32 
Questionproblem due to use of modalpopupExtender Pin
saiftanoli15-Sep-09 22:12
Membersaiftanoli15-Sep-09 22:12 
AnswerRe: problem due to use of modalpopupExtender Pin
Muhammad Mazhar17-Sep-09 9:37
MemberMuhammad Mazhar17-Sep-09 9:37 
QuestionIp Address Pin
Ramkumar_S15-Sep-09 21:29
MemberRamkumar_S15-Sep-09 21:29 
AnswerRe: Ip Address Pin
Abhishek Sur15-Sep-09 21:43
professionalAbhishek Sur15-Sep-09 21:43 
AnswerRe: Ip Address Pin
Christian Graus15-Sep-09 21:49
mveChristian Graus15-Sep-09 21:49 
AnswerRe: Ip Address Pin
Manas Bhardwaj15-Sep-09 21:52
professionalManas Bhardwaj15-Sep-09 21:52 
QuestionAny possibility to avoid cache in asp.net Pin
anushh15-Sep-09 21:18
Memberanushh15-Sep-09 21:18 
AnswerRe: Any possibility to avoid cache in asp.net Pin
Christian Graus15-Sep-09 21:25
mveChristian Graus15-Sep-09 21:25 
GeneralRe: Any possibility to avoid cache in asp.net Pin
anushh15-Sep-09 21:46
Memberanushh15-Sep-09 21:46 
GeneralRe: Any possibility to avoid cache in asp.net Pin
Christian Graus15-Sep-09 21:50
mveChristian Graus15-Sep-09 21:50 
GeneralRe: Any possibility to avoid cache in asp.net Pin
N a v a n e e t h15-Sep-09 22:13
MemberN a v a n e e t h15-Sep-09 22:13 
AnswerRe: Any possibility to avoid cache in asp.net Pin
Abhishek Sur15-Sep-09 21:45
professionalAbhishek Sur15-Sep-09 21:45 
GeneralRe: Any possibility to avoid cache in asp.net Pin
anushh15-Sep-09 21:48
Memberanushh15-Sep-09 21:48 

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.