Click here to Skip to main content
15,886,864 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Dynamic Item tmpate inside gridview Pin
Arun Jacob16-Sep-09 1:54
Arun Jacob16-Sep-09 1:54 
Questionajax controls not working fine..,when evets not fire for some time..., Pin
Member 387988116-Sep-09 0:52
Member 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
protectorChristian 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
Shalini_U16-Sep-09 3:11 
QuestionDatabinding Pin
Member 448708316-Sep-09 0:23
Member 448708316-Sep-09 0:23 
AnswerRe: Databinding Pin
Christian Graus16-Sep-09 1:35
protectorChristian Graus16-Sep-09 1:35 
AnswerRe: Databinding Pin
Muhammad Mazhar17-Sep-09 9:35
Muhammad Mazhar17-Sep-09 9:35 
QuestionAccess Denied in CreateDirectory with UNC Path Pin
Stephan Pilz15-Sep-09 23:49
Stephan 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
protectorChristian Graus16-Sep-09 1:33 
GeneralRe: Access Denied in CreateDirectory with UNC Path Pin
Stephan Pilz16-Sep-09 2:47
Stephan Pilz16-Sep-09 2:47 
Questionproblem in text box Pin
na3em 200915-Sep-09 23:48
na3em 200915-Sep-09 23:48 
AnswerRe: problem in text box Pin
Christian Graus16-Sep-09 1:32
protectorChristian Graus16-Sep-09 1:32 
Questionproblem due to use of modalpopupExtender Pin
saiftanoli15-Sep-09 22:12
saiftanoli15-Sep-09 22:12 
AnswerRe: problem due to use of modalpopupExtender Pin
Muhammad Mazhar17-Sep-09 9:37
Muhammad Mazhar17-Sep-09 9:37 
QuestionIp Address Pin
Ramkumar_S15-Sep-09 21:29
Ramkumar_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
protectorChristian 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
anushh15-Sep-09 21:18 
AnswerRe: Any possibility to avoid cache in asp.net Pin
Christian Graus15-Sep-09 21:25
protectorChristian Graus15-Sep-09 21:25 
GeneralRe: Any possibility to avoid cache in asp.net Pin
anushh15-Sep-09 21:46
anushh15-Sep-09 21:46 
GeneralRe: Any possibility to avoid cache in asp.net Pin
Christian Graus15-Sep-09 21:50
protectorChristian 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
N 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
anushh15-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.