Saturday, March 31, 2012
strange authentication dialog
I'm developing a website and deployed on webserver, it always
display an authentication dialog that user must login with valid
Windows user. Would anyone helps to instruct how to prohibit this
dialog?
Some information provides for you:
1) Dev softs:
- VS 2005, ASP.NET 2.0, SQL Server 2005 Enterprise edition
2) Server:
a) Website Directory security:
- Allow anonymous access (IUSR_Server)
- Integrated Windows authentication.
b) OS: Windows 2003 Server.
The particular note is when deplying other Windows 2003 Server PC, it
works fine without any authentication dialog although the configuration
is exactly the same.
Some no - effective solutions:
- Remove "Integrated Windows authentication": result of "you are
unauthorized to ..."
- Add permission for user Evryone, Anonymous Logon, Network Service.
Very appreciated for any hint.
KNCKNC,
You should anyway remove the "Integrated WIndows Authentication"
setting from IIS. Having done that, you should make sure that the
physical directory that you have your website in has permissions for
the Network Service. Thirdly, what kind of authentication have you
specified for your web site (typically a setting in your web.config
file). Try checking that.
- Vaibhav
On Nov 2, 1:25 pm, "KNC" <k...@.glassegg.com> wrote:
> Hi all,
> I'm developing a website and deployed on webserver, it always
> display an authentication dialog that user must login with valid
> Windows user. Would anyone helps to instruct how to prohibit this
> dialog?
> Some information provides for you:
> 1) Dev softs:
> - VS 2005, ASP.NET 2.0, SQL Server 2005 Enterprise edition
> 2) Server:
> a) Website Directory security:
> - Allow anonymous access (IUSR_Server)
> - Integrated Windows authentication.
> b) OS: Windows 2003 Server.
> The particular note is when deplying other Windows 2003 Server PC, it
> works fine without any authentication dialog although the configuration
> is exactly the same.
> Some no - effective solutions:
> - Remove "Integrated Windows authentication": result of "you are
> unauthorized to ..."
> - Add permission for user Evryone, Anonymous Logon, Network Service.
> Very appreciated for any hint.
> KNC
Hi V,
Thanks for your help. But as my message, I already tried to remove
"Integrated Windows authentication" and add user "NETWORK SERVICE" into
user list of my folder of website (under wwwroot) but no effect.
I've just re-tried as your instruction but it is still the same
phenomenon.
FYI, the authentication type of web.config is <authentication
mode="Forms">
Moreover, if I setting the Anonymous user account is a power user
(such as Administrator), it works fine, no authentication dialog at
all.
Would you guys pls give the root cause of this problem?
Thanks in advance,
KNC
V wrote:
> KNC,
> You should anyway remove the "Integrated WIndows Authentication"
> setting from IIS. Having done that, you should make sure that the
> physical directory that you have your website in has permissions for
> the Network Service. Thirdly, what kind of authentication have you
> specified for your web site (typically a setting in your web.config
> file). Try checking that.
> - Vaibhav
> On Nov 2, 1:25 pm, "KNC" <k...@.glassegg.com> wrote:
KNC,
if you have configured Forms authentication in your application, have
you implemented it in your pages? To be honest, I am not entirely sure
why your application is behaving this way (need one those experts to
answer on your thread :) ). However, i am trying to think of all the
things that I do when i setup Forms Authentication based web-app as I
have NEVER faced this problem.
Cheers,
- V
KNC wrote:
> Hi V,
> Thanks for your help. But as my message, I already tried to remove
> "Integrated Windows authentication" and add user "NETWORK SERVICE" into
> user list of my folder of website (under wwwroot) but no effect.
> I've just re-tried as your instruction but it is still the same
> phenomenon.
> FYI, the authentication type of web.config is <authentication
> mode="Forms">
> Moreover, if I setting the Anonymous user account is a power user
> (such as Administrator), it works fine, no authentication dialog at
> all.
> Would you guys pls give the root cause of this problem?
> Thanks in advance,
> KNC
> V wrote:
strange authentication dialog
I'm developing a website and deployed on webserver, it always
display an authentication dialog that user must login with valid
Windows user. Would anyone helps to instruct how to prohibit this
dialog?
Some information provides for you:
1) Dev softs:
- VS 2005, ASP.NET 2.0, SQL Server 2005 Enterprise edition
2) Server:
a) Website Directory security:
- Allow anonymous access (IUSR_Server)
- Integrated Windows authentication.
b) OS: Windows 2003 Server.
The particular note is when deplying other Windows 2003 Server PC, it
works fine without any authentication dialog although the configuration
is exactly the same.
Some no - effective solutions:
- Remove "Integrated Windows authentication": result of "you are
unauthorized to ..."
- Add permission for user Evryone, Anonymous Logon, Network Service.
Very appreciated for any hint.
KNCKNC,
You should anyway remove the "Integrated WIndows Authentication"
setting from IIS. Having done that, you should make sure that the
physical directory that you have your website in has permissions for
the Network Service. Thirdly, what kind of authentication have you
specified for your web site (typically a setting in your web.config
file). Try checking that.
- Vaibhav
On Nov 2, 1:25 pm, "KNC" <k...@.glassegg.comwrote:
Quote:
Originally Posted by
Hi all,
>
I'm developing a website and deployed on webserver, it always
display an authentication dialog that user must login with valid
Windows user. Would anyone helps to instruct how to prohibit this
dialog?
Some information provides for you:
1) Dev softs:
- VS 2005, ASP.NET 2.0, SQL Server 2005 Enterprise edition
2) Server:
a) Website Directory security:
- Allow anonymous access (IUSR_Server)
- Integrated Windows authentication.
b) OS: Windows 2003 Server.
>
The particular note is when deplying other Windows 2003 Server PC, it
works fine without any authentication dialog although the configuration
is exactly the same.
Some no - effective solutions:
- Remove "Integrated Windows authentication": result of "you are
unauthorized to ..."
- Add permission for user Evryone, Anonymous Logon, Network Service.
>
Very appreciated for any hint.
KNC
Hi V,
Thanks for your help. But as my message, I already tried to remove
"Integrated Windows authentication" and add user "NETWORK SERVICE" into
user list of my folder of website (under wwwroot) but no effect.
I've just re-tried as your instruction but it is still the same
phenomenon.
FYI, the authentication type of web.config is <authentication
mode="Forms">
Moreover, if I setting the Anonymous user account is a power user
(such as Administrator), it works fine, no authentication dialog at
all.
Would you guys pls give the root cause of this problem?
Thanks in advance,
KNC
V wrote:
Quote:
Originally Posted by
KNC,
>
You should anyway remove the "Integrated WIndows Authentication"
setting from IIS. Having done that, you should make sure that the
physical directory that you have your website in has permissions for
the Network Service. Thirdly, what kind of authentication have you
specified for your web site (typically a setting in your web.config
file). Try checking that.
>
- Vaibhav
>
On Nov 2, 1:25 pm, "KNC" <k...@.glassegg.comwrote:
Quote:
Originally Posted by
Hi all,
I'm developing a website and deployed on webserver, it always
display an authentication dialog that user must login with valid
Windows user. Would anyone helps to instruct how to prohibit this
dialog?
Some information provides for you:
1) Dev softs:
- VS 2005, ASP.NET 2.0, SQL Server 2005 Enterprise edition
2) Server:
a) Website Directory security:
- Allow anonymous access (IUSR_Server)
- Integrated Windows authentication.
b) OS: Windows 2003 Server.
The particular note is when deplying other Windows 2003 Server PC, it
works fine without any authentication dialog although the configuration
is exactly the same.
Some no - effective solutions:
- Remove "Integrated Windows authentication": result of "you are
unauthorized to ..."
- Add permission for user Evryone, Anonymous Logon, Network Service.
Very appreciated for any hint.
KNC
KNC,
if you have configured Forms authentication in your application, have
you implemented it in your pages? To be honest, I am not entirely sure
why your application is behaving this way (need one those experts to
answer on your thread :) ). However, i am trying to think of all the
things that I do when i setup Forms Authentication based web-app as I
have NEVER faced this problem.
Cheers,
- V
KNC wrote:
Quote:
Originally Posted by
Hi V,
>
Thanks for your help. But as my message, I already tried to remove
"Integrated Windows authentication" and add user "NETWORK SERVICE" into
user list of my folder of website (under wwwroot) but no effect.
I've just re-tried as your instruction but it is still the same
phenomenon.
FYI, the authentication type of web.config is <authentication
mode="Forms">
Moreover, if I setting the Anonymous user account is a power user
(such as Administrator), it works fine, no authentication dialog at
all.
>
Would you guys pls give the root cause of this problem?
>
Thanks in advance,
KNC
>
V wrote:
Quote:
Originally Posted by
KNC,
You should anyway remove the "Integrated WIndows Authentication"
setting from IIS. Having done that, you should make sure that the
physical directory that you have your website in has permissions for
the Network Service. Thirdly, what kind of authentication have you
specified for your web site (typically a setting in your web.config
file). Try checking that.
- Vaibhav
On Nov 2, 1:25 pm, "KNC" <k...@.glassegg.comwrote:
Quote:
Originally Posted by
Hi all,
>
I'm developing a website and deployed on webserver, it always
display an authentication dialog that user must login with valid
Windows user. Would anyone helps to instruct how to prohibit this
dialog?
Some information provides for you:
1) Dev softs:
- VS 2005, ASP.NET 2.0, SQL Server 2005 Enterprise edition
2) Server:
a) Website Directory security:
- Allow anonymous access (IUSR_Server)
- Integrated Windows authentication.
b) OS: Windows 2003 Server.
>
The particular note is when deplying other Windows 2003 Server PC, it
works fine without any authentication dialog although the configuration
is exactly the same.
Some no - effective solutions:
- Remove "Integrated Windows authentication": result of "you are
unauthorized to ..."
- Add permission for user Evryone, Anonymous Logon, Network Service.
>
Very appreciated for any hint.
KNC
Strange behavior issue
Hi everyone,
I have a asp.net web site with a button to perform a popup window
the window is show modal dialog window.
the popup works fine until there is a refresh of the popped up window
through a postback.
It doesn't refresh the popped up window, it creates a new window entirely.
Has anyone seen this before and how do i stop it from opening a new window on postback?
thanks
tony
That's because is a DIALOG box... It's not designed for interaction. There are ways but its really not standard for web programming. You are better off with a regular popup page or doing it in the page you are in.
the popup works fine until there is a refresh of the popped up window through a postback."
the popup window is a client side window build upon the client machine using some windows API (::createwindowmaybe), u can never expect to refresh/modify it using post back.
Hope my suggestion helps :)
Wednesday, March 28, 2012
Strange characters displayed in file name - File Download Dialog - IE
Windows-1252 characters (like and ), these characters appear, each one,
as two strange characters in the file name label in Internet Explorer File
Download Dialog that is shown when I click a link to download the file. The
file content is being generated on-the-fly using asp.net and the filename is
being passed using a call to Response.AddHeader with the strings
"Content-Disposition" and "attachment; filename=" + filename.
I want the file name to display correctly, as it DOES when I click a link in
a test HTML file that points to a "real" file stored in the system.
I tried setting Response.ContentEncoding but all my atempts were
unsuccessful.
I have also searched the net, specially google groups for an answer but I
couldn't find.
Thank you in advance,
Daniel CardosoAfer trying a little bit more, I decided to analyze the HTTP response
generated by the server in response to a request to download the file. I
then realized that the special characters were being wrongly represented and
sent to the client. I had to use Server.UrlEncode to encode the file name
appropriately, in addition to setting Response.ContentEncoding, so that the
special symbols were correctly sent to the browser. The problem is now
solved.
Regards,
Daniel Cardoso
"Daniel Cardoso" <someone@.nospam.com> wrote in message
news:uMYy4yXoEHA.2636@.TK2MSFTNGP09.phx.gbl...
> I don't know what else to try - In my asp.net app, when the file name has
> Windows-1252 characters (like and ), these characters appear, each one,
> as two strange characters in the file name label in Internet Explorer File
> Download Dialog that is shown when I click a link to download the file.
The
> file content is being generated on-the-fly using asp.net and the filename
is
> being passed using a call to Response.AddHeader with the strings
> "Content-Disposition" and "attachment; filename=" + filename.
> I want the file name to display correctly, as it DOES when I click a link
in
> a test HTML file that points to a "real" file stored in the system.
> I tried setting Response.ContentEncoding but all my atempts were
> unsuccessful.
> I have also searched the net, specially google groups for an answer but I
> couldn't find.
> Thank you in advance,
> Daniel Cardoso
Strange characters displayed in file name - File Download Dialog - IE
Windows-1252 characters (like and ), these characters appear, each one,
as two strange characters in the file name label in Internet Explorer File
Download Dialog that is shown when I click a link to download the file. The
file content is being generated on-the-fly using asp.net and the filename is
being passed using a call to Response.AddHeader with the strings
"Content-Disposition" and "attachment; filename=" + filename.
I want the file name to display correctly, as it DOES when I click a link in
a test HTML file that points to a "real" file stored in the system.
I tried setting Response.ContentEncoding but all my atempts were
unsuccessful.
I have also searched the net, specially google groups for an answer but I
couldn't find.
Thank you in advance,
Daniel CardosoAfer trying a little bit more, I decided to analyze the HTTP response
generated by the server in response to a request to download the file. I
then realized that the special characters were being wrongly represented and
sent to the client. I had to use Server.UrlEncode to encode the file name
appropriately, in addition to setting Response.ContentEncoding, so that the
special symbols were correctly sent to the browser. The problem is now
solved.
Regards,
Daniel Cardoso
"Daniel Cardoso" <someone@.nospam.com> wrote in message
news:uMYy4yXoEHA.2636@.TK2MSFTNGP09.phx.gbl...
> I don't know what else to try - In my asp.net app, when the file name has
> Windows-1252 characters (like and ), these characters appear, each one,
> as two strange characters in the file name label in Internet Explorer File
> Download Dialog that is shown when I click a link to download the file.
The
> file content is being generated on-the-fly using asp.net and the filename
is
> being passed using a call to Response.AddHeader with the strings
> "Content-Disposition" and "attachment; filename=" + filename.
> I want the file name to display correctly, as it DOES when I click a link
in
> a test HTML file that points to a "real" file stored in the system.
> I tried setting Response.ContentEncoding but all my atempts were
> unsuccessful.
> I have also searched the net, specially google groups for an answer but I
> couldn't find.
> Thank you in advance,
> Daniel Cardoso
>