Showing posts with label production. Show all posts
Showing posts with label production. Show all posts

Wednesday, March 28, 2012

Strange behaviour in Production environnement

Hello experts,

I have the following peice of code in my Global.asax

void Application_Error(object sender, EventArgs e)

{

//get reference to the source of the exception chain

Log log = new Log();

Exception ex = Server.GetLastError();

log.AddLogEntry(Request, ex);

log.SaveData();

Response.Redirect("~/Error.aspx");

}

This code works well on my test server Win2k3 , IIS 6. It write to my
erro.log text file and displays Error.aspx as expected.

In Production( Win2k3 , IIS 6) , it open the file error.log(Can be seen on
last modified date) but the expection is not written to the file. Neither is
Error.aspx displayed. Can someone tell were i should be looking?

Many thanks in advance .

SHi,

Does asp.net process has write /modify permission on the folder/file that
you are attemting to write? I would also use:
Server.ClearError(); before redirecting.

Regards

Med

"Smith" <Smith@.pricateemail.comwrote in message
news:%23yjQVIQMIHA.5224@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

>
Hello experts,
>
I have the following peice of code in my Global.asax
>
void Application_Error(object sender, EventArgs e)
>
{
>
//get reference to the source of the exception chain
>
Log log = new Log();
>
Exception ex = Server.GetLastError();
>
log.AddLogEntry(Request, ex);
>
log.SaveData();
>
Response.Redirect("~/Error.aspx");
>
>
>
>
>
>
}
>
>
>
This code works well on my test server Win2k3 , IIS 6. It write to my
erro.log text file and displays Error.aspx as expected.
>
>
>
In Production( Win2k3 , IIS 6) , it open the file error.log(Can be seen on
last modified date) but the expection is not written to the file. Neither
is Error.aspx displayed. Can someone tell were i should be looking?
>
>
>
>
>
Many thanks in advance .
>
S
>
>


"Med" <nospam@.nowhere.nowherewrote in message
news:%236KXucQMIHA.4228@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

Hi,
>
Does asp.net process has write /modify permission on the folder/file that
you are attemting to write? I would also use:
Server.ClearError(); before redirecting.
>


The user asp.net process is running under har full permission in the folder
where the code lives.Also note that the modified date of the error file
actually change according to the time error occured. It this was permission
problem, would it be allowed to actually open the file?
How does ServerClear() helps here?

Thanks
S
Hi,

Quote:

Originally Posted by

The user asp.net process is running under har full permission in the
folder where the code lives.


Does the log folder/file resides in this folder?

Actually Server.ClearError(); was irrelavant to your problem here, it was
just a suggestion as it prevents the error from continuing to the
Application_Error event handler.

Could you send the code for AddLogEntry(Request, ex)?

This is how I do it:

<%@. Import Namespace = "System.IO" %>
<%@. Import Namespace = "System.Diagnostics" %>

void Application_Error(object sender, EventArgs e)
{
//Only redirect to error page if in Release mode.
#if DEBUG
{
//Show error details
}
#else
{
try
{
LogError(Server.GetLastError().GetBaseException()) ;
Server.ClearError();
}
catch
{
//Do something....
}

//Redirect to error.aspx page
Response.Redirect("error.aspx");
}
#endif
}

private void LogError(Exception objError)
{

try
{
string sLogFilePathAndName = String.Format(@."{0}{1} {2}.log",
Server.MapPath("~/Logs/"), DateTime.Now.ToLongDateString(),
DateTime.Now.DayOfWeek);
using (StreamWriter sw = File.AppendText(sLogFilePathAndName))
{
sw.WriteLine(Environment.NewLine);
sw.WriteLine(String.Format("Error Caught in Application on
{0} {1} @. {2}", DateTime.Now.DayOfWeek, DateTime.Now.ToLongDateString(),
DateTime.Now.ToLongTimeString()));
sw.WriteLine(String.Format("IP Address: {0}",
Request.ServerVariables["REMOTE_ADDR"].ToString()));
sw.WriteLine(String.Format("Platform: {0}",
Request.Browser.Platform));
sw.WriteLine(String.Format("Browser: {0}",
Request.Browser.Type));
sw.WriteLine(String.Format("Error in: {0}",
Request.Url.ToString()));
sw.WriteLine(String.Format("Error Message: {0}",
objError.Message.ToString()));
sw.WriteLine("Stack Trace:");
sw.WriteLine(objError.StackTrace.ToString());
sw.WriteLine(Environment.NewLine);
sw.WriteLine("--------------------------");
sw.Close();
}
}
catch
{
//Do something....
}
}

You may also want to look at:
http://support.microsoft.com/defaul...kb;en-us;306355
Hope it helps

Med

"Smith" <Smith@.pricateemail.comwrote in message
news:e5iA$HRMIHA.1208@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

>
"Med" <nospam@.nowhere.nowherewrote in message
news:%236KXucQMIHA.4228@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

>Hi,
>>
>Does asp.net process has write /modify permission on the folder/file that
>you are attemting to write? I would also use:
>Server.ClearError(); before redirecting.
>>


>
The user asp.net process is running under har full permission in the
folder where the code lives.Also note that the modified date of the error
file actually change according to the time error occured. It this was
permission problem, would it be allowed to actually open the file?
How does ServerClear() helps here?
>
Thanks
S
>


http://support.microsoft.com/kb/890960

Strange behaviour in Production environnement

Hello experts,
I have the following peice of code in my Global.asax
void Application_Error(object sender, EventArgs e)
{
//get reference to the source of the exception chain
Log log = new Log();
Exception ex = Server.GetLastError();
log.AddLogEntry(Request, ex);
log.SaveData();
Response.Redirect("~/Error.aspx");
}
This code works well on my test server Win2k3 , IIS 6. It write to my
erro.log text file and displays Error.aspx as expected.
In Production( Win2k3 , IIS 6) , it open the file error.log(Can be seen on
last modified date) but the expection is not written to the file. Neither is
Error.aspx displayed. Can someone tell were i should be looking?
Many thanks in advance .
SHi,
Does asp.net process has write /modify permission on the folder/file that
you are attemting to write? I would also use:
Server.ClearError(); before redirecting.
Regards
Med
"Smith" <Smith@.pricateemail.com> wrote in message
news:%23yjQVIQMIHA.5224@.TK2MSFTNGP02.phx.gbl...
> Hello experts,
> I have the following peice of code in my Global.asax
> void Application_Error(object sender, EventArgs e)
> {
> //get reference to the source of the exception chain
> Log log = new Log();
> Exception ex = Server.GetLastError();
> log.AddLogEntry(Request, ex);
> log.SaveData();
> Response.Redirect("~/Error.aspx");
>
>
>
> }
>
> This code works well on my test server Win2k3 , IIS 6. It write to my
> erro.log text file and displays Error.aspx as expected.
>
> In Production( Win2k3 , IIS 6) , it open the file error.log(Can be seen on
> last modified date) but the expection is not written to the file. Neither
> is Error.aspx displayed. Can someone tell were i should be looking?
>
>
> Many thanks in advance .
> S
>
"Med" <nospam@.nowhere.nowhere> wrote in message
news:%236KXucQMIHA.4228@.TK2MSFTNGP02.phx.gbl...
> Hi,
> Does asp.net process has write /modify permission on the folder/file that
> you are attemting to write? I would also use:
> Server.ClearError(); before redirecting.
>
The user asp.net process is running under har full permission in the folder
where the code lives.Also note that the modified date of the error file
actually change according to the time error occured. It this was permission
problem, would it be allowed to actually open the file?
How does ServerClear() helps here?
Thanks
S
Hi,

> The user asp.net process is running under har full permission in the
> folder where the code lives.
Does the log folder/file resides in this folder?
Actually Server.ClearError(); was irrelavant to your problem here, it was
just a suggestion as it prevents the error from continuing to the
Application_Error event handler.
Could you send the code for AddLogEntry(Request, ex)?
This is how I do it:
<%@. Import Namespace = "System.IO" %>
<%@. Import Namespace = "System.Diagnostics" %>
void Application_Error(object sender, EventArgs e)
{
//Only redirect to error page if in Release mode.
#if DEBUG
{
//Show error details
}
#else
{
try
{
LogError(Server.GetLastError().GetBaseException());
Server.ClearError();
}
catch
{
//Do something....
}
//Redirect to error.aspx page
Response.Redirect("error.aspx");
}
#endif
}
private void LogError(Exception objError)
{
try
{
string sLogFilePathAndName = String.Format(@."{0}{1} {2}.log",
Server.MapPath("~/Logs/"), DateTime.Now.ToLongDateString(),
DateTime.Now.DayOfW);
using (StreamWriter sw = File.AppendText(sLogFilePathAndName))
{
sw.WriteLine(Environment.NewLine);
sw.WriteLine(String.Format("Error Caught in Application on
{0} {1} @. {2}", DateTime.Now.DayOfW, DateTime.Now.ToLongDateString(),
DateTime.Now.ToLongTimeString()));
sw.WriteLine(String.Format("IP Address: {0}",
Request.ServerVariables["REMOTE_ADDR"].ToString()));
sw.WriteLine(String.Format("Platform: {0}",
Request.Browser.Platform));
sw.WriteLine(String.Format("Browser: {0}",
Request.Browser.Type));
sw.WriteLine(String.Format("Error in: {0}",
Request.Url.ToString()));
sw.WriteLine(String.Format("Error Message: {0}",
objError.Message.ToString()));
sw.WriteLine("Stack Trace:");
sw.WriteLine(objError.StackTrace.ToString());
sw.WriteLine(Environment.NewLine);
sw.WriteLine("---
--");
sw.Close();
}
}
catch
{
//Do something....
}
}
You may also want to look at:
http://support.microsoft.com/defaul...kb;en-us;306355
Hope it helps
Med
"Smith" <Smith@.pricateemail.com> wrote in message
news:e5iA$HRMIHA.1208@.TK2MSFTNGP05.phx.gbl...
> "Med" <nospam@.nowhere.nowhere> wrote in message
> news:%236KXucQMIHA.4228@.TK2MSFTNGP02.phx.gbl...
> The user asp.net process is running under har full permission in the
> folder where the code lives.Also note that the modified date of the error
> file actually change according to the time error occured. It this was
> permission problem, would it be allowed to actually open the file?
> How does ServerClear() helps here?
> Thanks
> S
>
I use the same log class as in the project :
http://www.asp.net/downloads/starter-kits/my-web-pages/
// ========================================
==================================
=====================
//
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See
http://www.microsoft.com/resources/...br />
es.mspx.
// All other rights reserved.
//
// ========================================
==================================
=====================
using System;
using System.Web;
using System.Collections.Generic;
using System.Collections.Specialized;
namespace MyWebPagesStarterKit
{
/// <summary>
/// Utility for writing error messages to a Logfile
/// </summary>
[Serializable]
public class Log : Persistable<Log.LogData>
{
/// <summary>
/// Load Log File from App_Data
/// </summary>
public Log()
{
try
{
LoadData();
}
catch { }
}
/// <summary>
/// List of all Log-Entries in the Logfile
/// </summary>
public List<LogData.LogEntry> Entries
{
get { return _data.LogEntries; }
}
/// <summary>
/// Adding a new Log-Entry to the LogData
/// </summary>
/// <param name="Created"></param>
/// <param name="PageTitle"></param>
public void AddLogEntry(HttpRequest httpRequest, Exception ex)
{
LogData.LogEntry entry = new LogData.LogEntry();
//PageTitle
entry.PageTitle = httpRequest.Url.AbsolutePath;
//Date
entry.Created = DateTime.Now.ToLongDateString() + " " +
DateTime.Now.ToLongTimeString();
//Error
entry.Error = ex.ToString();
//HTTP-Values
foreach (string key in httpRequest.ServerVariables)
{
string value = httpRequest.ServerVariables[key];
if (value != string.Empty)
{
if (key == "ALL_HTTP" || key == "ALL_RAW")
value = value.Replace(System.Environment.NewLine, ", ");
entry.ServerVariables.Add(key + ": " + value);
}
}
/ ========================================
===================================
====================
//
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See
http://www.microsoft.com/resources/...br />
es.mspx.
// All other rights reserved.
//
// ========================================
==================================
=====================
using System;
using System.Web;
using System.IO;
using System.Xml.Serialization;
using System.Web.Caching;
namespace MyWebPagesStarterKit
{
/// <summary>
/// Generic class for a perssitable object. Encapsulates the logic to
load/save data from/to the filesystem. To speed up the acces, caching is
used.
/// </summary>
/// <typeparam name="T">class or struct with all the data-fields that must
be persisted</typeparam>
public abstract class Persistable<T>
{
private String _path;
protected T _data;
/// <summary>
/// Creates a instance of Persistable. Also creates a instance of T
/// </summary>
public Persistable()
{
_data = (T)Activator.CreateInstance(typeof(T));
}
/// <summary>
/// Loads the data from the filesystem. For deserialization a XmlSeralizer
is used.
/// </summary>
protected void LoadData()
{
_path = HttpContext.Current.Server.MapPath(GetDataFilename());
lock (_path)
{
//first check, if the object is maybe already in the cache
object o = HttpContext.Current.Cache[_path];
if (o != null)
{
_data = (T)o;
}
else
{
//if nothing was found in the cache, the data must be loaded from the disk
//load and deserialize the data from the filesystem
using (FileStream reader = File.Open(_path, FileMode.Open, FileAccess.Read,
FileShare.ReadWrite))
{
XmlSerializer serializer = new XmlSerializer(typeof(T));
_data = (T)serializer.Deserialize(reader);
}
HttpContext.Current.Cache.Insert(_path, _data);
}
}
}
/// <summary>
/// Persists the data back to the filesystem
/// </summary>
public void SaveData()
{
_path = HttpContext.Current.Server.MapPath(GetDataFilename());
lock (_path)
{
//insert the data into the cache
HttpContext.Current.Cache.Insert(_path, _data, null, DateTime.MaxValue,
TimeSpan.FromHours(1), CacheItemPriority.Normal, null);
//if the given path does not exist yet, create it
if (!Directory.Exists(Path.GetDirectoryName(_path)))
Directory.CreateDirectory(Path.GetDirectoryName(_path));
//serialize and store the data to the filesystem
using (FileStream writer = File.Create(_path))
{
XmlSerializer serializer = new XmlSerializer(typeof(T));
serializer.Serialize(writer, _data);
}
}
}
//Deletes the data from the cache and filesystem
public virtual bool Delete()
{
bool success = true;
if (File.Exists(_path))
{
lock (_path)
{
try
{
File.Delete(_path);
HttpContext.Current.Cache.Remove(_path);
}
catch { success = false; }
}
}
return success;
}
protected abstract string GetDataFilename();
}
}
Cheers
S

Strange caching behaviour with ASP.net 2.0

Last month we upgraded our production server from .net 1.1 to 2.0. We have
seen some odd behaviour that we do not know how to fix.

It seems that Cache is reset or cleared. We have 2 or 3 global entries in
the the cache with the NotRemovable flag set. I have set up a callback that
writes an entry to the event log to see if the Cache is cleared. It appears
that it is. This happens (randomly) several times a day. I changed our global
entries to use Application state however this just seemed to amplify the
problem.

Could this be a bug with 2.0 or does a server setting need changing
somewhere (it is a windows 2003 server)?

I do not know if the cache is being reset, causing the application to crash,
or something is causing the application to crash, resulting in the cache
being reset (I have added the LegacyUnhandledExceptionPolicy enabled="true"
attribute to the web.config with no joy)

At the same time that an entry is written to say the cache has been cleared,
the performance monitor registers requests /second at 286,000,000

If anyone has experienced similar issues, can shed some light or point me in
the right direction it would be greatly appreciated.

Kind Regards,

Darrencheck the event log for asp.net recycle events. maybe you app is using too
much memeory. you should never count on a cache persistance, the fetch logic
should always handle cache empty case.

-- bruce (sqlwork.com)

"Darren Newton" <Darren Newton@.discussions.microsoft.com> wrote in message
news:2DD4A241-C2B7-44EE-9CF2-06B9BDC65B21@.microsoft.com...
> Last month we upgraded our production server from .net 1.1 to 2.0. We have
> seen some odd behaviour that we do not know how to fix.
> It seems that Cache is reset or cleared. We have 2 or 3 global entries in
> the the cache with the NotRemovable flag set. I have set up a callback
> that
> writes an entry to the event log to see if the Cache is cleared. It
> appears
> that it is. This happens (randomly) several times a day. I changed our
> global
> entries to use Application state however this just seemed to amplify the
> problem.
> Could this be a bug with 2.0 or does a server setting need changing
> somewhere (it is a windows 2003 server)?
> I do not know if the cache is being reset, causing the application to
> crash,
> or something is causing the application to crash, resulting in the cache
> being reset (I have added the LegacyUnhandledExceptionPolicy
> enabled="true"
> attribute to the web.config with no joy)
> At the same time that an entry is written to say the cache has been
> cleared,
> the performance monitor registers requests /second at 286,000,000
> If anyone has experienced similar issues, can shed some light or point me
> in
> the right direction it would be greatly appreciated.
> Kind Regards,
> Darren
Thanks for your reply.

The logic always checks if the cache item exists and repopulates if
necessary. The code worked fine in 1.1 and didn't change when we moved to
2.0. The cache doesn't appear to be repopulating - if an exception occurs the
details are e-mailed to us. The details we receive would suggest that the
cache is empty.

I have been looking through the event log but there is nothing to suggest
asp.net is being recycled.

"bruce barker (sqlwork.com)" wrote:

> check the event log for asp.net recycle events. maybe you app is using too
> much memeory. you should never count on a cache persistance, the fetch logic
> should always handle cache empty case.
> -- bruce (sqlwork.com)
> "Darren Newton" <Darren Newton@.discussions.microsoft.com> wrote in message
> news:2DD4A241-C2B7-44EE-9CF2-06B9BDC65B21@.microsoft.com...
> > Last month we upgraded our production server from .net 1.1 to 2.0. We have
> > seen some odd behaviour that we do not know how to fix.
> > It seems that Cache is reset or cleared. We have 2 or 3 global entries in
> > the the cache with the NotRemovable flag set. I have set up a callback
> > that
> > writes an entry to the event log to see if the Cache is cleared. It
> > appears
> > that it is. This happens (randomly) several times a day. I changed our
> > global
> > entries to use Application state however this just seemed to amplify the
> > problem.
> > Could this be a bug with 2.0 or does a server setting need changing
> > somewhere (it is a windows 2003 server)?
> > I do not know if the cache is being reset, causing the application to
> > crash,
> > or something is causing the application to crash, resulting in the cache
> > being reset (I have added the LegacyUnhandledExceptionPolicy
> > enabled="true"
> > attribute to the web.config with no joy)
> > At the same time that an entry is written to say the cache has been
> > cleared,
> > the performance monitor registers requests /second at 286,000,000
> > If anyone has experienced similar issues, can shed some light or point me
> > in
> > the right direction it would be greatly appreciated.
> > Kind Regards,
> > Darren
>

Strange caching behaviour with ASP.net 2.0

Last month we upgraded our production server from .net 1.1 to 2.0. We have
seen some odd behaviour that we do not know how to fix.
It seems that Cache is reset or cleared. We have 2 or 3 global entries in
the the cache with the NotRemovable flag set. I have set up a callback that
writes an entry to the event log to see if the Cache is cleared. It appears
that it is. This happens (randomly) several times a day. I changed our globa
l
entries to use Application state however this just seemed to amplify the
problem.
Could this be a bug with 2.0 or does a server setting need changing
somewhere (it is a windows 2003 server)?
I do not know if the cache is being reset, causing the application to crash,
or something is causing the application to crash, resulting in the cache
being reset (I have added the LegacyUnhandledExceptionPolicy enabled="true"
attribute to the web.config with no joy)
At the same time that an entry is written to say the cache has been cleared,
the performance monitor registers requests /second at 286,000,000
If anyone has experienced similar issues, can shed some light or point me in
the right direction it would be greatly appreciated.
Kind Regards,
Darrencheck the event log for asp.net recycle events. maybe you app is using too
much memeory. you should never count on a cache persistance, the fetch logic
should always handle cache empty case.
-- bruce (sqlwork.com)
"Darren Newton" <Darren Newton@.discussions.microsoft.com> wrote in message
news:2DD4A241-C2B7-44EE-9CF2-06B9BDC65B21@.microsoft.com...
> Last month we upgraded our production server from .net 1.1 to 2.0. We have
> seen some odd behaviour that we do not know how to fix.
> It seems that Cache is reset or cleared. We have 2 or 3 global entries in
> the the cache with the NotRemovable flag set. I have set up a callback
> that
> writes an entry to the event log to see if the Cache is cleared. It
> appears
> that it is. This happens (randomly) several times a day. I changed our
> global
> entries to use Application state however this just seemed to amplify the
> problem.
> Could this be a bug with 2.0 or does a server setting need changing
> somewhere (it is a windows 2003 server)?
> I do not know if the cache is being reset, causing the application to
> crash,
> or something is causing the application to crash, resulting in the cache
> being reset (I have added the LegacyUnhandledExceptionPolicy
> enabled="true"
> attribute to the web.config with no joy)
> At the same time that an entry is written to say the cache has been
> cleared,
> the performance monitor registers requests /second at 286,000,000
> If anyone has experienced similar issues, can shed some light or point me
> in
> the right direction it would be greatly appreciated.
> Kind Regards,
> Darren
>
Thanks for your reply.
The logic always checks if the cache item exists and repopulates if
necessary. The code worked fine in 1.1 and didn't change when we moved to
2.0. The cache doesn't appear to be repopulating - if an exception occurs th
e
details are e-mailed to us. The details we receive would suggest that the
cache is empty.
I have been looking through the event log but there is nothing to suggest
asp.net is being recycled.
"bruce barker (sqlwork.com)" wrote:

> check the event log for asp.net recycle events. maybe you app is using too
> much memeory. you should never count on a cache persistance, the fetch log
ic
> should always handle cache empty case.
> -- bruce (sqlwork.com)
> "Darren Newton" <Darren Newton@.discussions.microsoft.com> wrote in message
> news:2DD4A241-C2B7-44EE-9CF2-06B9BDC65B21@.microsoft.com...
>
>

Tuesday, March 13, 2012

Strange problem submit button not working

Hi,
I have encountered a strange problem with an asp.net application. I have the
same code deployed on staging and production. On clicking the submit button
the app is supposed to send an email.
This works fine on staging environment for both Netscape and IE.
But on production (it has multiple servers) for some reason it fails in IE
but works in Netscape. So if I now click on submit nothing happens on
production.
Both the environments have the same code. Has anyone ever encountered this.
Not sure if this is the correct place for such a problem, if any one knows a
more suitable group please let me know.
Really puzzled here..any help will be really appreciated.
Thanks!Are using Validation? Are you familiar with the bug in Service Pack 1
for .NET v1.1 ? There's an issue with a WebUIValidation.js file. Could
the production server have intalled this SP1? An interesting page
pertaining to this is here and mention of a fix.
http://weblogs.asp.net/pwilson/arch.../16/230591.aspx
On Tue, 12 Oct 2004 11:33:06 -0700, "jbhan"
<jbhan@.discussions.microsoft.com> wrote:

>Hi,
>I have encountered a strange problem with an asp.net application. I have th
e
>same code deployed on staging and production. On clicking the submit button
>the app is supposed to send an email.
>This works fine on staging environment for both Netscape and IE.
>But on production (it has multiple servers) for some reason it fails in IE
>but works in Netscape. So if I now click on submit nothing happens on
>production.
>Both the environments have the same code. Has anyone ever encountered this.
>Not sure if this is the correct place for such a problem, if any one knows
a
>more suitable group please let me know.
>Really puzzled here..any help will be really appreciated.
>Thanks!
Thanks for the reply. I did come across this but when I inquired about the O
S
and service pack on the production server, they said it was Windows 2000
Service Pack 4 and thats for both the staging and production. They also
mentioned that they have not applied any other update or service pack.
I am thinking maybe the best option is not to use the validators at all?
They just cause problems all the time!
Any ideas?
Thanks,
jbhan
"JuLiE Dxer" wrote:

> Are using Validation? Are you familiar with the bug in Service Pack 1
> for .NET v1.1 ? There's an issue with a WebUIValidation.js file. Could
> the production server have intalled this SP1? An interesting page
> pertaining to this is here and mention of a fix.
>
> http://weblogs.asp.net/pwilson/arch.../16/230591.aspx
>
> On Tue, 12 Oct 2004 11:33:06 -0700, "jbhan"
> <jbhan@.discussions.microsoft.com> wrote:
>
>

Strange problem submit button not working

Hi,

I have encountered a strange problem with an asp.net application. I have the
same code deployed on staging and production. On clicking the submit button
the app is supposed to send an email.
This works fine on staging environment for both netscape and IE.

But on production (it has multiple servers) for some reason it fails in IE
but works in Netscape. So if I now click on submit nothing happens on
production.

Both the environments have the same code. Has anyone ever encountered this.
Not sure if this is the correct place for such a problem, if any one knows a
more suitable group please let me know.
Really puzzled here..any help will be really appreciated.

Thanks!Are using Validation? Are you familiar with the bug in Service Pack 1
for .NET v1.1 ? There's an issue with a WebUIValidation.js file. Could
the production server have intalled this SP1? An interesting page
pertaining to this is here and mention of a fix.

http://weblogs.asp.net/pwilson/arch.../16/230591.aspx

On Tue, 12 Oct 2004 11:33:06 -0700, "jbhan"
<jbhan@.discussions.microsoft.com> wrote:

>Hi,
>I have encountered a strange problem with an asp.net application. I have the
>same code deployed on staging and production. On clicking the submit button
>the app is supposed to send an email.
>This works fine on staging environment for both netscape and IE.
>But on production (it has multiple servers) for some reason it fails in IE
>but works in Netscape. So if I now click on submit nothing happens on
>production.
>Both the environments have the same code. Has anyone ever encountered this.
>Not sure if this is the correct place for such a problem, if any one knows a
>more suitable group please let me know.
>Really puzzled here..any help will be really appreciated.
>Thanks!
Thanks for the reply. I did come across this but when I inquired about the OS
and service pack on the production server, they said it was Windows 2000
Service Pack 4 and thats for both the staging and production. They also
mentioned that they have not applied any other update or service pack.

I am thinking maybe the best option is not to use the validators at all?
They just cause problems all the time!

Any ideas?

Thanks,
jbhan

"JuLiE Dxer" wrote:

> Are using Validation? Are you familiar with the bug in Service Pack 1
> for .NET v1.1 ? There's an issue with a WebUIValidation.js file. Could
> the production server have intalled this SP1? An interesting page
> pertaining to this is here and mention of a fix.
>
> http://weblogs.asp.net/pwilson/arch.../16/230591.aspx
>
> On Tue, 12 Oct 2004 11:33:06 -0700, "jbhan"
> <jbhan@.discussions.microsoft.com> wrote:
> >Hi,
> >I have encountered a strange problem with an asp.net application. I have the
> >same code deployed on staging and production. On clicking the submit button
> >the app is supposed to send an email.
> >This works fine on staging environment for both netscape and IE.
> >But on production (it has multiple servers) for some reason it fails in IE
> >but works in Netscape. So if I now click on submit nothing happens on
> >production.
> >Both the environments have the same code. Has anyone ever encountered this.
> >Not sure if this is the correct place for such a problem, if any one knows a
> >more suitable group please let me know.
> >Really puzzled here..any help will be really appreciated.
> >Thanks!
>