Showing posts with label application. Show all posts
Showing posts with label application. 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 "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 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 Behavior ASPnet_Wp.exe

Hi all,
i have opened my application and did some work, i could see
i the task manager the Mem usage is 76,476K, I closed my application
and made sure that no instance of .net is running, but when i saw that
task manager after closing all the application , in the task manager it
still shows 76,476K, Would somebody please explain me why the memory is
not released.
Thanks in Advance
Regards
thomsonOn 25 Nov 2005 21:09:38 -0800, thomson wrote:

> Hi all,
> i have opened my application and did some work, i could see
> i the task manager the Mem usage is 76,476K, I closed my application
> and made sure that no instance of .net is running, but when i saw that
> task manager after closing all the application , in the task manager it
> still shows 76,476K, Would somebody please explain me why the memory is
> not released.
It's not strange at all. You merely have a misunderstanding of the way web
applications work.
HTTP is a stateless protocol. What this means is that there is no way for
the app to "know" if you have closed your browser or not. All it can know
is if you haven't interacted with it in a given amount of time. This
amount of time is configurable in the application pool (under IIS6) or in
other ways under earlier versions.

Wednesday, March 28, 2012

Strange Behaviour

Hi,
I have developed a multi-frame web application with asp.net in c#. One frame
contains an embedded windows media 9 player for playing .wmv files. While
there is a file loaded in the player the other frames do not reliably
refresh.
Specifivally, if I try to refresh a page where I have overridden the Render
method, IE will stall. My attempts to debug this seem to indicate that this
stalling occurs before any code is excecuted. Refreshing the player frame
allows the stalled frame to load properly. When no file is open in the
player frame, everything works fine. This does not occur for asp.net pages
that do not override the render method, or simple html pages.
The page that causes this problem performs a SQL select in its render
method. It seems that this does not occur if there is no select in Render.
I have no idea what could be causing this. Any ideas would be greatly
appreciated.
thanks,
Grace SainsburyHi
Perhaps because the file in the player is still loading?
I did a test and no problems: http://213.190.104.211/
P.S Low bandwidth so it can take time to load...
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"Grace Sainsbury" <grace@.multimediatranscripts.com> wrote in message
news:jjtrc.173$Nb4.7551@.news20.bellglobal.com...
> Hi,
> I have developed a multi-frame web application with asp.net in c#. One
> frame
> contains an embedded windows media 9 player for playing .wmv files. While
> there is a file loaded in the player the other frames do not reliably
> refresh.
> Specifivally, if I try to refresh a page where I have overridden the
> Render
> method, IE will stall. My attempts to debug this seem to indicate that
> this
> stalling occurs before any code is excecuted. Refreshing the player frame
> allows the stalled frame to load properly. When no file is open in the
> player frame, everything works fine. This does not occur for asp.net pages
> that do not override the render method, or simple html pages.
> The page that causes this problem performs a SQL select in its render
> method. It seems that this does not occur if there is no select in Render.
> I have no idea what could be causing this. Any ideas would be greatly
> appreciated.
> thanks,
> Grace Sainsbury
>
"Vidar Petursson" <thekingYoUKnOwWhatToDoHEREeh@.icysoft.com> wrote in message news:<uAh2$I5
PEHA.2132@.TK2MSFTNGP11.phx.gbl>...
> Hi
> Perhaps because the file in the player is still loading?
> I did a test and no problems: http://213.190.104.211/
> P.S Low bandwidth so it can take time to load...
>
The problem occurs even when the entire file has been loaded -- i.e.
media pler is playing from its cache. With further experimentation, I
noticed that changing the focus away from IE, then returning causes
the refresh to complete.
thaks,
grace
Grace,
In my opinion I would try to duplicate the issue on another machine. This wo
uld eliminate your video and or system as a contributing factor. Is this for
Internet Explorer and if so which version are you using? I'm pretty certain
that the code running on the server is irrelevant unless the frame is hung
up while processing that frame.
Good Luck!
-Calvin Luttrell
ProjectThunder.com

> I have developed a multi-frame web application with asp.net in c#. One fra
me
> contains an embedded windows media 9 player for playing .wmv files. While
> there is a file loaded in the player the other frames do not reliably
> refresh.
>
> Specifivally, if I try to refresh a page where I have overridden the Rende
r
> method, IE will stall. My attempts to debug this seem to indicate that thi
s
> stalling occurs before any code is excecuted. Refreshing the player frame
> allows the stalled frame to load properly. When no file is open in the
> player frame, everything works fine. This does not occur for asp.net pages
> that do not override the render method, or simple html pages.
>
> The page that causes this problem performs a SQL select in its render
> method. It seems that this does not occur if there is no select in Render.
>
> I have no idea what could be causing this. Any ideas would be greatly
> appreciated.

Strange Behaviour

Hi,

I have developed a multi-frame web application with asp.net in c#. One frame
contains an embedded windows media 9 player for playing .wmv files. While
there is a file loaded in the player the other frames do not reliably
refresh.

Specifivally, if I try to refresh a page where I have overridden the Render
method, IE will stall. My attempts to debug this seem to indicate that this
stalling occurs before any code is excecuted. Refreshing the player frame
allows the stalled frame to load properly. When no file is open in the
player frame, everything works fine. This does not occur for asp.net pages
that do not override the render method, or simple html pages.

The page that causes this problem performs a SQL select in its render
method. It seems that this does not occur if there is no select in Render.

I have no idea what could be causing this. Any ideas would be greatly
appreciated.

thanks,

Grace SainsburyHi

Perhaps because the file in the player is still loading?
I did a test and no problems: http://213.190.104.211/

P.S Low bandwidth so it can take time to load...

--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"Grace Sainsbury" <grace@.multimediatranscripts.com> wrote in message
news:jjtrc.173$Nb4.7551@.news20.bellglobal.com...
> Hi,
> I have developed a multi-frame web application with asp.net in c#. One
> frame
> contains an embedded windows media 9 player for playing .wmv files. While
> there is a file loaded in the player the other frames do not reliably
> refresh.
> Specifivally, if I try to refresh a page where I have overridden the
> Render
> method, IE will stall. My attempts to debug this seem to indicate that
> this
> stalling occurs before any code is excecuted. Refreshing the player frame
> allows the stalled frame to load properly. When no file is open in the
> player frame, everything works fine. This does not occur for asp.net pages
> that do not override the render method, or simple html pages.
> The page that causes this problem performs a SQL select in its render
> method. It seems that this does not occur if there is no select in Render.
> I have no idea what could be causing this. Any ideas would be greatly
> appreciated.
> thanks,
> Grace Sainsbury
"Vidar Petursson" <thekingYoUKnOwWhatToDoHEREeh@.icysoft.com> wrote in message news:<uAh2$I5PEHA.2132@.TK2MSFTNGP11.phx.gbl>...
> Hi
> Perhaps because the file in the player is still loading?
> I did a test and no problems: http://213.190.104.211/
> P.S Low bandwidth so it can take time to load...

The problem occurs even when the entire file has been loaded -- i.e.
media pler is playing from its cache. With further experimentation, I
noticed that changing the focus away from IE, then returning causes
the refresh to complete.

thaks,

grace
Grace,

In my opinion I would try to duplicate the issue on another machine. This would eliminate your video and or system as a contributing factor. Is this for Internet Explorer and if so which version are you using? I'm pretty certain that the code running on the server is irrelevant unless the frame is hung up while processing that frame.

Good Luck!

-Calvin Luttrell
ProjectThunder.com

> I have developed a multi-frame web application with asp.net in c#. One frame
> contains an embedded windows media 9 player for playing .wmv files. While
> there is a file loaded in the player the other frames do not reliably
> refresh.
>
> Specifivally, if I try to refresh a page where I have overridden the Render
> method, IE will stall. My attempts to debug this seem to indicate that this
> stalling occurs before any code is excecuted. Refreshing the player frame
> allows the stalled frame to load properly. When no file is open in the
> player frame, everything works fine. This does not occur for asp.net pages
> that do not override the render method, or simple html pages.
>
> The page that causes this problem performs a SQL select in its render
> method. It seems that this does not occur if there is no select in Render.
>
> I have no idea what could be causing this. Any ideas would be greatly
> appreciated.

Strange behaviour of a dropdown list (again!)

I am steadily building up a full asp,net-based Web application.

I have a page within this application which has dropdownlist, data-bound to a query against the underlying database.

When I go there via the 'Interlink Button'on my home page, it fails, saying that the 'SelectCommand' has not ben activated.

However, when I go to it directly by selecting its URL in MSIE, it operates perfectly.

What is causing this anomaly?Looks like a problem with a DataAdapter somewhere, are you binding this dropdownlist with a dataset? Nothing is stopping you from doing this, but depending on the situation, it may be a little overkill. Have you tried just using a datareader?
There was a problem with file names, which I hadn't picked up.

It's working perfectly now.

Strange behaviour of Dropdownlists..

Hi All,
We have an application page that has several dropdownlists on it. Data enter
ed by the user is extracted from these dropdownlists is being stored in a MS
SQL database.
The problem is that the page works fine 99% of the time. However, there have
been cases where the selection on all dropdownlists has been reset to the f
irst item on the list. We have not been able to reproduce this error on our
development environment, bu
t the error continues to occur, albeit rarely.
Any inputs on this matter is greatly appreciated.
Thanks and Regards,
VamshiThank you for your response, Bruce.
However, I do not think that this error has anything to do with the use of t
he keyboard for input. What actually happens is that *all* dropdowns are bei
ng reinitialized to the first element on the list.
Just to be sure, I did try messing with the keyboard when the page was being
posted back, but was still unable to reproduce the error. Let me know if I'
m missing something.
Thanks and Regards,
Vamshi
-- bruce barker wrote: --
if any of the dropdowns are set for postback, you will have trouble if the
user uses the keyboard for entry (uparrow, drownarrow). you need to add
client code to disable the dropdown until the postback has completed.
-- bruce (sqlwork.com)
"Vamshi" <vamshi.ponnapalli@.analog.com> wrote in message
news:A4E6F089-8F9D-464A-B4CD-C5DB7D066B00@.microsoft.com...
> Hi All,
entered by the user is extracted from these dropdownlists is being stored in
a MS SQL database.
have been cases where the selection on all dropdownlists has been reset to
the first item on the list. We have not been able to reproduce this error on
our development environment, but the error continues to occur, albeit
rarely.
> Vamshi

Strange bug: application dies (partially) after restart

I did more investigation, and the problem is due to a deadlock (I 'm posting
the issue separately on the VJ# NG because it seems to be specific to J#).
The fact that it only seemed to happen after a hot restart was only a
coincidence. Since my initial post, we also saw the problem after a cold
start.

Bruno

"Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> a crit dans le message de
news:eFeXAEdFEHA.700@dotnet.itags.org.TK2MSFTNGP09.phx.gbl...
> Hi Alvin,
> Thanks for the reply. Our logs don't say anything. Looks like the stateful
> requests are not even delivered to the application any more because
> otherwise we would either be getting a response, or an exception (and we
log
> them all). But I need to attach a debugger to verify this and see what's
> really going on inside. So, I need to do more investigation on my side,
but
> I was wondering if somebody had experienced something similar.
> Bruno.
> "Alvin Bruney [MVP]" <vapor at steaming post office> a crit dans le
message
> de news:Ow$vzWaFEHA.576@dotnet.itags.org.TK2MSFTNGP11.phx.gbl...
> > The restart is key to having the application object be more robust. It's
> not
> > something that is going to get removed. You can clamor for an option
> switch
> > though which may turn it off.
> > What does your event logs say during these funny errors?
> > --
> > Regards,
> > Alvin Bruney [ASP.NET MVP]
> > Got tidbits? Get it here...
> > http://tinyurl.com/3he3b
> > "Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> wrote in message
> > news:O4ARZfWFEHA.2560@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> > > We are observing a strange phenomenon on our ASP .NET applications:
> > > > If the applications are cold started (after a server reboot or an II
> > > restart), they run for days without any problem.
> > > > But if they get restarted while IIS is running (because the web.config
> > file
> > > got modified, or because the DLLs got replaced by new ones), they run
ok
> > for
> > > a certain period (a few hours if the load is light, only a few minutes
> if
> > > the load is heavier) and then the server stops responding to some
> requests
> > > (seems like it continues to generate stateless pages, but does not
> > generate
> > > any stateful pages any more, but I have to investigate what is really
> > > happening in more details).
> > > > We observed this strange behavior on our two ASP .NET applications,
and
> on
> > > different servers. The applications are based on .NET Framework 1.1
and
> > > Visual J#.
> > > > This is not critical because we can restart IIS every time we modify
the
> > > config file or upgrade the DLLs but I'd like to understand what is
going
> > on.
> > > Did anyone else experience a similar problem? Is there a fix?
> > > > Also, it would be great if there was a way to prevent ASP NET from
> > > restarting the application every time the config file or the DLLs are
> > > modified. Some programs (anti-virus, backup) change the last access
time
> > on
> > > these files and they cause an application restart (accessing the file
is
> > all
> > > it takes, the application restarts even if the files are not
modified),
> > > which is very annoying (especially if the application stops responding
> > > afterwards, as described above).
> > > This automatic restart feature is nice during development but I don't
> find
> > > it so nice on a production server because I don't like the idea of
> having
> > a
> > > Web App restart because some background maintenance task is touching
its
> > > files. Does anybody know how to prevent this?
> > > > Bruno.
> >Hi Bruno,

Thanks for your followup. I'm glad that you've firgured out the problem.
Since the problem is specific to J#, have you found any means to workaround
it? Hope you'll soon thoroughly resolve this problem. If there is anything
I can help, please feel free to post here.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 Steven,

The problem is in the J# Date, SimpleDateFormat and TimeZone classes.
Synchronization seems to be seriously broken and I have a number of
tracebacks and a small repro that demonstrate this (I'm going to post more
stuff on the J# newsgroup).

First, I have tried to fix it by synchronizing around a global object before
calling these JDK methods. But this only works if I have one application
hosted in aspnet_wp.exe. With 2 applications, I get deadlocks between
threads from the 2 apps (very weird, I have posted more details on this one
on microsoft.public.dotnet.vjsharp).

So, I am in the process of recoding all our date and time stuff with the
..NET APIs. This should fix it, and it should also be faster (fortunately, we
had our own Date and Timestamp classes and everything is encapsulated there,
so the recoding is very local).

BTW: The .NET stuff is very good overall but it is rather poor when it comes
to TimeZones. .NET only knows about the machine's timezone and UTC time.
This is not enough for a server app where you want every user to see and
input dates and times formatted in his own timezome. I posted a suggestion
on the Whidbey NG to get extensions to this: APIs to enumerate time zones,
find them by name, and also a "thread" variable that would keep track of the
current timezone and influence the way DateTime are interpreted in the
current thread (something like TimeZone.CurrentTimeZone that would work very
much like CultureInfo.CurrentCulture). I'm repeating it here because I think
that this is a real hole in the .NET API, and an API like that would make my
life easier.

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:Y7LgaErGEHA.3244@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. I'm glad that you've firgured out the problem.
> Since the problem is specific to J#, have you found any means to
workaround
> it? Hope you'll soon thoroughly resolve this problem. If there is anything
> I can help, please feel free to post here.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 Bruno,

Thanks for your followup. Since you mentioned that you've generated a small
repro, I think it'll be helpful if you can make the repro contains the
necessary stuffs and attached it to us. Also a definite repro steps is also
necessary, thus, we can try to do some indepth research on ourside.

In addtion, I also have met the TimeZone problems of the .NET framework
classes before since it doesn't provide enought interfaces to process
TimeZone with client cultureinfo. Sometimes we even need to build our own
custom LookUp Table to mapping cultureinfo with certain TimeZone info.
Anyway, we'll also forward this suggestion to the related production team.
Hope it will soon be improved in the following release. 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 Steven,

I have posted the repro on the microsoft.public.dotnet.vjsharp NG because it
is really specific to J#.

I will also post some tracebacks of other deadlocks that I got on the J# NG
but I'll do it later because I don't have time to format and explain them
right now.

The deadlock that I have posted is really very very simple: one thread calls
TimeZone.getDefault() and the other one calls Calendar.getInstance(), and
they manage to deadlock each other (not always but at least one run out of
4).

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:MU4eTS7GEHA.2224@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. Since you mentioned that you've generated a
small
> repro, I think it'll be helpful if you can make the repro contains the
> necessary stuffs and attached it to us. Also a definite repro steps is
also
> necessary, thus, we can try to do some indepth research on ourside.
> In addtion, I also have met the TimeZone problems of the .NET framework
> classes before since it doesn't provide enought interfaces to process
> TimeZone with client cultureinfo. Sometimes we even need to build our own
> custom LookUp Table to mapping cultureinfo with certain TimeZone info.
> Anyway, we'll also forward this suggestion to the related production team.
> Hope it will soon be improved in the following release. 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 Bruno,

Thanks for your reply. From your further description, I've got that the
problem is specific to J#. And I hope you'll soon resolve the problem.
Also, if you think there is anything we still can help, please feel free
post here or mail me via the mail address in my signature(remove the
"online"). 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 bug: application dies (partially) after restart

I did more investigation, and the problem is due to a deadlock (I 'm posting
the issue separately on the VJ# NG because it seems to be specific to J#).
The fact that it only seemed to happen after a hot restart was only a
coincidence. Since my initial post, we also saw the problem after a cold
start.

Bruno

"Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> a crit dans le message de
news:eFeXAEdFEHA.700@dotnet.itags.org.TK2MSFTNGP09.phx.gbl...
> Hi Alvin,
> Thanks for the reply. Our logs don't say anything. Looks like the stateful
> requests are not even delivered to the application any more because
> otherwise we would either be getting a response, or an exception (and we
log
> them all). But I need to attach a debugger to verify this and see what's
> really going on inside. So, I need to do more investigation on my side,
but
> I was wondering if somebody had experienced something similar.
> Bruno.
> "Alvin Bruney [MVP]" <vapor at steaming post office> a crit dans le
message
> de news:Ow$vzWaFEHA.576@dotnet.itags.org.TK2MSFTNGP11.phx.gbl...
> > The restart is key to having the application object be more robust. It's
> not
> > something that is going to get removed. You can clamor for an option
> switch
> > though which may turn it off.
> > What does your event logs say during these funny errors?
> > --
> > Regards,
> > Alvin Bruney [ASP.NET MVP]
> > Got tidbits? Get it here...
> > http://tinyurl.com/3he3b
> > "Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> wrote in message
> > news:O4ARZfWFEHA.2560@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> > > We are observing a strange phenomenon on our ASP .NET applications:
> > > > If the applications are cold started (after a server reboot or an II
> > > restart), they run for days without any problem.
> > > > But if they get restarted while IIS is running (because the web.config
> > file
> > > got modified, or because the DLLs got replaced by new ones), they run
ok
> > for
> > > a certain period (a few hours if the load is light, only a few minutes
> if
> > > the load is heavier) and then the server stops responding to some
> requests
> > > (seems like it continues to generate stateless pages, but does not
> > generate
> > > any stateful pages any more, but I have to investigate what is really
> > > happening in more details).
> > > > We observed this strange behavior on our two ASP .NET applications,
and
> on
> > > different servers. The applications are based on .NET Framework 1.1
and
> > > Visual J#.
> > > > This is not critical because we can restart IIS every time we modify
the
> > > config file or upgrade the DLLs but I'd like to understand what is
going
> > on.
> > > Did anyone else experience a similar problem? Is there a fix?
> > > > Also, it would be great if there was a way to prevent ASP NET from
> > > restarting the application every time the config file or the DLLs are
> > > modified. Some programs (anti-virus, backup) change the last access
time
> > on
> > > these files and they cause an application restart (accessing the file
is
> > all
> > > it takes, the application restarts even if the files are not
modified),
> > > which is very annoying (especially if the application stops responding
> > > afterwards, as described above).
> > > This automatic restart feature is nice during development but I don't
> find
> > > it so nice on a production server because I don't like the idea of
> having
> > a
> > > Web App restart because some background maintenance task is touching
its
> > > files. Does anybody know how to prevent this?
> > > > Bruno.
> >Hi Bruno,

Thanks for your followup. I'm glad that you've firgured out the problem.
Since the problem is specific to J#, have you found any means to workaround
it? Hope you'll soon thoroughly resolve this problem. If there is anything
I can help, please feel free to post here.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 Steven,

The problem is in the J# Date, SimpleDateFormat and TimeZone classes.
Synchronization seems to be seriously broken and I have a number of
tracebacks and a small repro that demonstrate this (I'm going to post more
stuff on the J# newsgroup).

First, I have tried to fix it by synchronizing around a global object before
calling these JDK methods. But this only works if I have one application
hosted in aspnet_wp.exe. With 2 applications, I get deadlocks between
threads from the 2 apps (very weird, I have posted more details on this one
on microsoft.public.dotnet.vjsharp).

So, I am in the process of recoding all our date and time stuff with the
..NET APIs. This should fix it, and it should also be faster (fortunately, we
had our own Date and Timestamp classes and everything is encapsulated there,
so the recoding is very local).

BTW: The .NET stuff is very good overall but it is rather poor when it comes
to TimeZones. .NET only knows about the machine's timezone and UTC time.
This is not enough for a server app where you want every user to see and
input dates and times formatted in his own timezome. I posted a suggestion
on the Whidbey NG to get extensions to this: APIs to enumerate time zones,
find them by name, and also a "thread" variable that would keep track of the
current timezone and influence the way DateTime are interpreted in the
current thread (something like TimeZone.CurrentTimeZone that would work very
much like CultureInfo.CurrentCulture). I'm repeating it here because I think
that this is a real hole in the .NET API, and an API like that would make my
life easier.

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:Y7LgaErGEHA.3244@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. I'm glad that you've firgured out the problem.
> Since the problem is specific to J#, have you found any means to
workaround
> it? Hope you'll soon thoroughly resolve this problem. If there is anything
> I can help, please feel free to post here.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 Steven,

The problem is in the J# Date, SimpleDateFormat and TimeZone classes.
Synchronization seems to be seriously broken and I have a number of
tracebacks and a small repro that demonstrate this (I'm going to post more
stuff on the J# newsgroup).

First, I have tried to fix it by synchronizing around a global object before
calling these JDK methods. But this only works if I have one application
hosted in aspnet_wp.exe. With 2 applications, I get deadlocks between
threads from the 2 apps (very weird, I have posted more details on this one
on microsoft.public.dotnet.vjsharp).

So, I am in the process of recoding all our date and time stuff with the
..NET APIs. This should fix it, and it should also be faster (fortunately, we
had our own Date and Timestamp classes and everything is encapsulated there,
so the recoding is very local).

BTW: The .NET stuff is very good overall but it is rather poor when it comes
to TimeZones. .NET only knows about the machine's timezone and UTC time.
This is not enough for a server app where you want every user to see and
input dates and times formatted in his own timezome. I posted a suggestion
on the Whidbey NG to get extensions to this: APIs to enumerate time zones,
find them by name, and also a "thread" variable that would keep track of the
current timezone and influence the way DateTime are interpreted in the
current thread (something like TimeZone.CurrentTimeZone that would work very
much like CultureInfo.CurrentCulture). I'm repeating it here because I think
that this is a real hole in the .NET API, and an API like that would make my
life easier.

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:Y7LgaErGEHA.3244@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. I'm glad that you've firgured out the problem.
> Since the problem is specific to J#, have you found any means to
workaround
> it? Hope you'll soon thoroughly resolve this problem. If there is anything
> I can help, please feel free to post here.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 Bruno,

Thanks for your followup. Since you mentioned that you've generated a small
repro, I think it'll be helpful if you can make the repro contains the
necessary stuffs and attached it to us. Also a definite repro steps is also
necessary, thus, we can try to do some indepth research on ourside.

In addtion, I also have met the TimeZone problems of the .NET framework
classes before since it doesn't provide enought interfaces to process
TimeZone with client cultureinfo. Sometimes we even need to build our own
custom LookUp Table to mapping cultureinfo with certain TimeZone info.
Anyway, we'll also forward this suggestion to the related production team.
Hope it will soon be improved in the following release. 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 Bruno,

Thanks for your followup. Since you mentioned that you've generated a small
repro, I think it'll be helpful if you can make the repro contains the
necessary stuffs and attached it to us. Also a definite repro steps is also
necessary, thus, we can try to do some indepth research on ourside.

In addtion, I also have met the TimeZone problems of the .NET framework
classes before since it doesn't provide enought interfaces to process
TimeZone with client cultureinfo. Sometimes we even need to build our own
custom LookUp Table to mapping cultureinfo with certain TimeZone info.
Anyway, we'll also forward this suggestion to the related production team.
Hope it will soon be improved in the following release. 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 Steven,

I have posted the repro on the microsoft.public.dotnet.vjsharp NG because it
is really specific to J#.

I will also post some tracebacks of other deadlocks that I got on the J# NG
but I'll do it later because I don't have time to format and explain them
right now.

The deadlock that I have posted is really very very simple: one thread calls
TimeZone.getDefault() and the other one calls Calendar.getInstance(), and
they manage to deadlock each other (not always but at least one run out of
4).

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:MU4eTS7GEHA.2224@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. Since you mentioned that you've generated a
small
> repro, I think it'll be helpful if you can make the repro contains the
> necessary stuffs and attached it to us. Also a definite repro steps is
also
> necessary, thus, we can try to do some indepth research on ourside.
> In addtion, I also have met the TimeZone problems of the .NET framework
> classes before since it doesn't provide enought interfaces to process
> TimeZone with client cultureinfo. Sometimes we even need to build our own
> custom LookUp Table to mapping cultureinfo with certain TimeZone info.
> Anyway, we'll also forward this suggestion to the related production team.
> Hope it will soon be improved in the following release. 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 Steven,

I have posted the repro on the microsoft.public.dotnet.vjsharp NG because it
is really specific to J#.

I will also post some tracebacks of other deadlocks that I got on the J# NG
but I'll do it later because I don't have time to format and explain them
right now.

The deadlock that I have posted is really very very simple: one thread calls
TimeZone.getDefault() and the other one calls Calendar.getInstance(), and
they manage to deadlock each other (not always but at least one run out of
4).

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:MU4eTS7GEHA.2224@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. Since you mentioned that you've generated a
small
> repro, I think it'll be helpful if you can make the repro contains the
> necessary stuffs and attached it to us. Also a definite repro steps is
also
> necessary, thus, we can try to do some indepth research on ourside.
> In addtion, I also have met the TimeZone problems of the .NET framework
> classes before since it doesn't provide enought interfaces to process
> TimeZone with client cultureinfo. Sometimes we even need to build our own
> custom LookUp Table to mapping cultureinfo with certain TimeZone info.
> Anyway, we'll also forward this suggestion to the related production team.
> Hope it will soon be improved in the following release. 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 Bruno,

Thanks for your reply. From your further description, I've got that the
problem is specific to J#. And I hope you'll soon resolve the problem.
Also, if you think there is anything we still can help, please feel free
post here or mail me via the mail address in my signature(remove the
"online"). 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 Bruno,

Thanks for your reply. From your further description, I've got that the
problem is specific to J#. And I hope you'll soon resolve the problem.
Also, if you think there is anything we still can help, please feel free
post here or mail me via the mail address in my signature(remove the
"online"). 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 bug: application dies (partially) after restart

I did more investigation, and the problem is due to a deadlock (I 'm posting
the issue separately on the VJ# NG because it seems to be specific to J#).
The fact that it only seemed to happen after a hot restart was only a
coincidence. Since my initial post, we also saw the problem after a cold
start.

Bruno

"Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> a crit dans le message de
news:eFeXAEdFEHA.700@dotnet.itags.org.TK2MSFTNGP09.phx.gbl...
> Hi Alvin,
> Thanks for the reply. Our logs don't say anything. Looks like the stateful
> requests are not even delivered to the application any more because
> otherwise we would either be getting a response, or an exception (and we
log
> them all). But I need to attach a debugger to verify this and see what's
> really going on inside. So, I need to do more investigation on my side,
but
> I was wondering if somebody had experienced something similar.
> Bruno.
> "Alvin Bruney [MVP]" <vapor at steaming post office> a crit dans le
message
> de news:Ow$vzWaFEHA.576@dotnet.itags.org.TK2MSFTNGP11.phx.gbl...
> > The restart is key to having the application object be more robust. It's
> not
> > something that is going to get removed. You can clamor for an option
> switch
> > though which may turn it off.
> > What does your event logs say during these funny errors?
> > --
> > Regards,
> > Alvin Bruney [ASP.NET MVP]
> > Got tidbits? Get it here...
> > http://tinyurl.com/3he3b
> > "Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> wrote in message
> > news:O4ARZfWFEHA.2560@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> > > We are observing a strange phenomenon on our ASP .NET applications:
> > > > If the applications are cold started (after a server reboot or an II
> > > restart), they run for days without any problem.
> > > > But if they get restarted while IIS is running (because the web.config
> > file
> > > got modified, or because the DLLs got replaced by new ones), they run
ok
> > for
> > > a certain period (a few hours if the load is light, only a few minutes
> if
> > > the load is heavier) and then the server stops responding to some
> requests
> > > (seems like it continues to generate stateless pages, but does not
> > generate
> > > any stateful pages any more, but I have to investigate what is really
> > > happening in more details).
> > > > We observed this strange behavior on our two ASP .NET applications,
and
> on
> > > different servers. The applications are based on .NET Framework 1.1
and
> > > Visual J#.
> > > > This is not critical because we can restart IIS every time we modify
the
> > > config file or upgrade the DLLs but I'd like to understand what is
going
> > on.
> > > Did anyone else experience a similar problem? Is there a fix?
> > > > Also, it would be great if there was a way to prevent ASP NET from
> > > restarting the application every time the config file or the DLLs are
> > > modified. Some programs (anti-virus, backup) change the last access
time
> > on
> > > these files and they cause an application restart (accessing the file
is
> > all
> > > it takes, the application restarts even if the files are not
modified),
> > > which is very annoying (especially if the application stops responding
> > > afterwards, as described above).
> > > This automatic restart feature is nice during development but I don't
> find
> > > it so nice on a production server because I don't like the idea of
> having
> > a
> > > Web App restart because some background maintenance task is touching
its
> > > files. Does anybody know how to prevent this?
> > > > Bruno.
> >Hi Bruno,

Thanks for your followup. I'm glad that you've firgured out the problem.
Since the problem is specific to J#, have you found any means to workaround
it? Hope you'll soon thoroughly resolve this problem. If there is anything
I can help, please feel free to post here.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 Steven,

The problem is in the J# Date, SimpleDateFormat and TimeZone classes.
Synchronization seems to be seriously broken and I have a number of
tracebacks and a small repro that demonstrate this (I'm going to post more
stuff on the J# newsgroup).

First, I have tried to fix it by synchronizing around a global object before
calling these JDK methods. But this only works if I have one application
hosted in aspnet_wp.exe. With 2 applications, I get deadlocks between
threads from the 2 apps (very weird, I have posted more details on this one
on microsoft.public.dotnet.vjsharp).

So, I am in the process of recoding all our date and time stuff with the
..NET APIs. This should fix it, and it should also be faster (fortunately, we
had our own Date and Timestamp classes and everything is encapsulated there,
so the recoding is very local).

BTW: The .NET stuff is very good overall but it is rather poor when it comes
to TimeZones. .NET only knows about the machine's timezone and UTC time.
This is not enough for a server app where you want every user to see and
input dates and times formatted in his own timezome. I posted a suggestion
on the Whidbey NG to get extensions to this: APIs to enumerate time zones,
find them by name, and also a "thread" variable that would keep track of the
current timezone and influence the way DateTime are interpreted in the
current thread (something like TimeZone.CurrentTimeZone that would work very
much like CultureInfo.CurrentCulture). I'm repeating it here because I think
that this is a real hole in the .NET API, and an API like that would make my
life easier.

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:Y7LgaErGEHA.3244@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. I'm glad that you've firgured out the problem.
> Since the problem is specific to J#, have you found any means to
workaround
> it? Hope you'll soon thoroughly resolve this problem. If there is anything
> I can help, please feel free to post here.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 Bruno,

Thanks for your followup. Since you mentioned that you've generated a small
repro, I think it'll be helpful if you can make the repro contains the
necessary stuffs and attached it to us. Also a definite repro steps is also
necessary, thus, we can try to do some indepth research on ourside.

In addtion, I also have met the TimeZone problems of the .NET framework
classes before since it doesn't provide enought interfaces to process
TimeZone with client cultureinfo. Sometimes we even need to build our own
custom LookUp Table to mapping cultureinfo with certain TimeZone info.
Anyway, we'll also forward this suggestion to the related production team.
Hope it will soon be improved in the following release. 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 Steven,

I have posted the repro on the microsoft.public.dotnet.vjsharp NG because it
is really specific to J#.

I will also post some tracebacks of other deadlocks that I got on the J# NG
but I'll do it later because I don't have time to format and explain them
right now.

The deadlock that I have posted is really very very simple: one thread calls
TimeZone.getDefault() and the other one calls Calendar.getInstance(), and
they manage to deadlock each other (not always but at least one run out of
4).

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:MU4eTS7GEHA.2224@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. Since you mentioned that you've generated a
small
> repro, I think it'll be helpful if you can make the repro contains the
> necessary stuffs and attached it to us. Also a definite repro steps is
also
> necessary, thus, we can try to do some indepth research on ourside.
> In addtion, I also have met the TimeZone problems of the .NET framework
> classes before since it doesn't provide enought interfaces to process
> TimeZone with client cultureinfo. Sometimes we even need to build our own
> custom LookUp Table to mapping cultureinfo with certain TimeZone info.
> Anyway, we'll also forward this suggestion to the related production team.
> Hope it will soon be improved in the following release. 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 Bruno,

Thanks for your reply. From your further description, I've got that the
problem is specific to J#. And I hope you'll soon resolve the problem.
Also, if you think there is anything we still can help, please feel free
post here or mail me via the mail address in my signature(remove the
"online"). 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 bug: application dies (partially) after restart

We are observing a strange phenomenon on our ASP .NET applications:
If the applications are cold started (after a server reboot or an II
restart), they run for days without any problem.
But if they get restarted while IIS is running (because the web.config file
got modified, or because the DLLs got replaced by new ones), they run ok for
a certain period (a few hours if the load is light, only a few minutes if
the load is heavier) and then the server stops responding to some requests
(seems like it continues to generate stateless pages, but does not generate
any stateful pages any more, but I have to investigate what is really
happening in more details).
We observed this strange behavior on our two ASP .NET applications, and on
different servers. The applications are based on .NET Framework 1.1 and
Visual J#.
This is not critical because we can restart IIS every time we modify the
config file or upgrade the DLLs but I'd like to understand what is going on.
Did anyone else experience a similar problem? Is there a fix?
Also, it would be great if there was a way to prevent ASP NET from
restarting the application every time the config file or the DLLs are
modified. Some programs (anti-virus, backup) change the last access time on
these files and they cause an application restart (accessing the file is all
it takes, the application restarts even if the files are not modified),
which is very annoying (especially if the application stops responding
afterwards, as described above).
This automatic restart feature is nice during development but I don't find
it so nice on a production server because I don't like the idea of having a
Web App restart because some background maintenance task is touching its
files. Does anybody know how to prevent this?
Bruno.The restart is key to having the application object be more robust. It's not
something that is going to get removed. You can clamor for an option switch
though which may turn it off.
What does your event logs say during these funny errors?
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Bruno Jouhier [MVP]" <bjouhier@.club-internet.fr> wrote in message
news:O4ARZfWFEHA.2560@.TK2MSFTNGP12.phx.gbl...
> We are observing a strange phenomenon on our ASP .NET applications:
> If the applications are cold started (after a server reboot or an II
> restart), they run for days without any problem.
> But if they get restarted while IIS is running (because the web.config
file
> got modified, or because the DLLs got replaced by new ones), they run ok
for
> a certain period (a few hours if the load is light, only a few minutes if
> the load is heavier) and then the server stops responding to some requests
> (seems like it continues to generate stateless pages, but does not
generate
> any stateful pages any more, but I have to investigate what is really
> happening in more details).
> We observed this strange behavior on our two ASP .NET applications, and on
> different servers. The applications are based on .NET Framework 1.1 and
> Visual J#.
> This is not critical because we can restart IIS every time we modify the
> config file or upgrade the DLLs but I'd like to understand what is going
on.
> Did anyone else experience a similar problem? Is there a fix?
> Also, it would be great if there was a way to prevent ASP NET from
> restarting the application every time the config file or the DLLs are
> modified. Some programs (anti-virus, backup) change the last access time
on
> these files and they cause an application restart (accessing the file is
all
> it takes, the application restarts even if the files are not modified),
> which is very annoying (especially if the application stops responding
> afterwards, as described above).
> This automatic restart feature is nice during development but I don't find
> it so nice on a production server because I don't like the idea of having
a
> Web App restart because some background maintenance task is touching its
> files. Does anybody know how to prevent this?
> Bruno.
>
Hi Alvin,
Thanks for the reply. Our logs don't say anything. Looks like the stateful
requests are not even delivered to the application any more because
otherwise we would either be getting a response, or an exception (and we log
them all). But I need to attach a debugger to verify this and see what's
really going on inside. So, I need to do more investigation on my side, but
I was wondering if somebody had experienced something similar.
Bruno.
"Alvin Bruney [MVP]" <vapor at steaming post office> a crit dans le mes
sage
de news:Ow$vzWaFEHA.576@.TK2MSFTNGP11.phx.gbl...
> The restart is key to having the application object be more robust. It's
not
> something that is going to get removed. You can clamor for an option
switch
> though which may turn it off.
> What does your event logs say during these funny errors?
> --
> Regards,
> Alvin Bruney [ASP.NET MVP]
> Got tidbits? Get it here...
> http://tinyurl.com/3he3b
> "Bruno Jouhier [MVP]" <bjouhier@.club-internet.fr> wrote in message
> news:O4ARZfWFEHA.2560@.TK2MSFTNGP12.phx.gbl...
> file
> for
if
requests
> generate
on
> on.
> on
> all
find
having
> a
>
Hi Alvin,
From the symptom you described, the problem only occured after the ASP.NET
application recycled at runtime and concerned with those stateful pages?
Does the "Stateful page" you mentioned means "posted back" page or in other
word, the posted back requests no longer be processed after the recycling?
I'm wondering whether this problem also occur if you make a simple web
application on the same server. If not occur, we can isolate the problem on
the certain application and some further throubshooting are needed.
Also, I recommend that you add some trace code in those page(suffering the
problem)'s code , such as write some debug info into a custom log file in
different events of the page. Thus, it'll help to confirm when the problem
acually happend.
Any way, if you have any newfindings or updates, please feel free to post
here. 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 Steve,
The pages that seem affected are all the pages that have a "session state".
Our server is generating both stateless (no session) and stateful (session)
pages. And it looks like the stateless pages continue to be generated ok but
the stateful ones don't.
Unfortunately, this is a pretty big application and I cannot send you a
repro sample at this point. Also, this is an unusual ASP .NET application
because we interface directly with System.Web and we use a proprietary
rendering engine (we don't use the ASP .NET resources/controls -- we have
special requirements, for example the ability to modify the theme/layout of
the pages at run-time). So, the bug may show up in our case but not in
standard ASP .NET.
What I find really strange is that there is a difference between a cold
start and a hot restart (when the config file or the DLLs are touched). In
the first case, the app works ok, and in the second case it has serious
problems. I was expecting the hot restart to start the application in the
same state as a cold start (basically with a clean AppDomain) but this does
not seem to be completely true.
Anyway, I need to do some more research (reproducing the production server
behavior on dev machines, adding logs, investigating with debugger) to
understand what is really going on. I'll let you know what I find. My post
was more to see if someone else had experienced a similar behavior or had a
quick answer, to avoid some time consuming investigations.
Bruno.
"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le mes
sage
de news:kMlMDUgFEHA.1160@.cpmsftngxa06.phx.gbl...
> Hi Alvin,
> From the symptom you described, the problem only occured after the ASP.NET
> application recycled at runtime and concerned with those stateful pages?
> Does the "Stateful page" you mentioned means "posted back" page or in
other
> word, the posted back requests no longer be processed after the recycling?
> I'm wondering whether this problem also occur if you make a simple web
> application on the same server. If not occur, we can isolate the problem
on
> the certain application and some further throubshooting are needed.
> Also, I recommend that you add some trace code in those page(suffering the
> problem)'s code , such as write some debug info into a custom log file in
> different events of the page. Thus, it'll help to confirm when the problem
> acually happend.
> Any way, if you have any newfindings or updates, please feel free to post
> here. 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
>
I did more investigation, and the problem is due to a deadlock (I 'm posting
the issue separately on the VJ# NG because it seems to be specific to J#).
The fact that it only seemed to happen after a hot restart was only a
coincidence. Since my initial post, we also saw the problem after a cold
start.
Bruno
"Bruno Jouhier [MVP]" <bjouhier@.club-internet.fr> a crit dans le messag
e de
news:eFeXAEdFEHA.700@.TK2MSFTNGP09.phx.gbl...
> Hi Alvin,
> Thanks for the reply. Our logs don't say anything. Looks like the stateful
> requests are not even delivered to the application any more because
> otherwise we would either be getting a response, or an exception (and we
log
> them all). But I need to attach a debugger to verify this and see what's
> really going on inside. So, I need to do more investigation on my side,
but
> I was wondering if somebody had experienced something similar.
> Bruno.
> "Alvin Bruney [MVP]" <vapor at steaming post office> a crit dans le
message
> de news:Ow$vzWaFEHA.576@.TK2MSFTNGP11.phx.gbl...
> not
> switch
ok
> if
> requests
and
> on
and
the
going
time
is
modified),
> find
> having
its
>
Hi Bruno,
Thanks for your followup. I'm glad that you've firgured out the problem.
Since the problem is specific to J#, have you found any means to workaround
it? Hope you'll soon thoroughly resolve this problem. If there is anything
I can help, please feel free to post here.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 Steven,
The problem is in the J# Date, SimpleDateFormat and TimeZone classes.
Synchronization seems to be seriously broken and I have a number of
tracebacks and a small repro that demonstrate this (I'm going to post more
stuff on the J# newsgroup).
First, I have tried to fix it by synchronizing around a global object before
calling these JDK methods. But this only works if I have one application
hosted in aspnet_wp.exe. With 2 applications, I get deadlocks between
threads from the 2 apps (very weird, I have posted more details on this one
on microsoft.public.dotnet.vjsharp).
So, I am in the process of recoding all our date and time stuff with the
.NET APIs. This should fix it, and it should also be faster (fortunately, w
e
had our own Date and Timestamp classes and everything is encapsulated there,
so the recoding is very local).
BTW: The .NET stuff is very good overall but it is rather poor when it comes
to TimeZones. .NET only knows about the machine's timezone and UTC time.
This is not enough for a server app where you want every user to see and
input dates and times formatted in his own timezome. I posted a suggestion
on the Whidbey NG to get extensions to this: APIs to enumerate time zones,
find them by name, and also a "thread" variable that would keep track of the
current timezone and influence the way DateTime are interpreted in the
current thread (something like TimeZone.CurrentTimeZone that would work very
much like CultureInfo.CurrentCulture). I'm repeating it here because I think
that this is a real hole in the .NET API, and an API like that would make my
life easier.
Bruno.
"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le mes
sage
de news:Y7LgaErGEHA.3244@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. I'm glad that you've firgured out the problem.
> Since the problem is specific to J#, have you found any means to
workaround
> it? Hope you'll soon thoroughly resolve this problem. If there is anything
> I can help, please feel free to post here.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 Steven,
I have posted the repro on the microsoft.public.dotnet.vjsharp NG because it
is really specific to J#.
I will also post some tracebacks of other deadlocks that I got on the J# NG
but I'll do it later because I don't have time to format and explain them
right now.
The deadlock that I have posted is really very very simple: one thread calls
TimeZone.getDefault() and the other one calls Calendar.getInstance(), and
they manage to deadlock each other (not always but at least one run out of
4).
Bruno.
"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le mes
sage
de news:MU4eTS7GEHA.2224@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. Since you mentioned that you've generated a
small
> repro, I think it'll be helpful if you can make the repro contains the
> necessary stuffs and attached it to us. Also a definite repro steps is
also
> necessary, thus, we can try to do some indepth research on ourside.
> In addtion, I also have met the TimeZone problems of the .NET framework
> classes before since it doesn't provide enought interfaces to process
> TimeZone with client cultureinfo. Sometimes we even need to build our own
> custom LookUp Table to mapping cultureinfo with certain TimeZone info.
> Anyway, we'll also forward this suggestion to the related production team.
> Hope it will soon be improved in the following release. 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 Bruno,
Thanks for your reply. From your further description, I've got that the
problem is specific to J#. And I hope you'll soon resolve the problem.
Also, if you think there is anything we still can help, please feel free
post here or mail me via the mail address in my signature(remove the
"online"). 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 character [Â] appearing in file.

Hi All,

I have an ASP.NET application which opens a text file and then saves it again.
This saved file is then passed into another software suite (not ASP.NET) for processing.
This secondary suite expects the lines in the file to be a certain length (legacy).

All text is transferred between the files correctly, except for where a uk pound sign [£] appears in the original file.

This character is NOT transferredusing the default StreamReader/Writer.

I havetriedchanging the encoding of both the StreamReader and the StreamWriter butcannot find one which does the job as expected, changing the reader toASCII and leaving the default writer is the closest but not withoutissues.
Where thiscondition occurs, the resulting saved file, in the place where theoriginal pound sign was displayed shows 2 (!) characters ?£.

This extra ? [alt + 0194] character is not seen by Notepad, not visiblewhen debugging, but is there, as it affects the fixed length recordprocessing mentioned above, and can be seen in other text editors suchas Wordpad, DocPad etc.

Please help, this is causing some despair!

Thanks and Regards,
Ric

The following code sample demonstrates my point...
[A file c:\testInput.txt is also required with a line in it that contains a £ sign]
eg. 111111111111111£1111111111
[A file c:\testOutput.txt is created to demonstrate the point.]

Sub Main()

'file access vars
Dim fsRead As FileStream
Dim fsWrite As FileStream
Dim sr As StreamReader
Dim sw As StreamWriter

'The file to read from
Dim inputFile As String = "c:\testInput.txt"
Dim outputFile As String = "c:\testOutput.txt"

'Create the FileStream : INPUT
Try
fsRead = New FileStream(inputFile, FileMode.Open, FileAccess.Read,FileShare.Read)
Catch ex As Exception
End Try

'Create the StreamReader
Try
sr = New StreamReader(fsRead, System.Text.Encoding.ASCII)
Catch ex As Exception
End Try

'Create the FileStream : OUTPUT
Try
fsWrite = New FileStream(outputFile, FileMode.OpenOrCreate,FileAccess.Write, FileShare.ReadWrite)
Catch ex As Exception
End Try

'Create the StreamWriter
Try
sw = New StreamWriter(fsWrite)
Catch ex As Exception
End Try

Dim s As String
Dim replaced As String
While sr.Peek <> -1

'read a line form the input file
s = sr.ReadLine()

'substitute the misread ? characters into £ signs
replaced = Replace(s, "?", "£")

'move to the end of the file
sw.BaseStream.Seek(0, SeekOrigin.End)

'and write the string to the output file
sw.Write(replaced & vbCrLf)

End While

'Clear up...
Try
sw.Flush()
sw.Close()
fsWrite.Close()

sr.Close()
fsRead.Close()

Catch ex As Exception
End Try

'and dispose
sw = Nothing
sr = Nothing
fsRead = Nothing
fsWrite = Nothing

End Sub

Solution:

When reading/writing plain text files using file streams on a Windows box you should specify an Encoding.

The Encoding can be created using the following code:
[1252 is the Western Windows codepage]

Dim encAs System.Text.Encoding
enc = System.Text.Encoding.GetEncoding(1252)

You can then specify this encoding to be used when creating the StreamReader/StreamWriter.

All characters (even the uk pound sign £) will then be correctly read/written by the streams.

Hope this helps,
Ric

Strange compile problem

I am compiling a simple application and am getting these types of errors:

Type 'EventArgs' is not defined.
Type 'Exception' is not defined.
Type 'Int32' is not defined.
Type 'Type' is not defined.
Name 'Convert' is not declared.

It seems as if the compiler is not including the System.dll (which is obviously referenced in the project). I have tried deleting the bin directory and removing the cache, but nothing helps.

Any ideas?

Thanks,

AndrewLooks like one of the System.* is missing, but is very difficult to tell which one
It looks to me like you haven't declared that you are using the System namespace at the top of your file:

using System;

I have the following references showing:
System
System.Data
System.Design
System.Drawing
System.Web
System.Windows.Forms
System.XML
No, that is not required in vb.

Andrew

Monday, March 26, 2012

Strange css problem (bug?)

Hi,
I'm developing a asp.net application and ran into a strange css problem.
I want all my links to have a dashed underline and when they are
hovered, it must change to a solid line. Sounds simple, but it's not
working.
I've cooked down my output code to show you what I mean. If you run the
code below, there's no line under the link, but if you either remove the
<!DOCTYPE...> line or the body-part of the css decleration, everything
works fine.
Here's my code (watch for wrappings):
---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Strange</title>
<style>
<!--
body
{
font-family: verdana, arial, helvetica, sans-serif;
}
a:link, a:visited
{
font-family: verdana, arial, helvetica, sans-serif;
color: #d32525;
border-bottom: 1px dashed #d32525;
text-decoration: none;
}
a:hover
{
font-family: verdana, arial, helvetica, sans-serif;
color: #d32525;
border-bottom: 1px solid #d32525;
text-decoration: none;
}
-->
</style>
</head>
<body>
<a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
</body>
</html>
---
Any idea'?
I also found out, if I put a <p> </p> below the <a href...> in the
code above, everything works fine.
I'm !!!!!
HHHHEEELLLPPPPP! :o)
Thank you in advance.
M O J OCheck out the css newsgroup
Let me know if you have any more questions...
Cheers,
Tom Pester

> Hi,
> I'm developing a asp.net application and ran into a strange css
> problem.
> I want all my links to have a dashed underline and when they are
> hovered, it must change to a solid line. Sounds simple, but it's not
> working.
> I've cooked down my output code to show you what I mean. If you run
> the code below, there's no line under the link, but if you either
> remove the <!DOCTYPE...> line or the body-part of the css decleration,
> everything works fine.
> Here's my code (watch for wrappings):
> ---
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=windows-1252">
> <title>Strange</title>
> <style>
> <!--
> body
> {
> font-family: verdana, arial, helvetica, sans-serif;
> }
> a:link, a:visited
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px dashed #d32525;
> text-decoration: none;
> }
> a:hover
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px solid #d32525;
> text-decoration: none;
> }
> -->
> </style>
> </head>
> <body>
> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
> </body>
> </html>
> ---
> Any idea'?
> I also found out, if I put a <p> </p> below the <a href...> in
> the code above, everything works fine.
> I'm !!!!!
> HHHHEEELLLPPPPP! :o)
> Thank you in advance.
> M O J O
>
Hi Tom,
Which group are you exactly talking about?
M O J O
tom pester wrote:
> Check out the css newsgroup
> Let me know if you have any more questions...
> Cheers,
> Tom Pester
>
>
http://groups.google.com/group/comp.infosystems.www.authoring.stylesheets?gvc=2&hl
=en
Let me know if it helped you or not...
Cheers,
Tom Pester
> Hi Tom,
> Which group are you exactly talking about?
> M O J O
> tom pester wrote:
>
Try putting your style-block before the body tag. Inside the head you
should only refer to external css files.
Okay thanks, I'll give it a try.
M O J O
tom pester wrote:
> http://groups.google.com/group/comp...2&
hl=en
>
> Let me know if it helped you or not...
> Cheers,
> Tom Pester
>
>
Hi Stefan,
Thanks for letting me know. Unfortunately it does not solve my problem.
:o(
Hmmmmm.
Thanks anyway.
M O J O
Stefan wrote:
> Try putting your style-block before the body tag. Inside the head you
> should only refer to external css files.
>
your problem is that an <a> is an inline element, not a block element, so it
does not have a border. normally you use the text-decoration to control
underlining, but there is no dashed version. you can try setting the display
style to block.
-- bruce (sqlwork.com)
"M O J O" < mojo@._no_spam_delete_this_newwebsolution
s.dk> wrote in message
news:uNHXoi8qFHA.904@.tk2msftngp13.phx.gbl...
> Hi,
> I'm developing a asp.net application and ran into a strange css problem.
> I want all my links to have a dashed underline and when they are hovered,
> it must change to a solid line. Sounds simple, but it's not working.
> I've cooked down my output code to show you what I mean. If you run the
> code below, there's no line under the link, but if you either remove the
> <!DOCTYPE...> line or the body-part of the css decleration, everything
> works fine.
> Here's my code (watch for wrappings):
> ---
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <title>Strange</title>
> <style>
> <!--
> body
> {
> font-family: verdana, arial, helvetica, sans-serif;
> }
>
> a:link, a:visited
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px dashed #d32525;
> text-decoration: none;
> }
> a:hover
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px solid #d32525;
> text-decoration: none;
> }
> -->
> </style>
> </head>
> <body>
> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
> </body>
> </html>
> ---
> Any idea'?
> I also found out, if I put a <p> </p> below the <a href...> in the
> code above, everything works fine.
> I'm !!!!!
> HHHHEEELLLPPPPP! :o)
> Thank you in advance.
> M O J O

Strange css problem (bug?)

Hi,

I'm developing a asp.net application and ran into a strange css problem.

I want all my links to have a dashed underline and when they are
hovered, it must change to a solid line. Sounds simple, but it's not
working.

I've cooked down my output code to show you what I mean. If you run the
code below, there's no line under the link, but if you either remove the
<!DOCTYPE...> line or the body-part of the css decleration, everything
works fine.

Here's my code (watch for wrappings):

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Strange</title>
<style>
<!--
body
{
font-family: verdana, arial, helvetica, sans-serif;
}

a:link, a:visited
{
font-family: verdana, arial, helvetica, sans-serif;
color: #d32525;
border-bottom: 1px dashed #d32525;
text-decoration: none;
}

a:hover
{
font-family: verdana, arial, helvetica, sans-serif;
color: #d32525;
border-bottom: 1px solid #d32525;
text-decoration: none;
}
-->
</style>
</head
<body>
<a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
</body
</html
----------------------

Any idea???

I also found out, if I put a <p> </p> below the <a href...> in the
code above, everything works fine.

I'm confused!!!!!

HHHHEEELLLPPPPP! :o)

Thank you in advance.

M O J OCheck out the css newsgroup

Let me know if you have any more questions...

Cheers,
Tom Pester

> Hi,
> I'm developing a asp.net application and ran into a strange css
> problem.
> I want all my links to have a dashed underline and when they are
> hovered, it must change to a solid line. Sounds simple, but it's not
> working.
> I've cooked down my output code to show you what I mean. If you run
> the code below, there's no line under the link, but if you either
> remove the <!DOCTYPE...> line or the body-part of the css decleration,
> everything works fine.
> Here's my code (watch for wrappings):
> ----------------------
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=windows-1252">
> <title>Strange</title>
> <style>
> <!--
> body
> {
> font-family: verdana, arial, helvetica, sans-serif;
> }
> a:link, a:visited
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px dashed #d32525;
> text-decoration: none;
> }
> a:hover
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px solid #d32525;
> text-decoration: none;
> }
> -->
> </style>
> </head>
> <body>
> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
> </body>
> </html>
> ----------------------
> Any idea???
> I also found out, if I put a <p> </p> below the <a href...> in
> the code above, everything works fine.
> I'm confused!!!!!
> HHHHEEELLLPPPPP! :o)
> Thank you in advance.
> M O J O
Hi Tom,

Which group are you exactly talking about?

M O J O

tom pester wrote:
> Check out the css newsgroup
> Let me know if you have any more questions...
> Cheers,
> Tom Pester
>> Hi,
>>
>> I'm developing a asp.net application and ran into a strange css
>> problem.
>>
>> I want all my links to have a dashed underline and when they are
>> hovered, it must change to a solid line. Sounds simple, but it's not
>> working.
>>
>> I've cooked down my output code to show you what I mean. If you run
>> the code below, there's no line under the link, but if you either
>> remove the <!DOCTYPE...> line or the body-part of the css decleration,
>> everything works fine.
>>
>> Here's my code (watch for wrappings):
>>
>> ----------------------
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>
>> <html>
>> <head>
>> <meta http-equiv="Content-Type" content="text/html;
>> charset=windows-1252">
>> <title>Strange</title>
>> <style>
>> <!--
>> body
>> {
>> font-family: verdana, arial, helvetica, sans-serif;
>> }
>> a:link, a:visited
>> {
>> font-family: verdana, arial, helvetica, sans-serif;
>> color: #d32525;
>> border-bottom: 1px dashed #d32525;
>> text-decoration: none;
>> }
>> a:hover
>> {
>> font-family: verdana, arial, helvetica, sans-serif;
>> color: #d32525;
>> border-bottom: 1px solid #d32525;
>> text-decoration: none;
>> }
>> -->
>> </style>
>> </head>
>> <body>
>> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
>> </body>
>> </html>
>>
>> ----------------------
>>
>> Any idea???
>>
>> I also found out, if I put a <p> </p> below the <a href...> in
>> the code above, everything works fine.
>>
>> I'm confused!!!!!
>>
>> HHHHEEELLLPPPPP! :o)
>>
>> Thank you in advance.
>>
>> M O J O
>>
>
http://groups.google.com/group/comp...ets?gvc=2&hl=en

Let me know if it helped you or not...

Cheers,
Tom Pester

> Hi Tom,
> Which group are you exactly talking about?
> M O J O
> tom pester wrote:
>> Check out the css newsgroup
>>
>> Let me know if you have any more questions...
>>
>> Cheers,
>> Tom Pester
>>> Hi,
>>>
>>> I'm developing a asp.net application and ran into a strange css
>>> problem.
>>>
>>> I want all my links to have a dashed underline and when they are
>>> hovered, it must change to a solid line. Sounds simple, but it's not
>>> working.
>>>
>>> I've cooked down my output code to show you what I mean. If you run
>>> the code below, there's no line under the link, but if you either
>>> remove the <!DOCTYPE...> line or the body-part of the css
>>> decleration, everything works fine.
>>>
>>> Here's my code (watch for wrappings):
>>>
>>> ---------------------
>>> --
>>>
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>>
>>> <html>
>>> <head>
>>> <meta http-equiv="Content-Type" content="text/html;
>>> charset=windows-1252">
>>> <title>Strange</title>
>>> <style>
>>> <!--
>>> body
>>> {
>>> font-family: verdana, arial, helvetica, sans-serif;
>>> }
>>> a:link, a:visited
>>> {
>>> font-family: verdana, arial, helvetica, sans-serif;
>>> color: #d32525;
>>> border-bottom: 1px dashed #d32525;
>>> text-decoration: none;
>>> }
>>> a:hover
>>> {
>>> font-family: verdana, arial, helvetica, sans-serif;
>>> color: #d32525;
>>> border-bottom: 1px solid #d32525;
>>> text-decoration: none;
>>> }
>>> -->
>>> </style>
>>> </head>
>>> <body>
>>> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
>>> </body>
>>> </html>
>>> ---------------------
>>> --
>>>
>>> Any idea???
>>>
>>> I also found out, if I put a <p> </p> below the <a href...> in
>>> the code above, everything works fine.
>>>
>>> I'm confused!!!!!
>>>
>>> HHHHEEELLLPPPPP! :o)
>>>
>>> Thank you in advance.
>>>
>>> M O J O
>>
Try putting your style-block before the body tag. Inside the head you
should only refer to external css files.
Okay thanks, I'll give it a try.

M O J O

tom pester wrote:
> http://groups.google.com/group/comp...ets?gvc=2&hl=en
>
> Let me know if it helped you or not...
> Cheers,
> Tom Pester
>> Hi Tom,
>>
>> Which group are you exactly talking about?
>>
>> M O J O
>>
>> tom pester wrote:
>>
>>> Check out the css newsgroup
>>>
>>> Let me know if you have any more questions...
>>>
>>> Cheers,
>>> Tom Pester
>>>
>>>> Hi,
>>>>
>>>> I'm developing a asp.net application and ran into a strange css
>>>> problem.
>>>>
>>>> I want all my links to have a dashed underline and when they are
>>>> hovered, it must change to a solid line. Sounds simple, but it's not
>>>> working.
>>>>
>>>> I've cooked down my output code to show you what I mean. If you run
>>>> the code below, there's no line under the link, but if you either
>>>> remove the <!DOCTYPE...> line or the body-part of the css
>>>> decleration, everything works fine.
>>>>
>>>> Here's my code (watch for wrappings):
>>>>
>>>> ---------------------
>>>> --
>>>>
>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>>>
>>>> <html>
>>>> <head>
>>>> <meta http-equiv="Content-Type" content="text/html;
>>>> charset=windows-1252">
>>>> <title>Strange</title>
>>>> <style>
>>>> <!--
>>>> body
>>>> {
>>>> font-family: verdana, arial, helvetica, sans-serif;
>>>> }
>>>> a:link, a:visited
>>>> {
>>>> font-family: verdana, arial, helvetica, sans-serif;
>>>> color: #d32525;
>>>> border-bottom: 1px dashed #d32525;
>>>> text-decoration: none;
>>>> }
>>>> a:hover
>>>> {
>>>> font-family: verdana, arial, helvetica, sans-serif;
>>>> color: #d32525;
>>>> border-bottom: 1px solid #d32525;
>>>> text-decoration: none;
>>>> }
>>>> -->
>>>> </style>
>>>> </head>
>>>> <body>
>>>> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
>>>> </body>
>>>> </html>
>>>> ---------------------
>>>> --
>>>>
>>>> Any idea???
>>>>
>>>> I also found out, if I put a <p> </p> below the <a href...> in
>>>> the code above, everything works fine.
>>>>
>>>> I'm confused!!!!!
>>>>
>>>> HHHHEEELLLPPPPP! :o)
>>>>
>>>> Thank you in advance.
>>>>
>>>> M O J O
>>>>
>
Hi Stefan,

Thanks for letting me know. Unfortunately it does not solve my problem.

:o(

Hmmmmm.

Thanks anyway.

M O J O

Stefan wrote:
> Try putting your style-block before the body tag. Inside the head you
> should only refer to external css files.
your problem is that an <a> is an inline element, not a block element, so it
does not have a border. normally you use the text-decoration to control
underlining, but there is no dashed version. you can try setting the display
style to block.

-- bruce (sqlwork.com)

"M O J O" <mojo@._no_spam_delete_this_newwebsolutions.dk> wrote in message
news:uNHXoi8qFHA.904@.tk2msftngp13.phx.gbl...
> Hi,
> I'm developing a asp.net application and ran into a strange css problem.
> I want all my links to have a dashed underline and when they are hovered,
> it must change to a solid line. Sounds simple, but it's not working.
> I've cooked down my output code to show you what I mean. If you run the
> code below, there's no line under the link, but if you either remove the
> <!DOCTYPE...> line or the body-part of the css decleration, everything
> works fine.
> Here's my code (watch for wrappings):
> ----------------------
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <title>Strange</title>
> <style>
> <!--
> body
> {
> font-family: verdana, arial, helvetica, sans-serif;
> }
>
> a:link, a:visited
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px dashed #d32525;
> text-decoration: none;
> }
> a:hover
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px solid #d32525;
> text-decoration: none;
> }
> -->
> </style>
> </head>
> <body>
> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
> </body>
> </html>
> ----------------------
> Any idea???
> I also found out, if I put a <p> </p> below the <a href...> in the
> code above, everything works fine.
> I'm confused!!!!!
> HHHHEEELLLPPPPP! :o)
> Thank you in advance.
> M O J O