Iis - Very Weird IIS6 .net Website Behaviour
Feb 19, 2010
Recently I got a strange behavior, the website hangs and just doesn't reply unless I go to iis and restart either app pool or whole IIS - BUT what is the most strange thing is that in case I go to remote desktop of the server and try to access it locally it DOES work just fine. I read couple threads about deadlocking and hanging because of memory leaks and non closed sql connections BUT why it still does work from the local?In case there is something wrong with the code - why does it still work from locally?
View 2 Replies
Similar Messages:
Mar 23, 2011
I have a web site coded with VB + MS Access database (VS2010). I'm using one MasterPage to manage both public and users area. I'm facing loss of session variables when a user is logged in. I can't figure out what is wrong and I need your help, tips and tricks.
When a user is authenticated (thru the Login.aspx), I create a SessionID, store his credential in session and load user's page by Response.Redirect(~/users.aspx). Here is what I did:Code:
Dim MyLink As String = Session.SessionID & "other variables"
Session("MyLink") = MyLink
FormsAuthentication.RedirectFromLoginPage(TextBoxEmail.Text, False)
Response.Redirect(~/users.aspx)
My logic is this: when the web site is launched, MasterPage + Default.aspx load. So Session("MyLink") is empty. If the user's credentials are correct, I create the session so that it can be available for MasterPage.
In the code behind of the MasterPage, I try to check (everytime a link is clicked/page requested) whether the user session (SessionID, credential in session) is available. If so, the user is still logged and get access to all the menu. If no session is available, it means the user is logged out or not logged in yet and few menu are shown. Here is the code
Dim MyLink As String = Session("MyLink")
If MyLink Is Nothing Then
'Only show MenuPublic
[code]....
My default menu is:MenuPublic1, MenuPublic2, MenuPublic3
When a user is logged in, I add to the MenuPublic some reserved Users' menu like below.
MenuPublic1, MenuPublic2, MenuPublic3, Menu_Users1, Menu_Users2, Menu_Users3
In local, everything works perfectly fine. Now after hosting my website, from time to time the MasterPage loss the Session variables. When it happens, the page still shows that the user is logged in by displaying Logout and Welcome Username beside it.
View 7 Replies
Sep 16, 2010
Is it possible to control the behaviour of ASP.NET when the Session has expired? It seems that the default behaviour is sending the user to the website root. The desired effect would be to send the user to a custom "Session Expired" page.To clarify, it's the SessionState that's expiring (set the timeout to 1 minute to quickly test it):
<sessionState mode="InProc" timeout="1"></sessionState>
The authentication cookie timeout is way higher, to avoid any mix-up:
<authentication mode="Forms">
<forms loginUrl="SessionExpired.aspx" slidingExpiration="true" name=".ttpASPXAUTH" timeout="58" protection="All"></forms>
</authentication>
View 2 Replies
Jan 21, 2010
I have a website (asp.net,c#) on two different servers (same source code).
In one page my asp generates a text area, using the same browser when I access one of the site if I press return in the text areas I can start a new line, if I do the same accessing the other website on return the form is submitted!
View 1 Replies
Jan 17, 2011
I have an an intranet website running under IIS6 (under a specific port, not the default one) with a integrated windows authentication enabled and uses an application pool configured with a service account. the issue is, if I access the website using the server name with a fully qualified domain in the URL, it throws a login prompt (doesn't work even if enter my windows login credentials), but if I use the IP address of the server then it works fine. I need to do to get the URL with server name working.[URL]
View 3 Replies
Sep 9, 2010
I have various caches on my compiled website. However, I need to clear all these caches. Is there a way of doing this (without having to restart the server!)?
View 1 Replies
Jan 17, 2011
I am working on a setup package that installs a web site on IIS7 and IIS6. I've already made it for IIS7, now I need to make it for IIS6. But I am working under windows 7 so I can't install IIS6 on it. Any way, I have to test my setup project. What are the ways to do it (preferrably free and legal ;) ) ? I can think of a remote connection to a machine that already has IIS6 and using a virtual machine, for example virtualbox.org . But even though virtualbox.org is free, WinXP with IIS6 isn't ;) .
View 4 Replies
May 23, 2010
I have a really weird problem that I've been investigating for at least one week now. I deliver a website hosting both ASP classic and .NET 3.5 content in IIS6 on a Windows 2003 server environment with MySQL db backend. The solution has been installed on several servers (some hosted in WMWare) with no problems. On one specific server, also hosted in WMWare, the user experience great performance issues on the website. The problems are most seen when using database resources and is not limited to either .net or asp classic, but I am still not sure that the problem is only related to database calls.
Following components are involved:
IIS6 .NET FW 3.5 MyODBC 3.51 / 5.1 MySQL 4.x
Code executed on the server using all resources above runs smoothly when the IIS is not involved. The website shows times up to 2 minutes to execute code that takes 2 seconds outside the IIS. The exact same code is executed. Using profiling tools, I've seen that the great loss comes within calls to unmanaged code, for example when System.Data.ODBC namespace to calls into myodbc.dll.
The tricky part is: If at least one console user is logged in to the server, the performace problems are not seen anymore. When the user logs out, the problem appears again.I have tried to reinstall all components above, tried different versions of MyODBC, tried different website authentication methods, tried to run website under administrator privilegies, installed various MS KB's with no success.
View 4 Replies
Jun 28, 2010
Google's webmaster tools has started showing some very strange internal links for my site. It appears "normal", but I'm not sure what to make of it. If you use parentheses and put in a single letter, then put literally anything in parentheses after that, the link works. I did a search for any other MVC sites so I could see if they had the same behavior. Microsoft's site came up at the top of the list with an odd link as well. The search terms were "asp.net mvc site" and the first link I got was for: [URL]
I don't like this at all. You can change the S to an A or any other letter, and then put any text you want in the next section. Anyone know how to stop it? For the life of me I can't see anything wrong with my routes. I used MVC so I wouldn't have strange url's floating around in search engines so this is pretty disappointing. Nearest I can guess from the Google "internal links" list is that it may be a cookie. But I can't find any circumstance when I view the source on my site where I see anything but the proper relative links.
View 2 Replies
May 13, 2010
Every few days when my webpage is accessed strange characters are embedded in the URL like this:[URL] I did some searches on the internet and found that if the characters begin with the letter 'S', it is the session id used when cookieless is set to true. In my case the beginning letter is 'A', and i couldn't find anything about that. This is bad because once these strange characters appear, all the submenus in my page will disappear (I had another post about his menu problem in here:[URL]
Once I restart the webpage in IIS the URL will become normal again, but it will appear again in a few days.
Does anyone know what these strange characters (that begin with 'A') are? How to avoid them?
[Code]....
View 9 Replies
Apr 17, 2010
I have written this datalist :
<asp:DataList ID="DataList2" runat="server" Height="16px" Width="412px">
<SeparatorTemplate>
<hr />
</SeparatorTemplate>
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat ="server" Text='<%# Eval("Name") %>' PostBackUrl='<%#Eval("Url")%>' />
<br />
Description:
<asp:Label ID="new" Text='<%#Eval("Description") %>' runat="server" /> </ItemTemplate>
</asp:DataList>
</div>
It raises an exception saying that the linkbutton has to be placed in a tag that contains runat="server" although it exists. Here is the trace
[HttpException (0x80004005): Le contrôle 'DataList2_ctl00_LinkButton1' de type 'LinkButton' doit être placé dans une balise form avec runat=server.]
System.Web.UI.Page.VerifyRenderingInServerForm(Control control) +8689747
System.Web.UI.WebControls.LinkButton.AddAttributesToRender(HtmlTextWriter writer) +39
System.Web.UI.WebControls.WebControl.RenderBeginTag(HtmlTextWriter writer) +20
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +20
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
System.Web.UI.WebControls.DataListItem.RenderItemInternal(HtmlTextWriter writer, Boolean extractRows, Boolean tableLayout) +51
System.Web.UI.WebControls.DataListItem.RenderItem(HtmlTextWriter writer, Boolean extractRows, Boolean tableLayout) +57
System.Web.UI.WebControls.DataList.System.Web.UI.WebControls.IRepeatInfoUser.RenderItem(ListItemType itemType, Int32 repeatIndex, RepeatInfo repeatInfo, HtmlTextWriter writer) +64
System.Web.UI.WebControls.RepeatInfo.RenderVerticalRepeater(HtmlTextWriter writer, IRepeatInfoUser user, Style controlStyle, WebControl baseControl) +262
System.Web.UI.WebControls.RepeatInfo.RenderRepeater(HtmlTextWriter writer, IRepeatInfoUser user, Style controlStyle, WebControl baseControl) +27
System.Web.UI.WebControls.DataList.RenderContents(HtmlTextWriter writer) +208
System.Web.UI.WebControls.BaseDataList.Render(HtmlTextWriter writer) +30
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
<div class="story" runat="server">
View 1 Replies
Jan 21, 2010
try to figure out what is wrong with my code but I'm lost. I've a ModalPopupExtender, triggered in code behind by the onClick event link button. The FIRST time I display my popup, it works well and if I close my popup using javascript, it works and I can get my popup back by clicking on my linkbutton again. But, if I click the "Save" button of my popup (which save data and close the popup), I can't get my popup to display again. Even if I close my popup first using javascript and then calling my server side code to save my data, the result is the same, I can't display my popup again. Seems like the postback "break" it.This popup is in an conditinal UpdatePanel and event trying to manually update the panel after the popup.show() method change nothing.Finally, I checked what server sent back to the browser using firebug and I can confirm that I received only view state information (no UpdatePanel to update), even after calling panel.Update().
View 2 Replies
May 27, 2010
I have a crazy issue when tabbing from one textbox to another.
This happens on a webpage which contains about 20+ textboxes, and this happens on the same textboxes, and I have no idea what is the cause.
When the cursor is in a textfield, I type in a value, hit tab, the focus goes to the next textbox, I hit tab, the focus stays in the same textbox, I have to hit tab again to go to the 3rd textbox.
This is annoying because the user is types their values, hits tab, starts typing values for the next txtbox, only for the cursor to stay in the pervious txtbox.
We use IE8.0
View 1 Replies
Dec 29, 2010
I have one web page that has some spanish contents , in design view it shows fine , but when I view it in browser, it shows gibberish character, for instance: i have following character in desing view Unión and it gets dispalyed Unión in browser what am I doing wrong, or is there any reference I am missing.
View 3 Replies
Mar 9, 2011
Have an application which publishes XML data across webservice using SOAP.
The data is pulled directly from an Oracle database and parsed into XML but for some reason the data being pulled out of the DB is throwing the following invalid XML exception.
Have done a bit of research and it looks like it may be a NULL character somewhere in the data which XML parser doesn't like.
Just wondering if anyone had seen this before and if so were they able to fix it at application or database layer?
Here's stack trace...
[code]....
UPDATE: Here is a selection of data being published.Just plain text basically, this is how it exists in database columns, have included as comma separated.
614494, 2003, 33, 327, 15961, 59652, 2, 2, 3, 2, 1, 10-Dec-08, MY2003 AERO SEDAN, Manual 2.0
View 1 Replies
Mar 25, 2010
I have a project spec to build an online card game, and on a point it mentions:
"...the page should not post back to the server at any point; neither should the ASP.NET UpdatePanel control be used. Server communication should occur through webservice calls or similar."
I just asked a developer if it's possible to use AJAX without UpdatePanel, or/and use just a web service to prevent a page postback, and he said "the spec sounds a bit out of context".
Basically the application should provide a user interface and use Async postbacks (i.e. AJAX)...
View 7 Replies
Jun 3, 2010
In my website I use a <asp:menu> control in the master page. And I use Web.sitemap file to define the menu items. And everything works fine.But every few days when I click on the menu item tabs to change to another page, strange characters are embedded in the URL like this:
- http://www.mydomain.com/(A(5wNJHLUjywEkAAAAZDhkNW....))/nextPage.aspx
(supposed to be just http://www.mydomain.com/nextPage.aspx)
By checking the following MSDN link I realize that these strange characters stands for anonymous user:
http://msdn.microsoft.com/en-us/library/aa479315.aspx
However, I already set the following in web.config:
- <forms cookieless="UseCookies" .... />
- <anonymousIdentification cookieless="UseCookies" enabled="false" />
- <sessionState cookieless="UseCookies"/>
but these strange characters are still inserted into the URL every few days.Once it happens, I need to restart the website, or restart or recycle the Application Pools in IIS, then it will become normal again.
View 6 Replies
May 11, 2010
I am trying to do a login page which checks username and password from access database. I think my code is almost done but i am getting some weird error which i just can't decipher where it exactly comes from, as i think i already have every return value it needs. Can anyone check this function and tell me if there is something i am missing or doing wrong? And the error i get isDBConnection(string, string)': not all code paths return a value
[Code]....
View 3 Replies
Jul 7, 2010
I wrote a small .NET applications that removes all line breaks in aspx/html/css code to make it harder to read for people trying to steal my design. And surprisingly I get weird characters that appear out of nowhere such as Â, » and others. They all stay at the same places, but I have no clue why they appear.
View 2 Replies
Mar 8, 2011
I'm getting the old "Validation of viewstate MAC failed" error when I click the submit button on my form. (Seehttp://blogs.msdn.com/b/tom/archive/2008/03/14/validation-of-viewstate-mac-failed-error.aspx) The thing is I'm getting the error even when the page is completely loaded (it can be sitting there for five minutes before I hit submit but I still get the error). This isn't even a particularly lengthy page (which is one of the preconditions). It uses a DetailsView (which I understand is another precondition for this error), but it's the only databound control on the page. Also, whenever users get this error (which is 100% of the time when they click Submit), they lose their login authentication and have to log back in. This page/site has been in use for about six months but the error suddenly started a few weeks ago without any changes being made to the code.
View 2 Replies
Jan 7, 2010
Login control is nested inside the div element.
aspx file:
[Code]....
a) As far as I know, the width of a nested element (Login) should by default be constrained by the width of a parent element. But that isn't the case, since Login is always expanded to its full width, no matter how small is the width of a #parentE element. why Login
doesn't have its width constrained?
b) I'm also getting some inconsistent results: if I change the value of "right" property to 200px, then element should be closer to the right edge by one third, but is in fact closer to the edge by 50%. If I then change the value of "right" property to 100px, then the element is only few pixels removed from the right edge of the browser ( while it should be 100px removed from the right edge )
View 1 Replies
Aug 31, 2010
I have a chat application I've developed which sits inside a master page. When the user presses enter inside his/her chat input field, I want that to trigger the submit chat behaviour (same as clicking the 'submit' button under the chat input field), but because there is another submit button inside the master page and higher up the page (a search function), that is what gets triggered. So if the user hits enter, s/he gets sent off to the search page.
View 2 Replies
Jan 25, 2011
I have a site that i have developed in asp.net. On debugging the site now hosted using iis7 i noticed a bug, i cannot reproduce this when i run it locally in vs, meaning i can't see the error. The bug occurs on the check box changed event of a devexpress check box. It connects to the database using devart.postgres sql component and linq. However, this is the same connection as anywhere else in the project. The same code works elsewhere in the project. The error i get is:
the requested name is valid, but no data of the requested type was found.
part of my code is in an if statement that checks if a textbox is blank if so it does not run the code within the if statement, interestingly enough if the text box is blank the code runs, so it must be in the if statement? i commented out all of the code and tried again and it still would not run. B
View 1 Replies
Jun 2, 2010
am having trouble with some javascript that isn't working as it should. I have a table with 6 rows in it. There are 3 rows with a checkbox in them and 3 rows with a dropdownlist. The order is cb ,ddl, cb, ddl, cb ,ddl. The ddl rows are all hidden in th beginning using style="display: none;". When the user checks a checkbox, the ddl row below should appear. But this is not happening, instead it happens when i uncheck it.
[Code]....
View 3 Replies
Dec 20, 2010
I am using the MaskedEditExtender and MaskedEditValidator, but have experienced some strange
behaviour. (See code example below). When entering a date into the textbox this is what I see:
1. The mask
2. Entering the date and time e.g. "19-01-1980 10:11:12"
3. When removing focus from the textbox the result is: "19-01-1980 19:01:19"
The six first digits of the date is copied as the time? If entering a day of the month larger than 23 and any given month, year and time (eg. 25-10-1980 12:12:12) the validation fails as the six first digits are copied to the time resulting in a time 25:10:19 which obviously is not valid.
I have downloaded the AJAX toolkit sample code and experience the exact same behaviour. When running the AJAX Toolkit samples from[URL] works fine!
Additinal info: Culture is danish (DateTime format is dd-MM-yyyy hh:mm:ss). Tried changing my systems culture to en-US but same behaviour.
Code:
[Code]....
View 5 Replies