Access Denied for mp3 files

H

haiwen

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
http://server/safety/audio/1.mp3

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
 
D

David Coe

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)
 
F

Felix Wu [MSFT]

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)
http://msdn.microsoft.com/msdnmag/issues/01/11/security/default.aspx

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
http://support.microsoft.com/?id=306158

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?= <[email protected]>
Subject: Access Denied for mp3 files
Date: Wed, 4 Feb 2004 14:51:08 -0800
Lines: 19
Message-ID: <[email protected]>
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
http://server/safety/audio/1.mp3

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
 
H

haiwen

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
 
F

Felix Wu [MSFT]

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?= <[email protected]>
References: <[email protected]>
Subject: fix it, thanks again.
Date: Fri, 6 Feb 2004 09:21:09 -0800
Lines: 8
Message-ID: <[email protected]>
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top