Showing posts with label strange. Show all posts
Showing posts with label strange. Show all posts

Saturday, March 31, 2012

Strange "ambiguous in namespace" complier error disappears with rebuild

Hi all.
I am using VS 2005 and VB.NET.
Lately as my Web Application is getting larger, I have been getting strange
compiler messages like the following:
--
Compiler Error Message: BC30560: 'controls_user_createquicksearchbar_ascx
'
is ambiguous in the namespace 'ASP'.
Source Error:
Line 9:
Line 10: <asp:Content ID="Content1" ContentPlaceHolderID="Content1"
Runat="Server">
Line 11: <uc1:CreateQuickSearchBar ID="CreateQuickSearchBar1"
runat="server" />
Line 12:
Line 13: <uc2:PCSavedSearches ID="PCSavedSearches1" runat="server" />
--
This typically occurs after I have made a change that is in a code-behind
page in which the offending User Control is placed and I do a complete
rebuild and then test.
After the error occurs without making any other changes to the code, I
simply do another full rebuild from within VS and the error goes away and
does not re-occur.
Has anyone experienced this? Is there a fix for it? It is becoming both
annoying and time-consuming.
TIA"John Kotuby" <JohnKotuby@.discussions.microsoft.com> wrote in message
news:%23ahALGOPIHA.5160@.TK2MSFTNGP05.phx.gbl...
> Hi all.
> I am using VS 2005 and VB.NET.
> Lately as my Web Application is getting larger, I have been getting
> strange compiler messages like the following:
> --
> Compiler Error Message: BC30560: 'controls_user_createquicksearchbar_ascx
'
> is ambiguous in the namespace 'ASP'.
> Source Error:
> Line 9:
> Line 10: <asp:Content ID="Content1" ContentPlaceHolderID="Content1"
> Runat="Server">
> Line 11: <uc1:CreateQuickSearchBar ID="CreateQuickSearchBar1"
> runat="server" />
> Line 12:
> Line 13: <uc2:PCSavedSearches ID="PCSavedSearches1" runat="server" />
> --
> This typically occurs after I have made a change that is in a code-behind
> page in which the offending User Control is placed and I do a complete
> rebuild and then test.
> After the error occurs without making any other changes to the code, I
> simply do another full rebuild from within VS and the error goes away and
> does not re-occur.
> Has anyone experienced this? Is there a fix for it? It is becoming both
> annoying and time-consuming.
> TIA
>
I have exactly the same problem. I have googled, asked here but no answers
/ solutions. Get out of the car and get back in. The only thing I can
think of is that depending on where my right hand is (on mouse or keyboard)
I will use F5 or click start debugging toolbar button. I always thought
that was the same but it seems that if I use only one of those combinations
I don't get the problem.
LS

Strange "expected ;" error

I am getting an error and I can't seem to figure out why. The error is on line 32.

Compiler Error Message: CS1002: ; expected

Line 30: strScriptName=Request.ServerVariables("SCRIPT_NAME");
Line 31: strFolder="/buildlauncher/";
Line 32: If (strScriptName.IndexOf(strFolder)=-1)
Line 33: {
Line 34: strbuildlauncher="class='selected'";

The language I am using is C# and I don't seem to understand what a ; would be doing in an if statement. What I am trying to do is determine if the folder specified in the strFolder variable is in the server variable SCRIPT_NAME.There are some syntax problems here:

If (strScriptName.IndexOf(strFolder)=-1)

should probably be

if(strScriptName.IndexOf(strFolder) == -1)

Note the case sensitivity and the equality operator.

Strange "ambiguous in namespace" complier error disappears with rebuild

Hi all.

I am using VS 2005 and VB.NET.
Lately as my Web Application is getting larger, I have been getting strange
compiler messages like the following:
--------
Compiler Error Message: BC30560: 'controls_user_createquicksearchbar_ascx'
is ambiguous in the namespace 'ASP'.

Source Error:

Line 9:
Line 10: <asp:Content ID="Content1" ContentPlaceHolderID="Content1"
Runat="Server">
Line 11: <uc1:CreateQuickSearchBar ID="CreateQuickSearchBar1"
runat="server" />
Line 12:
Line 13: <uc2:PCSavedSearches ID="PCSavedSearches1" runat="server" />
--------

This typically occurs after I have made a change that is in a code-behind
page in which the offending User Control is placed and I do a complete
rebuild and then test.

After the error occurs without making any other changes to the code, I
simply do another full rebuild from within VS and the error goes away and
does not re-occur.

Has anyone experienced this? Is there a fix for it? It is becoming both
annoying and time-consuming.

TIA"John Kotuby" <JohnKotuby@.discussions.microsoft.comwrote in message
news:%23ahALGOPIHA.5160@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

Hi all.
>
I am using VS 2005 and VB.NET.
Lately as my Web Application is getting larger, I have been getting
strange compiler messages like the following:
--------
Compiler Error Message: BC30560: 'controls_user_createquicksearchbar_ascx'
is ambiguous in the namespace 'ASP'.
>
Source Error:
>
Line 9:
Line 10: <asp:Content ID="Content1" ContentPlaceHolderID="Content1"
Runat="Server">
Line 11: <uc1:CreateQuickSearchBar ID="CreateQuickSearchBar1"
runat="server" />
Line 12:
Line 13: <uc2:PCSavedSearches ID="PCSavedSearches1" runat="server" />
--------
>
This typically occurs after I have made a change that is in a code-behind
page in which the offending User Control is placed and I do a complete
rebuild and then test.
>
After the error occurs without making any other changes to the code, I
simply do another full rebuild from within VS and the error goes away and
does not re-occur.
>
Has anyone experienced this? Is there a fix for it? It is becoming both
annoying and time-consuming.
>
TIA
>


I have exactly the same problem. I have googled, asked here but no answers
/ solutions. Get out of the car and get back in. The only thing I can
think of is that depending on where my right hand is (on mouse or keyboard)
I will use F5 or click start debugging toolbar button. I always thought
that was the same but it seems that if I use only one of those combinations
I don't get the problem.

LS

strange & weird problem in ASP.NET application

I am having a strange problem in my ASP.NET application. When
multiple users access the web site, the changes done by a user gets
reflected in another users session.

I have some global variables declared in a module which I use
throughout the application. Is it problem because of this? If I cant
declare a global variable in a module where else can I declare it
where it cannot be changed when multiple users are accessing the same
variable?

Please somebody help me.

-Shalinthat would be the difference betueen session variables and application
variables
you would need session variables
have a look at the pass variables value between diferent pages thread

hope it helps

eric

"shalin" <shalin@.imagine.co.in> wrote in message
news:2acc1eb4.0402260345.4dd44352@.posting.google.c om...
> I am having a strange problem in my ASP.NET application. When
> multiple users access the web site, the changes done by a user gets
> reflected in another users session.
> I have some global variables declared in a module which I use
> throughout the application. Is it problem because of this? If I cant
> declare a global variable in a module where else can I declare it
> where it cannot be changed when multiple users are accessing the same
> variable?
> Please somebody help me.
> -Shalin

Strange "Object reference not set to an instance of an object" error in webform

I suddenly received an unexpected error in my project. I have been working
on this project for some time without this issue. Nothing has changed in the
form that caused the exception. A little experimentation shows that I cannot
run ANY .NET web project without getting this error:

-----------------------
--

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.

Source Error:

Line 1: <%@dotnet.itags.org. Page Language="vb" AutoEventWireup="false"
Codebehind="Login.aspx.vb" Inherits="DataBayWeb.Login" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML
Source File: c:\inetpub\wwwroot\DataBayWeb\login.aspx Line: 1

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an
object.]
System.Web.UI.Control.get_Controls()
System.Web.UI.Control.AddParsedSubObject(Object obj)

System.Web.UI.Control.System.Web.UI.IParserAccesso r.AddParsedSubObject(Objec
t obj)
ASP.Login_aspx.__BuildControlTree(Control __ctrl) in
c:\inetpub\wwwroot\DataBayWeb\login.aspx:1
ASP.Login_aspx.FrameworkInitialize()
System.Web.UI.Page.ProcessRequest()
System.Web.UI.Page.ProcessRequest(HttpContext context)

System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte
p.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)

Other developers on my team can run the latest version of the project
without an issue. What has happened?

ChrisVery strange indeed. It might sound obscure, but try removing the
space in <%@. Page...

Otherwise, I would be tempted to do the inevitable and reinstall the
framework.

Simon.

Strange "Object reference not set to an instance of an object" error in web

I suddenly received an unexpected error in my project. I have been working
on this project for some time without this issue. Nothing has changed in the
form that caused the exception. A little experimentation shows that I cannot
run ANY .NET web project without getting this error:
----
--
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
Line 1: <%@dotnet.itags.org. Page Language="vb" AutoEventWireup="false"
Codebehind="Login.aspx.vb" Inherits="DataBayWeb.Login" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>
Source File: c:\inetpub\wwwroot\DataBayWeb\login.aspx Line: 1
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.]
System.Web.UI.Control.get_Controls()
System.Web.UI.Control.AddParsedSubObject(Object obj)
System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Objec
t obj)
ASP.Login_aspx.__BuildControlTree(Control __ctrl) in
c:\inetpub\wwwroot\DataBayWeb\login.aspx:1
ASP.Login_aspx.FrameworkInitialize()
System.Web.UI.Page.ProcessRequest()
System.Web.UI.Page.ProcessRequest(HttpContext context)
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionSte
p.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
Other developers on my team can run the latest version of the project
without an issue. What has happened?
ChrisVery strange indeed. It might sound obscure, but try removing the
space in <%@. Page...
Otherwise, I would be tempted to do the inevitable and reinstall the
framework.
Simon.

strange 404 in ASP.NET IIS5

I have been receiving this very strange 404 lately and was wondering
if anyone else out there has had a similar problem. For some reason
when users receive this error and they hit refresh the error goes
away. Seems like a IE or ASP.NET cache problem, but can not find any
articles on it.

404 not found C:\inetpub\mySite\mySite_com_files\pictures.aspx

StackTrace
System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context,
String requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)

-MikeOh yeah, sometimes instead of mySite_com_files it will be a username_com_files or username_files. _files is on all these 404's no matter what was before it.

-Mike

-- Mike wrote: --

I have been receiving this very strange 404 lately and was wondering
if anyone else out there has had a similar problem. For some reason
when users receive this error and they hit refresh the error goes
away. Seems like a IE or ASP.NET cache problem, but can not find any
articles on it.

404 not found C:\inetpub\mySite\mySite_com_files\pictures.aspx

StackTrace
System.Web.UI.TemplateParser.GetParserCacheItem() at
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context,
String requestType, String url, String path) at
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)

-Mike

strange 404 error

I'm wondering if anyone has encountered something similar to the error I've pasted below. We get similar errors when someone hits a bad link etc., but the part I can't figure out here is where the string "ExpenseWatch_files" come from. The page TEPrintFrame.aspx resides in the TE folder. There is no intermediate directory and the string "ExpenseWatch_files" does not exist anywhere in our code. Also, I'm pretty sure that the user never knows that an error occurred even though it is trapped and reported.

Thanks in advance,

Sean Nolan

----------------
Message:
C:\Inetpub\wwwroot\ExpenseWatchApp\TE\ExpenseWatch _files\TEPrintFrame.aspx

Source:
System.Web

Stack Trace:
at System.Web.UI.TemplateParser.GetParserCacheItem()
at System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)Probably a hacker, probing for a specific vulnerability in some commercial
product called "ExpenseWatch".

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Sean Nolan" <snolan@.harriton.com> wrote in message
news:#bm2B0##DHA.2520@.TK2MSFTNGP11.phx.gbl...
I'm wondering if anyone has encountered something similar to the error I've
pasted below. We get similar errors when someone hits a bad link etc., but
the part I can't figure out here is where the string "ExpenseWatch_files"
come from. The page TEPrintFrame.aspx resides in the TE folder. There is no
intermediate directory and the string "ExpenseWatch_files" does not exist
anywhere in our code. Also, I'm pretty sure that the user never knows that
an error occurred even though it is trapped and reported.

Thanks in advance,

Sean Nolan

----------------
Message:
C:\Inetpub\wwwroot\ExpenseWatchApp\TE\ExpenseWatch _files\TEPrintFrame.aspx

Source:
System.Web

Stack Trace:
at System.Web.UI.TemplateParser.GetParserCacheItem()
at System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)

Strange 100% CPU issue with asp_wp

Hello,
We are having some issues with our .NET web applications. Every so
often a computer will peg its CPU at 100% for some period of time. I am
told anywhere between 30mins and 2 hours. I have seen some kb articles
about asp_wp and 100% but I do not believe that is our issues. I am
fairly certain that the probelm is caused by one of the applications
running on the server. Ok so here are the questions.
Are there any perfmons that can be used to determine which asp.net app
is causing the cpu to spike up?
Is there any code that can be written to see what is happening?
What I am trying to accomplish is to determine the offending
application. What toold exist?
Thanks
RichHi Rich
As for the 100% cpu and troubleshooting on multi-web app server problem.
There are different options which depend on the server's OS version. Is
your webserver win2k server or win2003 server?
If you're using the Win2k server, since the processModel are the fixed
isolation mode. All the web application shared the same workerprocess.
There hasn't any buildin means or tools to determine which app caues the
problem. We have to test them one by one.
However , on win2k3 box, the IIS6 has provided a new workerprocess
isolation model( application pool model) which can let use isolate each web
application in a separate workproesss. You can have a look at the following
reference discussing on this:
#Chapter 20 C Hosting Multiple Web Applications
http://msdn.microsoft.com/library/d...-us/dnnetsec/ht
ml/thcmch20.asp
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks for the feedback. This is a W2K server hosting these
applications. So I am left with the testing of individual applications.
Would this testing be done in a traditional manner (ie click and watch)?
If so I was hoping for something a little more than that. Any other
ideas? Thanks
Rich
In article <9LvS$c4eEHA.1600@.cpmsftngxa06.phx.gbl>, you say...
> Hi Rich
> As for the 100% cpu and troubleshooting on multi-web app server problem.
> There are different options which depend on the server's OS version. Is
> your webserver win2k server or win2003 server?
> If you're using the Win2k server, since the processModel are the fixed
> isolation mode. All the web application shared the same workerprocess.
> There hasn't any buildin means or tools to determine which app caues the
> problem. We have to test them one by one.
> However , on win2k3 box, the IIS6 has provided a new workerprocess
> isolation model( application pool model) which can let use isolate each we
b
> application in a separate workproesss. You can have a look at the followin
g
> reference discussing on this:
> #Chapter 20 =3FC Hosting Multiple Web Applications
> http://msdn.microsoft.com/library/d...ft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
>
Hi Rich,
Thanks for your followup. As for such problem, if you have found the web
application which cause the problem, I think you'd better continue to
narrow down the problem to some certain web pages or component which may be
the root cause. Also, you can have a check directly in the code logic to
see whether there is any potential issues. Currnetly there're any
particular tools focus on such problem.
In addition, if you still feel on this issue, I recommend that you
request a regular case on it since intensive troubleshooting(such as Dump
analyse) would be done quickly and effectively with direct assistance from
a Microsoft Support Professional through Microsoft Product Support
Services.
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks Steven. I was afraid there would be no way of tracking this
down. If we can't find the app we will contact MPS. Rich
In article <Cvm$ywefEHA.3212@.cpmsftngxa06.phx.gbl>, v-
schang@.online.microsoft.com says...
> Hi Rich,
> Thanks for your followup. As for such problem, if you have found the web
> application which cause the problem, I think you'd better continue to
> narrow down the problem to some certain web pages or component which may b
e
> the root cause. Also, you can have a check directly in the code logic to
> see whether there is any potential issues. Currnetly there're any
> particular tools focus on such problem.
> In addition, if you still feel on this issue, I recommend that yo
u
> request a regular case on it since intensive troubleshooting(such as Dump
> analyse) would be done quickly and effectively with direct assistance from
> a Microsoft Support Professional through Microsoft Product Support
> Services.
> Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>

Strange 100% CPU issue with asp_wp

Hello,
We are having some issues with our .NET web applications. Every so
often a computer will peg its CPU at 100% for some period of time. I am
told anywhere between 30mins and 2 hours. I have seen some kb articles
about asp_wp and 100% but I do not believe that is our issues. I am
fairly certain that the probelm is caused by one of the applications
running on the server. Ok so here are the questions.

Are there any perfmons that can be used to determine which asp.net app
is causing the cpu to spike up?

Is there any code that can be written to see what is happening?

What I am trying to accomplish is to determine the offending
application. What toold exist?

Thanks

RichHi Rich

As for the 100% cpu and troubleshooting on multi-web app server problem.
There are different options which depend on the server's OS version. Is
your webserver win2k server or win2003 server?

If you're using the Win2k server, since the processModel are the fixed
isolation mode. All the web application shared the same workerprocess.
There hasn't any buildin means or tools to determine which app caues the
problem. We have to test them one by one.

However , on win2k3 box, the IIS6 has provided a new workerprocess
isolation model( application pool model) which can let use isolate each web
application in a separate workproesss. You can have a look at the following
reference discussing on this:

#Chapter 20 C Hosting Multiple Web Applications
http://msdn.microsoft.com/library/d...-us/dnnetsec/ht
ml/thcmch20.asp

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks for the feedback. This is a W2K server hosting these
applications. So I am left with the testing of individual applications.
Would this testing be done in a traditional manner (ie click and watch)?
If so I was hoping for something a little more than that. Any other
ideas? Thanks

Rich

In article <9LvS$c4eEHA.1600@.cpmsftngxa06.phx.gbl>, you say...
> Hi Rich
> As for the 100% cpu and troubleshooting on multi-web app server problem.
> There are different options which depend on the server's OS version. Is
> your webserver win2k server or win2003 server?
> If you're using the Win2k server, since the processModel are the fixed
> isolation mode. All the web application shared the same workerprocess.
> There hasn't any buildin means or tools to determine which app caues the
> problem. We have to test them one by one.
> However , on win2k3 box, the IIS6 has provided a new workerprocess
> isolation model( application pool model) which can let use isolate each web
> application in a separate workproesss. You can have a look at the following
> reference discussing on this:
> #Chapter 20 =3FC Hosting Multiple Web Applications
> http://msdn.microsoft.com/library/d...-us/dnnetsec/ht
> ml/thcmch20.asp
>
> Thanks.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
Hi Rich,

Thanks for your followup. As for such problem, if you have found the web
application which cause the problem, I think you'd better continue to
narrow down the problem to some certain web pages or component which may be
the root cause. Also, you can have a check directly in the code logic to
see whether there is any potential issues. Currnetly there're any
particular tools focus on such problem.
In addition, if you still feel confused on this issue, I recommend that you
request a regular case on it since intensive troubleshooting(such as Dump
analyse) would be done quickly and effectively with direct assistance from
a Microsoft Support Professional through Microsoft Product Support
Services.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks Steven. I was afraid there would be no way of tracking this
down. If we can't find the app we will contact MPS. Rich

In article <Cvm$ywefEHA.3212@.cpmsftngxa06.phx.gbl>, v-
schang@.online.microsoft.com says...
> Hi Rich,
> Thanks for your followup. As for such problem, if you have found the web
> application which cause the problem, I think you'd better continue to
> narrow down the problem to some certain web pages or component which may be
> the root cause. Also, you can have a check directly in the code logic to
> see whether there is any potential issues. Currnetly there're any
> particular tools focus on such problem.
> In addition, if you still feel confused on this issue, I recommend that you
> request a regular case on it since intensive troubleshooting(such as Dump
> analyse) would be done quickly and effectively with direct assistance from
> a Microsoft Support Professional through Microsoft Product Support
> Services.
> Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>

Strange and annoying problem

Even commenting a line in javascript still prompts for an error. If I remove the following line then no error, but again if i put it back, even commented error occurs.

//opener.document.getElementById('<%=TextBox1.ClientID%>').value='akberalikaka';

isn't it strange behavior

Yes it is strange. As far as i am aware of, there are three types of comment you can do in java:

1. Multiple-line :/* and*/

2.One-line comments of C++ style: Begins with // and continue up to the next line break:

3.One-line comments with theHTML comment-opening sequence (<!--). Note that the JavaScript interpreter ignores the closing characters of HTML comments (-->). Consider this example:
<!-- This is treated as a one-line JS comment<!-- It works just like a comment beginning with //<!-- --> This is also a one-line JS comment<!-- --> because JS ignores the closing characters<!-- --> of HTML-style comments

HTML-style comments are not usually found in the middle of JavaScript code. However, it is recommended to use HTML comments for hiding Javascript code from old browsers

Try using this mate


Hi,

//opener.document.getElementById('<%=TextBox1.ClientID%>').value='akberalikaka';

Your comment in javascript doesn't stop<%=TextBox1.ClientID%> since it is asp.net code. So to clear the error you have to remove this code.


You have to comment the aspnet code also

if you are using C#

//opener.document.getElementById('<%/*=TextBox1.ClientID*/%>').value='akberalikaka';

if you are using VB

//opener.document.getElementById('<%'=TextBox1.ClientID'%>').value='akberalikaka';

<%'=TextBox1.ClientID'%> is equivalent to <% Response.Write(TextBox1.ClientID) %>

Strange ASP.NET problem

i've 2 platform which i developed asp.net. 1 is a windows xp with iis5.1 and another 1 is a windows 2000 server.

Both have exactly the same .net framework.. regional settings.. and both are using the same codes and have compile with no problem in both platforms.

Then i've a webform which does a regular expression check on a date. It works perfectly fine in the windows xp machine, upon an invalid date (e.g. aaa, aa/aa/aaaa, 30/30/2222, etc), the message will come out. But when i run the exact same code in the win2k server, upon clicking an invalid date like in the winxp machine, it gives me this error:

The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Funny problem is that it worked on the winxp machine and not the win2k machine? What settings could i be missing in the OS itself? or iis?? Coz the source codes everything is the same.i found out its because the aspnet_client folder is missing thus the validation didn't work and got through the form.

Doesnt the asp.net validation work on the server side? It seems it just work in the client side through javascript. All the while i have the impression that the form validation works both on the client and have some check in the server side as well. But after this, when the javascript isnt available, it passes through.

Strange Authentication Issue

I'm trying to get the User.Identity.Name with my intranet application. I'm looking to get the Domain\User. Now, at first this simply did not work...User.Identity.Name would return nada. So then I poked around IIS a bit and I managed to switch the authentication methods. I checked off "Anonymous Access" and checked "Integrated Windows Authentication". After doing so, I was able to retrieve the Domain\user.

Great, dandy, fanny-tastic. Now comes the strange part. Certain users have access to re-open issues, so the powers that be created a new group on the server just for these users. When one of the users that belongs to this group accesses the site, they are prompted for a username and password from windows. Just those users in the group.

I don't have any code on page load that checks what role they're in, so what could I be missing here? I would like to get rid of the logon.

Thanks.

I was having the same problem and I fixed it. First of all I hope thereis some admin folder or the folder which special users are trying tovisit. That folder can have confidential files that are only viewableby special users. Go to IIS and view your project folder. right clickon the Admin folder and select properties and than select directorysecurity tab and uncheck windows authentication and check the Anonymousauthentication . Refresh your page and It should work fine now.


azamsharp wrote:

I was having the same problem and I fixed it. First of all I hope there is some admin folder or the folder which special users are trying to visit. That folder can have confidential files that are only viewable by special users. Go to IIS and view your project folder. right click on the Admin folder and select properties and than select directory security tab and uncheck windows authentication and check the Anonymous authentication . Refresh your page and It should work fine now.

The thing is, I had it set up for Anonymous at first. When it was set up that way, I couldn't retreive the Domain\User with User.Identity.Name. It would return nothing.


Yeah you are right. Strange thing is when I try to view restrictedpages using my University Wireless network I dont see the pop upmessage for the username and password. But when I use my dial upaccount at home I see the pop up.

azamsharp wrote:

Yeah you are right. Strange thing is when I try to view restricted pages using my University Wireless network I dont see the pop up message for the username and password. But when I use my dial up account at home I see the pop up.

Interesting. Sounds like your issue is similar to mine. I figured it out. (Well, my manager really did)

We were navigating to the site using the the full url of the domain, instead of the shorter version. Something like:

http://domain.blah.com/dir

When all we had to do was:

http://domain.blah/dir

So I guess using the .com appeared as if we were outside of the network, and therefore it promted for a username/password.

Thanks for your help and interest in my matter!


Thanks for sharing the solution.

strange authentication dialog

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.
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

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.
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 authentication problem...

hi there,
i've got a website i created, that i've put onto my test server on the web.
I have a login page, that when the user comes to it, it first pops up a
windows authentication dialog box, and i dont know why? i click cancel on it
and the page still works as normal.
How can i remove this, and why is it appearing?
i am also not using any .NET authentication methods or anything..
thanks,you can set authentication mode in Web.config file
<authentication mode="Forms">
<forms name="login" loginUrl="login.aspx" protection="All" />
</authentication>
"Paul M" <milsnips@.hotmail.com> д?
news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> hi there,
> i've got a website i created, that i've put onto my test server on the
web.
> I have a login page, that when the user comes to it, it first pops up a
> windows authentication dialog box, and i dont know why? i click cancel on
it
> and the page still works as normal.
> How can i remove this, and why is it appearing?
> i am also not using any .NET authentication methods or anything..
> thanks,
>
thanks, but this isnt exactly what i am after..
What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.
web.config is also set to <authentication mode="None" /> but still no luck.
Paull
"lzh" <lzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> web.
on
> it
>
it's really a trouble,i have no ideas about that.
if you have set authentication mode="None", it's will work
try again
<authentication mode="None">
<allow users="?"/>
</authentication>
"Paul M" <milsnips@.hotmail.com> д?
:uLl5APAIEHA.828@.TK2MSFTNGP12.phx.gbl...
> thanks, but this isnt exactly what i am after..
> What the problem is that i already have a login page which all works
> fine...however i have 3 pages in my web app, that whenever i go to their
> URL, they always popup the windows authentication window, when it shouldnt
> appear..i have no authentication code for these pages, nor do i want any.
> web.config is also set to <authentication mode="None" /> but still no
luck.
> Paull
> "lzh" <lzh@.hotmail.com> wrote in message
> news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
<allow roles="Admins"/>
a
> on
>

strange authentication problem...

hi there,

i've got a website i created, that i've put onto my test server on the web.

I have a login page, that when the user comes to it, it first pops up a
windows authentication dialog box, and i dont know why? i click cancel on it
and the page still works as normal.

How can i remove this, and why is it appearing?
i am also not using any .NET authentication methods or anything..

thanks,you can set authentication mode in Web.config file
<authentication mode="Forms">
<forms name="login" loginUrl="login.aspx" protection="All" />
</authentication
"Paul M" <milsnips@.hotmail.com> д?
news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> hi there,
> i've got a website i created, that i've put onto my test server on the
web.
> I have a login page, that when the user comes to it, it first pops up a
> windows authentication dialog box, and i dont know why? i click cancel on
it
> and the page still works as normal.
> How can i remove this, and why is it appearing?
> i am also not using any .NET authentication methods or anything..
> thanks,
thanks, but this isnt exactly what i am after..

What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.

web.config is also set to <authentication mode="None" /> but still no luck.

Paull

"coollzh" <coollzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > hi there,
> > i've got a website i created, that i've put onto my test server on the
> web.
> > I have a login page, that when the user comes to it, it first pops up a
> > windows authentication dialog box, and i dont know why? i click cancel
on
> it
> > and the page still works as normal.
> > How can i remove this, and why is it appearing?
> > i am also not using any .NET authentication methods or anything..
> > thanks,

strange authentication problem...

hi there,

i've got a website i created, that i've put onto my test server on the web.

I have a login page, that when the user comes to it, it first pops up a
windows authentication dialog box, and i dont know why? i click cancel on it
and the page still works as normal.

How can i remove this, and why is it appearing?
i am also not using any .NET authentication methods or anything..

thanks,you can set authentication mode in Web.config file
<authentication mode="Forms">
<forms name="login" loginUrl="login.aspx" protection="All" />
</authentication
"Paul M" <milsnips@.hotmail.com> д?
news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> hi there,
> i've got a website i created, that i've put onto my test server on the
web.
> I have a login page, that when the user comes to it, it first pops up a
> windows authentication dialog box, and i dont know why? i click cancel on
it
> and the page still works as normal.
> How can i remove this, and why is it appearing?
> i am also not using any .NET authentication methods or anything..
> thanks,
you can set authentication mode in Web.config file
<authentication mode="Forms">
<forms name="login" loginUrl="login.aspx" protection="All" />
</authentication
"Paul M" <milsnips@.hotmail.com> д?
news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> hi there,
> i've got a website i created, that i've put onto my test server on the
web.
> I have a login page, that when the user comes to it, it first pops up a
> windows authentication dialog box, and i dont know why? i click cancel on
it
> and the page still works as normal.
> How can i remove this, and why is it appearing?
> i am also not using any .NET authentication methods or anything..
> thanks,
thanks, but this isnt exactly what i am after..

What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.

web.config is also set to <authentication mode="None" /> but still no luck.

Paull

"coollzh" <coollzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > hi there,
> > i've got a website i created, that i've put onto my test server on the
> web.
> > I have a login page, that when the user comes to it, it first pops up a
> > windows authentication dialog box, and i dont know why? i click cancel
on
> it
> > and the page still works as normal.
> > How can i remove this, and why is it appearing?
> > i am also not using any .NET authentication methods or anything..
> > thanks,
thanks, but this isnt exactly what i am after..

What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.

web.config is also set to <authentication mode="None" /> but still no luck.

Paull

"coollzh" <coollzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > hi there,
> > i've got a website i created, that i've put onto my test server on the
> web.
> > I have a login page, that when the user comes to it, it first pops up a
> > windows authentication dialog box, and i dont know why? i click cancel
on
> it
> > and the page still works as normal.
> > How can i remove this, and why is it appearing?
> > i am also not using any .NET authentication methods or anything..
> > thanks,
it's really a trouble,i have no ideas about that.
if you have set authentication mode="None", it's will work
try again
<authentication mode="None"
<allow users="?"/>
</authentication
"Paul M" <milsnips@.hotmail.com> д?
:uLl5APAIEHA.828@.TK2MSFTNGP12.phx.gbl...
> thanks, but this isnt exactly what i am after..
> What the problem is that i already have a login page which all works
> fine...however i have 3 pages in my web app, that whenever i go to their
> URL, they always popup the windows authentication window, when it shouldnt
> appear..i have no authentication code for these pages, nor do i want any.
> web.config is also set to <authentication mode="None" /> but still no
luck.
> Paull
> "coollzh" <coollzh@.hotmail.com> wrote in message
> news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> > you can set authentication mode in Web.config file
> > <authentication mode="Forms">
> > <forms name="login" loginUrl="login.aspx" protection="All" />
<allow roles="Admins"/
> > </authentication>
> > "Paul M" <milsnips@.hotmail.com> д?
> > news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > > hi there,
> > > > i've got a website i created, that i've put onto my test server on the
> > web.
> > > > I have a login page, that when the user comes to it, it first pops up
a
> > > windows authentication dialog box, and i dont know why? i click cancel
> on
> > it
> > > and the page still works as normal.
> > > > How can i remove this, and why is it appearing?
> > > i am also not using any .NET authentication methods or anything..
> > > > thanks,
> >

strange authentication problem...

hi there,

i've got a website i created, that i've put onto my test server on the web.

I have a login page, that when the user comes to it, it first pops up a
windows authentication dialog box, and i dont know why? i click cancel on it
and the page still works as normal.

How can i remove this, and why is it appearing?
i am also not using any .NET authentication methods or anything..

thanks,you can set authentication mode in Web.config file
<authentication mode="Forms">
<forms name="login" loginUrl="login.aspx" protection="All" />
</authentication
"Paul M" <milsnips@.hotmail.com> д?
news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> hi there,
> i've got a website i created, that i've put onto my test server on the
web.
> I have a login page, that when the user comes to it, it first pops up a
> windows authentication dialog box, and i dont know why? i click cancel on
it
> and the page still works as normal.
> How can i remove this, and why is it appearing?
> i am also not using any .NET authentication methods or anything..
> thanks,
thanks, but this isnt exactly what i am after..

What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.

web.config is also set to <authentication mode="None" /> but still no luck.

Paull

"coollzh" <coollzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > hi there,
> > i've got a website i created, that i've put onto my test server on the
> web.
> > I have a login page, that when the user comes to it, it first pops up a
> > windows authentication dialog box, and i dont know why? i click cancel
on
> it
> > and the page still works as normal.
> > How can i remove this, and why is it appearing?
> > i am also not using any .NET authentication methods or anything..
> > thanks,
thanks, but this isnt exactly what i am after..

What the problem is that i already have a login page which all works
fine...however i have 3 pages in my web app, that whenever i go to their
URL, they always popup the windows authentication window, when it shouldnt
appear..i have no authentication code for these pages, nor do i want any.

web.config is also set to <authentication mode="None" /> but still no luck.

Paull

"coollzh" <coollzh@.hotmail.com> wrote in message
news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> you can set authentication mode in Web.config file
> <authentication mode="Forms">
> <forms name="login" loginUrl="login.aspx" protection="All" />
> </authentication>
> "Paul M" <milsnips@.hotmail.com> д?
> news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > hi there,
> > i've got a website i created, that i've put onto my test server on the
> web.
> > I have a login page, that when the user comes to it, it first pops up a
> > windows authentication dialog box, and i dont know why? i click cancel
on
> it
> > and the page still works as normal.
> > How can i remove this, and why is it appearing?
> > i am also not using any .NET authentication methods or anything..
> > thanks,
it's really a trouble,i have no ideas about that.
if you have set authentication mode="None", it's will work
try again
<authentication mode="None"
<allow users="?"/>
</authentication
"Paul M" <milsnips@.hotmail.com> д?
:uLl5APAIEHA.828@.TK2MSFTNGP12.phx.gbl...
> thanks, but this isnt exactly what i am after..
> What the problem is that i already have a login page which all works
> fine...however i have 3 pages in my web app, that whenever i go to their
> URL, they always popup the windows authentication window, when it shouldnt
> appear..i have no authentication code for these pages, nor do i want any.
> web.config is also set to <authentication mode="None" /> but still no
luck.
> Paull
> "coollzh" <coollzh@.hotmail.com> wrote in message
> news:uy1G0C9HEHA.2300@.tk2msftngp13.phx.gbl...
> > you can set authentication mode in Web.config file
> > <authentication mode="Forms">
> > <forms name="login" loginUrl="login.aspx" protection="All" />
<allow roles="Admins"/
> > </authentication>
> > "Paul M" <milsnips@.hotmail.com> д?
> > news:Oux4bs8HEHA.3200@.TK2MSFTNGP10.phx.gbl...
> > > hi there,
> > > > i've got a website i created, that i've put onto my test server on the
> > web.
> > > > I have a login page, that when the user comes to it, it first pops up
a
> > > windows authentication dialog box, and i dont know why? i click cancel
> on
> > it
> > > and the page still works as normal.
> > > > How can i remove this, and why is it appearing?
> > > i am also not using any .NET authentication methods or anything..
> > > > thanks,
> >

Strange Behavior

When I drag and drop my custom control on to the webform, it displays as a little (resizable) square in design.
If I click the html tab to go to html view, then click the Design tab again, the control shows just fine (like a regular textbox).

Is there some event I am missing or a property that needs to be set?

The top is what is looks like when I place the control on the form.
The bottom is what it looks like when I go to html view and then back to design view...

http://vbforums.com/attachment.php?s=&postid=1669737

Any Ideas what is going on?Solution: I had to override the render event.
Like this

Protected Overrides Sub render(output As HtmlTextWriter)
EnsureChildControls()
MyBase.Render()
End Sub