Access Denied for mp3 files

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Access Denied for mp3 files

    Hello, everyone:

    I have an asp.net application which dynamically display some audio.
    My way is:
    litAudio.Text=@"<embed src='"+contentPath+"\\"+Session["lessonFolderName"]+"\\audio\\"+p1.audio.ToString().Trim()+@"' id='wavTest' hidden='true' height='20' width='80' autostart='true' type='audio/wav' loop='false'></embed>";

    When I run my application in our intranet, most of computers work well except one computer always has a pop up window show up to require input the User Name and Password. If I click cancel, it will show up :

    Access Denied
    [url]http://server/safety/audio/1.mp3[/url]

    But for other .avi or .swf files, it work well though I use the same way:

    litAni.Text=@"<embed src='"+contentPath+"\\"+Session["lessonFolderName"]+"\\image\\"+p1.image.ToString().Trim()+@"' id='wavTest' hidden='false' height='611' width='611' autostart='true' type='video/x-shockwave-flash/avi' loop='true'></embed>";


    Could any one help? I do appreciate your help.

    Haiwen
    haiwen Guest

  2. Similar Questions and Discussions

    1. Access Denied for Put Files
      I've been working on a site, editing pages and putting them to the Development server on our company network. No problems for weeks. Suddenly...
    2. Access denied on 'c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\2135a508\8d69a834\hkytxhe8.dl
      All of a sudden my web started to retirn this in IE 6---> First a bit earlier I had access problems with IIS wanting to access c:\winnt\temp - I...
    3. Deleting unwanted files - Access Denied Message
      Hi, I'm new to using a PC and need a bit of help, please. I'm trying to deleted some unwanted files and I'm getting the following message "Cannot...
    4. Access Denied Temporary ASP.NET files
      Windows Server 2003...have you modified the default security of ASP.NET anyway? In Win2k3 the default account ASP.NET runs under is the process...
    5. ACCESS DENIED TO FILES WHEN INSTALLING EVEN WHEN ADMINISTRATOR
      WE HAVE RECENTLY UP TO A PROBLEM WITH XP PRO THAT IS TELLING US ACCESS IS DENIED TO A NUMBER OF FILES THAT NEED TO BE ACCESSED BEFORE BEING ABLE TO...
  3. #2

    Default RE: Access Denied for mp3 files

    Are you using Windows Authentication for this site? If so, make sure whichever user is having the problem that they have writes to the particular directory (or file, based on how strict your permissions are set up)
    David Coe Guest

  4. #3

    Default RE: Access Denied for mp3 files

    Hi, Haiwen

    It seems that you are using Windows Authentication mode for the virtual
    directory. Check the folder "audio/" as dhc0e suggested, does the user who
    has the access problem is granted access permission to it?

    If you want more detailed information about how ASP.NET security model
    works, the following Token Dump component would be of great help:

    ASP .NET Security Issues (by Keith Brown)
    [url]http://msdn.microsoft.com/msdnmag/issues/01/11/security/default.aspx[/url]

    This article can give you more information on how to use impersonation in
    an ASP.NET application:

    306158 INFO: Implementing Impersonation in an ASP.NET Application
    [url]http://support.microsoft.com/?id=306158[/url]

    Regards,

    Felix Wu
    =============
    This posting is provided "AS IS" with no warranties, and confers no rights.


    --------------------
    >Thread-Topic: Access Denied for mp3 files
    >thread-index: AcPrcWDuFyb4NAOfSoWhz3splv/ACA==
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    >From: =?Utf-8?B?aGFpd2Vu?= <haiwen@itctrng.com>
    >Subject: Access Denied for mp3 files
    >Date: Wed, 4 Feb 2004 14:51:08 -0800
    >Lines: 19
    >Message-ID: <67E933FE-F2B7-4462-8394-78AFEC8E64C9@microsoft.com>
    >MIME-Version: 1.0
    >Content-Type: text/plain;
    > charset="Utf-8"
    >Content-Transfer-Encoding: 7bit
    >X-Newsreader: Microsoft CDO for Windows 2000
    >Content-Class: urn:content-classes:message
    >Importance: normal
    >Priority: normal
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    >Path: cpmsftngxa07.phx.gbl
    >Xref: cpmsftngxa07.phx.gbl
    microsoft.public.dotnet.framework.aspnet.security: 8536
    >NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    >
    >Hello, everyone:
    I have an asp.net application which dynamically display some audio.
    My way is:
    litAudio.Text=@"<embed
    src='"+contentPath+"\\"+Session["lessonFolderName"]+"\\audio\\"+p1.audio.ToS
    tring().Trim()+@"' id='wavTest' hidden='true' height='20' width='80'
    autostart='true' type='audio/wav' loop='false'></embed>";

    When I run my application in our intranet, most of computers work well
    except one computer always has a pop up window show up to require input the
    User Name and Password. If I click cancel, it will show up :

    Access Denied
    [url]http://server/safety/audio/1.mp3[/url]

    But for other .avi or .swf files, it work well though I use the same way:

    litAni.Text=@"<embed
    src='"+contentPath+"\\"+Session["lessonFolderName"]+"\\image\\"+p1.image.ToS
    tring().Trim()+@"' id='wavTest' hidden='false' height='611' width='611'
    autostart='true' type='video/x-shockwave-flash/avi' loop='true'></embed>";


    Could any one help? I do appreciate your help.

    Haiwen
    >
    Felix Wu [MSFT] Guest

  5. #4

    Default RE: Access Denied for mp3 files

    Hello, everyone

    Thanks so much for your reply. Acturely I choose "authentication mode=none" in the Web.config file since my application is a full screen application

    After I change the default player for mp3 as Window media player. the users pop up window disappear but still no audio play automatically.

    Sincerely

    Haiwen
    haiwen Guest

  6. #5

    Default RE: fix it, thanks again.

    Hi Haiwen,

    Yep, it sounds a little bit weird. Take a look at the IIS log files, it may
    give you some clues to this problem.To do so:

    1. Open IIS mangement console
    2. Right click on "Default Web Sites"
    3. Check "Enale Logging" option. Use "W3C Extended Log File Format". Change
    the path to log files if needed.
    4. Access the page, click Cancel if the authenticatin window pops up
    5. Check the log file exyymmdd.log. It is in
    C:\WINDOWS\system32\Logfiles\W3SVC1 folder by default.

    Read the logs at the bottom of the file, is there any 401 errors?

    Note: The log date and time are always in GMT.

    BTW: Can get RealOne work if you input the correct Admin username and
    password?

    Thanks,

    Felix Wu
    =============
    This posting is provided "AS IS" with no warranties, and confers no rights.


    --------------------
    >Thread-Topic: fix it, thanks again.
    >thread-index: AcPs1ZyqGQ2xSqgFQ6mGye9uqRP2dg==
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    >From: =?Utf-8?B?aGFpd2Vu?= <anonymous@discussions.microsoft.com>
    >References: <67E933FE-F2B7-4462-8394-78AFEC8E64C9@microsoft.com>
    <0wnnwh46DHA.2424@cpmsftngxa07.phx.gbl>
    >Subject: fix it, thanks again.
    >Date: Fri, 6 Feb 2004 09:21:09 -0800
    >Lines: 8
    >Message-ID: <5765A13B-EF88-436E-860F-FBE225DDC6F5@microsoft.com>
    >MIME-Version: 1.0
    >Content-Type: text/plain;
    > charset="Utf-8"
    >Content-Transfer-Encoding: 7bit
    >X-Newsreader: Microsoft CDO for Windows 2000
    >Content-Class: urn:content-classes:message
    >Importance: normal
    >Priority: normal
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    >Path: cpmsftngxa07.phx.gbl
    >Xref: cpmsftngxa07.phx.gbl
    microsoft.public.dotnet.framework.aspnet.security: 8574
    >NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    >
    >Hello, everyone.
    I change the window media player setting of the computer and no problem
    now.
    I just wonder why it used to pop up a user confirm window and said access
    denied before though the default palyer is Realone player.

    Sincerely,

    haiwen
    >
    Felix Wu [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139