Click here to Skip to main content
15,898,371 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Access is denied. Pin
sashidhar2-Nov-09 19:00
sashidhar2-Nov-09 19:00 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 22:08
I'm a beginner2-Nov-09 22:08 
GeneralRe: Access is denied. Pin
Christian Graus2-Nov-09 19:54
protectorChristian Graus2-Nov-09 19:54 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 22:11
I'm a beginner2-Nov-09 22:11 
AnswerRe: Access is denied. Pin
Raja Soosai2-Nov-09 18:42
Raja Soosai2-Nov-09 18:42 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 18:50
I'm a beginner2-Nov-09 18:50 
GeneralRe: Access is denied. [modified] Pin
sashidhar2-Nov-09 19:01
sashidhar2-Nov-09 19:01 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 22:18
I'm a beginner2-Nov-09 22:18 
The code for this problem is here:

I have an ASP.NET and this is the code in default.aspx:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
<asp:FileUpload ID="FileUpload1" runat="server" />
    <asp:Button ID="Button6" runat="server" onclick="Button6_Click" Text="Button" />
    <br />
    <br />
    </form>
</body>
</html>


And here is the code into default.aspx.cs
protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button6_Click(object sender, EventArgs e)
    {
        FileUpload1.SaveAs("D:\\a.txt");
    }


After compiling the project, I published it as following:
clicked right mouse on it and selected "Publish Website". Then I copy published files to a folder example (a subfolder of C:\Inetpub\wwwroot). Finally, I ran IE and fill in the address: http://localhost/example/default.aspx, clicked button_6, and got the error.

I installed IIS on my local computer with version v5.1

Thanks,
GeneralRe: Access is denied. Pin
sashidhar2-Nov-09 22:26
sashidhar2-Nov-09 22:26 
GeneralRe: Access is denied. Pin
Christian Graus2-Nov-09 19:28
protectorChristian Graus2-Nov-09 19:28 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 22:19
I'm a beginner2-Nov-09 22:19 
GeneralRe: Access is denied. Pin
sashidhar2-Nov-09 19:02
sashidhar2-Nov-09 19:02 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 22:21
I'm a beginner2-Nov-09 22:21 
GeneralRe: Access is denied. Pin
Christian Graus2-Nov-09 22:36
protectorChristian Graus2-Nov-09 22:36 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 22:56
I'm a beginner2-Nov-09 22:56 
GeneralRe: Access is denied. Pin
sashidhar2-Nov-09 23:08
sashidhar2-Nov-09 23:08 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 23:15
I'm a beginner2-Nov-09 23:15 
GeneralRe: Access is denied. Pin
sashidhar2-Nov-09 23:18
sashidhar2-Nov-09 23:18 
GeneralRe: Access is denied. [modified] Pin
I'm a beginner2-Nov-09 23:33
I'm a beginner2-Nov-09 23:33 
GeneralRe: Access is denied. Pin
sashidhar2-Nov-09 23:43
sashidhar2-Nov-09 23:43 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 23:50
I'm a beginner2-Nov-09 23:50 
GeneralRe: Access is denied. Pin
sashidhar2-Nov-09 23:59
sashidhar2-Nov-09 23:59 
GeneralRe: Access is denied. Pin
I'm a beginner3-Nov-09 0:22
I'm a beginner3-Nov-09 0:22 
GeneralRe: Access is denied. Pin
sashidhar3-Nov-09 0:45
sashidhar3-Nov-09 0:45 
Questionuser session management issue Pin
Amit Agarrwal2-Nov-09 17:35
Amit Agarrwal2-Nov-09 17:35 

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.