Ask a Question related to ASP.NET Security, Design and Development.
-
haiwen #1
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
-
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... -
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... -
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... -
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... -
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... -
David Coe #2
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
-
Felix Wu [MSFT] #3
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.
--------------------microsoft.public.dotnet.framework.aspnet.security: 8536>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.gblI have an asp.net application which dynamically display some audio.>NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Hello, everyone:
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
-
haiwen #4
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
-
Felix Wu [MSFT] #5
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.
--------------------<0wnnwh46DHA.2424@cpmsftngxa07.phx.gbl>>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>microsoft.public.dotnet.framework.aspnet.security: 8574>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.gblI change the window media player setting of the computer and no problem>NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Hello, everyone.
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



Reply With Quote

