urgent: beta 2.0 error

G

Guest

Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I
keep getting the following error:-

Error In:
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750

--------------------------------------------------------------------------------
System.Security.Cryptography.CryptographicException: Padding is invalid and
cannot be removed. at
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount) at
System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s) at
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext
context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
--------------------------------------------------------------------------------


Error In: http://www.mywebsite.org/WebResource.axd

--------------------------------------------------------------------------------
System.Web.HttpException: This is an invalid webresource request. at
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext
context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
--------------------------------------------------------------------------------


Any ideas?

TIA!
 
G

Guest

You'd have to show the code line(s).
Most likely your DecryptData call is wrapped incorrectly.
 
G

Guest

Curt, I am not making any call to DecryptData. It is the runtime that is
doing it.

thanks!

Curt_C said:
You'd have to show the code line(s).
Most likely your DecryptData call is wrapped incorrectly.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com



Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I
keep getting the following error:-

Error In:
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750

--------------------------------------------------------------------------------
System.Security.Cryptography.CryptographicException: Padding is invalid
and
cannot be removed. at
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount) at
System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s) at
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext
context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
--------------------------------------------------------------------------------


Error In: http://www.mywebsite.org/WebResource.axd

--------------------------------------------------------------------------------
System.Web.HttpException: This is an invalid webresource request. at
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext
context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
--------------------------------------------------------------------------------


Any ideas?

TIA!
 
S

Steven Cheng[MSFT]

Hi Param,

From the error callstack, the problem occurs when trying to decryting the
url string so as to locate a dynamic webresource. Can you locate the code
period which cause this error or is a randomly occured problem that can't
make sure the code point whether fail into the problem? If it's a
reproduceable problem, we can make some further test into it regarding on
the detailed code.

Thanks,

Steven Cheng
Microsoft Online Support

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




--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Tue, 6 Sep 2005 11:42:33 -0500
| Lines: 66
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:122651
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Curt, I am not making any call to DecryptData. It is the runtime that is
| doing it.
|
| thanks!
|
| "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| | > You'd have to show the code line(s).
| > Most likely your DecryptData call is wrapped incorrectly.
| >
| > --
| > Curt Christianson
| > site: http://www.darkfalz.com
| > blog: http://blog.darkfalz.com
| >
| >
| >
| > "(e-mail address removed)" wrote:
| >
| >> Hi all, I have a website running on beta 2.0 on server 2003 web sp1
and I
| >> keep getting the following error:-
| >>
| >> Error In:
| >>
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
19884218750
| >>
| >>
----------------------------------------------------------------------------
----
| >> System.Security.Cryptography.CryptographicException: Padding is
invalid
| >> and
| >> cannot be removed. at
| >>
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| >> inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
| >> Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| >>
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
te[]
| >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| >> System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| >> System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean
| >> useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s) at
| >>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| >> context) at
| >>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
| >> completedSynchronously)
| >>
----------------------------------------------------------------------------
----
| >>
| >>
| >> Error In: http://www.mywebsite.org/WebResource.axd
| >>
| >>
----------------------------------------------------------------------------
----
| >> System.Web.HttpException: This is an invalid webresource request. at
| >>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| >> context) at
| >>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
| >> completedSynchronously)
| >>
----------------------------------------------------------------------------
----
| >>
| >>
| >> Any ideas?
| >>
| >> TIA!
| >>
| >>
| >>
|
|
|
 
G

Guest

Steven, it is totally random and only happening on my public boxes. On my
test boxes it doesnt happen. I turned on IIS logging and noticed that
whenever there is a referrer being logged i.e. user clicked a link from web
based email or other website does this happen every now and then. Any ideas?

TIA!

Steven Cheng said:
Hi Param,

From the error callstack, the problem occurs when trying to decryting the
url string so as to locate a dynamic webresource. Can you locate the code
period which cause this error or is a randomly occured problem that can't
make sure the code point whether fail into the problem? If it's a
reproduceable problem, we can make some further test into it regarding on
the detailed code.

Thanks,

Steven Cheng
Microsoft Online Support

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




--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Tue, 6 Sep 2005 11:42:33 -0500
| Lines: 66
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:122651
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Curt, I am not making any call to DecryptData. It is the runtime that is
| doing it.
|
| thanks!
|
| "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| | > You'd have to show the code line(s).
| > Most likely your DecryptData call is wrapped incorrectly.
| >
| > --
| > Curt Christianson
| > site: http://www.darkfalz.com
| > blog: http://blog.darkfalz.com
| >
| >
| >
| > "(e-mail address removed)" wrote:
| >
| >> Hi all, I have a website running on beta 2.0 on server 2003 web sp1
and I
| >> keep getting the following error:-
| >>
| >> Error In:
| >>
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
19884218750
| >>
| >>
----------------------------------------------------------------------------
----
| >> System.Security.Cryptography.CryptographicException: Padding is
invalid
| >> and
| >> cannot be removed. at
| >>
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| >> inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
outputBuffer,
| >> Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| >>
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
te[]
| >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| >> System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| >>
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean
| >> useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s)
at
| >>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| >> context) at
| >>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
| >> completedSynchronously)
| >>
----------------------------------------------------------------------------
----
| >>
| >>
| >> Error In: http://www.mywebsite.org/WebResource.axd
| >>
| >>
----------------------------------------------------------------------------
----
| >> System.Web.HttpException: This is an invalid webresource request. at
| >>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| >> context) at
| >>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
| >> completedSynchronously)
| >>
----------------------------------------------------------------------------
----
| >>
| >>
| >> Any ideas?
| >>
| >> TIA!
| >>
| >>
| >>
|
|
|
 
G

Guest

OK this problem is serious now. It is happening more frequently:-

Error In:
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=632614619884218750

--------------------------------------------------------------------------------
System.Security.Cryptography.CryptographicException: Padding is invalid and
cannot be removed. at
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount) at
System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s) at
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext
context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
--------------------------------------------------------------------------------


Steven, it is totally random and only happening on my public boxes. On my
test boxes it doesnt happen. I turned on IIS logging and noticed that
whenever there is a referrer being logged i.e. user clicked a link from
web based email or other website does this happen every now and then. Any
ideas?

TIA!

Steven Cheng said:
Hi Param,

From the error callstack, the problem occurs when trying to decryting the
url string so as to locate a dynamic webresource. Can you locate the code
period which cause this error or is a randomly occured problem that can't
make sure the code point whether fail into the problem? If it's a
reproduceable problem, we can make some further test into it regarding on
the detailed code.

Thanks,

Steven Cheng
Microsoft Online Support

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




--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Tue, 6 Sep 2005 11:42:33 -0500
| Lines: 66
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:122651
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Curt, I am not making any call to DecryptData. It is the runtime that
is
| doing it.
|
| thanks!
|
| "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| | > You'd have to show the code line(s).
| > Most likely your DecryptData call is wrapped incorrectly.
| >
| > --
| > Curt Christianson
| > site: http://www.darkfalz.com
| > blog: http://blog.darkfalz.com
| >
| >
| >
| > "(e-mail address removed)" wrote:
| >
| >> Hi all, I have a website running on beta 2.0 on server 2003 web sp1
and I
| >> keep getting the following error:-
| >>
| >> Error In:
| >>
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
19884218750
| >>
| >>
----------------------------------------------------------------------------
----
| >> System.Security.Cryptography.CryptographicException: Padding is
invalid
| >> and
| >> cannot be removed. at
| >>
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| >> inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
outputBuffer,
| >> Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| >>
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
te[]
| >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| >> System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| >>
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean
| >> useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s)
at
| >>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| >> context) at
| >>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
| >> completedSynchronously)
| >>
----------------------------------------------------------------------------
----
| >>
| >>
| >> Error In: http://www.mywebsite.org/WebResource.axd
| >>
| >>
----------------------------------------------------------------------------
----
| >> System.Web.HttpException: This is an invalid webresource request. at
| >>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| >> context) at
| >>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
| >> completedSynchronously)
| >>
----------------------------------------------------------------------------
----
| >>
| >>
| >> Any ideas?
| >>
| >> TIA!
| >>
| >>
| >>
|
|
|
 
G

Guest

Here is error logged in Application event log:-

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 9/7/2005 7:21:02 AM

Event time (UTC): 9/7/2005 12:21:02 PM

Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8

Event sequence: 640

Event occurrence: 9

Event detail code: 0


Application information:

Application domain: /LM/W3SVC/1804169627/Root-1-127705589313252916

Trust level: Full

Application Virtual Path: /

Application Path: D:\website files\prc\

Machine name: WEB2


Process information:

Process ID: 1692

Process name: w3wp.exe

Account name: APPONEDC\prc


Exception information:

Exception type: CryptographicException

Exception message: Padding is invalid and cannot be removed.


Request information:

Request URL:
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=632614619884218750

Request path: /WebResource.axd

User host address: 64.12.116.132

User:

Is authenticated: False

Authentication Type:

Thread account name: APPONEDC\prc


Thread information:

Thread ID: 6

Thread account name: APPONEDC\prc

Is impersonating: False

Stack trace: at
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)

at
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount)

at System.Security.Cryptography.CryptoStream.FlushFinalBlock()

at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
useValidationSymAlgo)

at System.Web.UI.Page.DecryptString(String s)

at
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext
context)

at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)



Custom event details:

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.



TIA!

OK this problem is serious now. It is happening more frequently:-

Error In:
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=632614619884218750

--------------------------------------------------------------------------------
System.Security.Cryptography.CryptographicException: Padding is invalid
and cannot be removed. at
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount) at
System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s) at
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext
context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
--------------------------------------------------------------------------------


Steven, it is totally random and only happening on my public boxes. On my
test boxes it doesnt happen. I turned on IIS logging and noticed that
whenever there is a referrer being logged i.e. user clicked a link from
web based email or other website does this happen every now and then. Any
ideas?

TIA!

Steven Cheng said:
Hi Param,

From the error callstack, the problem occurs when trying to decryting
the
url string so as to locate a dynamic webresource. Can you locate the
code
period which cause this error or is a randomly occured problem that
can't
make sure the code point whether fail into the problem? If it's a
reproduceable problem, we can make some further test into it regarding
on
the detailed code.

Thanks,

Steven Cheng
Microsoft Online Support

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




--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Tue, 6 Sep 2005 11:42:33 -0500
| Lines: 66
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:122651
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Curt, I am not making any call to DecryptData. It is the runtime that
is
| doing it.
|
| thanks!
|
| "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| | > You'd have to show the code line(s).
| > Most likely your DecryptData call is wrapped incorrectly.
| >
| > --
| > Curt Christianson
| > site: http://www.darkfalz.com
| > blog: http://blog.darkfalz.com
| >
| >
| >
| > "(e-mail address removed)" wrote:
| >
| >> Hi all, I have a website running on beta 2.0 on server 2003 web sp1
and I
| >> keep getting the following error:-
| >>
| >> Error In:
| >>
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
19884218750
| >>
| >>
----------------------------------------------------------------------------
----
| >> System.Security.Cryptography.CryptographicException: Padding is
invalid
| >> and
| >> cannot be removed. at
| >>
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| >> inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
outputBuffer,
| >> Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| >>
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
te[]
| >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| >> System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| >>
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean
| >> useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s)
at
| >>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| >> context) at
| >>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
| >> completedSynchronously)
| >>
----------------------------------------------------------------------------
----
| >>
| >>
| >> Error In: http://www.mywebsite.org/WebResource.axd
| >>
| >>
----------------------------------------------------------------------------
----
| >> System.Web.HttpException: This is an invalid webresource request.
at
| >>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| >> context) at
| >>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
| >> completedSynchronously)
| >>
----------------------------------------------------------------------------
----
| >>
| >>
| >> Any ideas?
| >>
| >> TIA!
| >>
| >>
| >>
|
|
|
 
S

Steven Cheng[MSFT]

Hi Param,

I'm afraid the problem is quite hard to throubleshoot. Is your
webapplication built on the same machine with the same running .net
framework(2.0) or built on other machine and move to this problem server?
Just to check whether it could be a version mismatch issue. Also, is this
problem occurable for any 2.0 asp.net web application or this particular
application? If you can also repro this problem with some other
application, I'm afraid there must be something wrong with the underlying
runtime framework, I'd suggest you reinstalling the 2.0 framework on the
server. Otherwise, we can try looking into the application's code to see
which portion of the app may be the root cause.

Thanks,

Steven Cheng
Microsoft Online Support

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







--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<e6#[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Wed, 7 Sep 2005 08:57:52 -0500
| Lines: 301
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| X-RFC2646: Format=Flowed; Response
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:122879
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Here is error logged in Application event log:-
|
| Event code: 3005
|
| Event message: An unhandled exception has occurred.
|
| Event time: 9/7/2005 7:21:02 AM
|
| Event time (UTC): 9/7/2005 12:21:02 PM
|
| Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8
|
| Event sequence: 640
|
| Event occurrence: 9
|
| Event detail code: 0
|
|
| Application information:
|
| Application domain: /LM/W3SVC/1804169627/Root-1-127705589313252916
|
| Trust level: Full
|
| Application Virtual Path: /
|
| Application Path: D:\website files\prc\
|
| Machine name: WEB2
|
|
| Process information:
|
| Process ID: 1692
|
| Process name: w3wp.exe
|
| Account name: APPONEDC\prc
|
|
| Exception information:
|
| Exception type: CryptographicException
|
| Exception message: Padding is invalid and cannot be removed.
|
|
| Request information:
|
| Request URL:
|
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
19884218750
|
| Request path: /WebResource.axd
|
| User host address: 64.12.116.132
|
| User:
|
| Is authenticated: False
|
| Authentication Type:
|
| Thread account name: APPONEDC\prc
|
|
| Thread information:
|
| Thread ID: 6
|
| Thread account name: APPONEDC\prc
|
| Is impersonating: False
|
| Stack trace: at
| System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
| Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
|
| at
|
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
te[]
| inputBuffer, Int32 inputOffset, Int32 inputCount)
|
| at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
|
| at
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
| useValidationSymAlgo)
|
| at System.Web.UI.Page.DecryptString(String s)
|
| at
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| context)
|
| at
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
|
| at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
| completedSynchronously)
|
|
|
| Custom event details:
|
| For more information, see Help and Support Center at
| http://go.microsoft.com/fwlink/events.asp.
|
|
|
| TIA!
|
| | > OK this problem is serious now. It is happening more frequently:-
| >
| > Error In:
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
19884218750
| >
| >
----------------------------------------------------------------------------
----
| > System.Security.Cryptography.CryptographicException: Padding is invalid
| > and cannot be removed. at
| >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
| > Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
te[]
| > inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean
| > useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s) at
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| > context) at
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| > at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
| > completedSynchronously)
| >
----------------------------------------------------------------------------
----
| >
| >
| > | >> Steven, it is totally random and only happening on my public boxes. On
my
| >> test boxes it doesnt happen. I turned on IIS logging and noticed that
| >> whenever there is a referrer being logged i.e. user clicked a link
from
| >> web based email or other website does this happen every now and then.
Any
| >> ideas?
| >>
| >> TIA!
| >>
| >> | >>> Hi Param,
| >>>
| >>> From the error callstack, the problem occurs when trying to decryting
| >>> the
| >>> url string so as to locate a dynamic webresource. Can you locate the
| >>> code
| >>> period which cause this error or is a randomly occured problem that
| >>> can't
| >>> make sure the code point whether fail into the problem? If it's a
| >>> reproduceable problem, we can make some further test into it
regarding
| >>> on
| >>> the detailed code.
| >>>
| >>> Thanks,
| >>>
| >>> Steven Cheng
| >>> Microsoft Online Support
| >>>
| >>> Get Secure! www.microsoft.com/security
| >>> (This posting is provided "AS IS", with no warranties, and confers no
| >>> rights.)
| >>>
| >>>
| >>>
| >>>
| >>> --------------------
| >>> | From: <[email protected]>
| >>> | References: <#[email protected]>
| >>> <[email protected]>
| >>> | Subject: Re: urgent: beta 2.0 error
| >>> | Date: Tue, 6 Sep 2005 11:42:33 -0500
| >>> | Lines: 66
| >>> | X-Priority: 3
| >>> | X-MSMail-Priority: Normal
| >>> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| >>> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| >>> | X-RFC2646: Format=Flowed; Original
| >>> | Message-ID: <[email protected]>
| >>> | Newsgroups: microsoft.public.dotnet.framework.aspnet
| >>> | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| >>> | Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| >>> | Xref: TK2MSFTNGXA01.phx.gbl
| >>> microsoft.public.dotnet.framework.aspnet:122651
| >>> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| >>> |
| >>> | Curt, I am not making any call to DecryptData. It is the runtime
that
| >>> is
| >>> | doing it.
| >>> |
| >>> | thanks!
| >>> |
| >>> | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| >>> | | >>> | > You'd have to show the code line(s).
| >>> | > Most likely your DecryptData call is wrapped incorrectly.
| >>> | >
| >>> | > --
| >>> | > Curt Christianson
| >>> | > site: http://www.darkfalz.com
| >>> | > blog: http://blog.darkfalz.com
| >>> | >
| >>> | >
| >>> | >
| >>> | > "(e-mail address removed)" wrote:
| >>> | >
| >>> | >> Hi all, I have a website running on beta 2.0 on server 2003 web
sp1
| >>> and I
| >>> | >> keep getting the following error:-
| >>> | >>
| >>> | >> Error In:
| >>> | >>
| >>>
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
| >>> 19884218750
| >>> | >>
| >>> | >>
| >>>
----------------------------------------------------------------------------
| >>> ----
| >>> | >> System.Security.Cryptography.CryptographicException: Padding is
| >>> invalid
| >>> | >> and
| >>> | >> cannot be removed. at
| >>> | >>
| >>>
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| >>> outputBuffer,
| >>> | >> Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| >>> | >>
| >>>
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| >>> te[]
| >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| >>> | >> System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| >>> | >>
| >>>
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| >>> | >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
| >>> Boolean
| >>> | >> useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String
s)
| >>> at
| >>> | >>
| >>>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| >>> quest(HttpContext
| >>> | >> context) at
| >>> | >>
| >>>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| >>> on.IExecutionStep.Execute()
| >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| >>> Boolean&
| >>> | >> completedSynchronously)
| >>> | >>
| >>>
----------------------------------------------------------------------------
| >>> ----
| >>> | >>
| >>> | >>
| >>> | >> Error In: http://www.mywebsite.org/WebResource.axd
| >>> | >>
| >>> | >>
| >>>
----------------------------------------------------------------------------
| >>> ----
| >>> | >> System.Web.HttpException: This is an invalid webresource
request.
| >>> at
| >>> | >>
| >>>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| >>> quest(HttpContext
| >>> | >> context) at
| >>> | >>
| >>>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| >>> on.IExecutionStep.Execute()
| >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| >>> Boolean&
| >>> | >> completedSynchronously)
| >>> | >>
| >>>
----------------------------------------------------------------------------
| >>> ----
| >>> | >>
| >>> | >>
| >>> | >> Any ideas?
| >>> | >>
| >>> | >> TIA!
| >>> | >>
| >>> | >>
| >>> | >>
| >>> |
| >>> |
| >>> |
| >>>
| >>
| >>
| >
| >
|
|
|
 
G

Guest

Steve, this problem is happening on 2 machines for the same website. Here
are the specs:-

Dev Machine:- running Yukon June CTP and the version of .net that came with
it. Does not occur there, but then again no real world traffic coming to it.
OS - Server 2003 Std SP1

Prod Machines - running latest beta version of .net 2.0 downloaded from web
1 week ago. OS - Server 2003 Web SP1.

Again, I dont see anything in code that could cause this since it is
referencing webresource.axd which is something generated by the runtime...
Any ideas?

thanks!

Steven Cheng said:
Hi Param,

I'm afraid the problem is quite hard to throubleshoot. Is your
webapplication built on the same machine with the same running .net
framework(2.0) or built on other machine and move to this problem server?
Just to check whether it could be a version mismatch issue. Also, is this
problem occurable for any 2.0 asp.net web application or this particular
application? If you can also repro this problem with some other
application, I'm afraid there must be something wrong with the underlying
runtime framework, I'd suggest you reinstalling the 2.0 framework on the
server. Otherwise, we can try looking into the application's code to see
which portion of the app may be the root cause.

Thanks,

Steven Cheng
Microsoft Online Support

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







--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<e6#[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Wed, 7 Sep 2005 08:57:52 -0500
| Lines: 301
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| X-RFC2646: Format=Flowed; Response
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:122879
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Here is error logged in Application event log:-
|
| Event code: 3005
|
| Event message: An unhandled exception has occurred.
|
| Event time: 9/7/2005 7:21:02 AM
|
| Event time (UTC): 9/7/2005 12:21:02 PM
|
| Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8
|
| Event sequence: 640
|
| Event occurrence: 9
|
| Event detail code: 0
|
|
| Application information:
|
| Application domain: /LM/W3SVC/1804169627/Root-1-127705589313252916
|
| Trust level: Full
|
| Application Virtual Path: /
|
| Application Path: D:\website files\prc\
|
| Machine name: WEB2
|
|
| Process information:
|
| Process ID: 1692
|
| Process name: w3wp.exe
|
| Account name: APPONEDC\prc
|
|
| Exception information:
|
| Exception type: CryptographicException
|
| Exception message: Padding is invalid and cannot be removed.
|
|
| Request information:
|
| Request URL:
|
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
19884218750
|
| Request path: /WebResource.axd
|
| User host address: 64.12.116.132
|
| User:
|
| Is authenticated: False
|
| Authentication Type:
|
| Thread account name: APPONEDC\prc
|
|
| Thread information:
|
| Thread ID: 6
|
| Thread account name: APPONEDC\prc
|
| Is impersonating: False
|
| Stack trace: at
| System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
| Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
|
| at
|
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
te[]
| inputBuffer, Int32 inputOffset, Int32 inputCount)
|
| at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
|
| at
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean
| useValidationSymAlgo)
|
| at System.Web.UI.Page.DecryptString(String s)
|
| at
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| context)
|
| at
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
|
| at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
| completedSynchronously)
|
|
|
| Custom event details:
|
| For more information, see Help and Support Center at
| http://go.microsoft.com/fwlink/events.asp.
|
|
|
| TIA!
|
| | > OK this problem is serious now. It is happening more frequently:-
| >
| > Error In:
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
19884218750
| >
| >
----------------------------------------------------------------------------
----
| > System.Security.Cryptography.CryptographicException: Padding is
invalid
| > and cannot be removed. at
| >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
outputBuffer,
| > Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
te[]
| > inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean
| > useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s) at
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| > context) at
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| > at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
| > completedSynchronously)
| >
----------------------------------------------------------------------------
----
| >
| >
| > | >> Steven, it is totally random and only happening on my public boxes.
On
my
| >> test boxes it doesnt happen. I turned on IIS logging and noticed that
| >> whenever there is a referrer being logged i.e. user clicked a link
from
| >> web based email or other website does this happen every now and then.
Any
| >> ideas?
| >>
| >> TIA!
| >>
| >> | >>> Hi Param,
| >>>
| >>> From the error callstack, the problem occurs when trying to
decryting
| >>> the
| >>> url string so as to locate a dynamic webresource. Can you locate the
| >>> code
| >>> period which cause this error or is a randomly occured problem that
| >>> can't
| >>> make sure the code point whether fail into the problem? If it's a
| >>> reproduceable problem, we can make some further test into it
regarding
| >>> on
| >>> the detailed code.
| >>>
| >>> Thanks,
| >>>
| >>> Steven Cheng
| >>> Microsoft Online Support
| >>>
| >>> Get Secure! www.microsoft.com/security
| >>> (This posting is provided "AS IS", with no warranties, and confers
no
| >>> rights.)
| >>>
| >>>
| >>>
| >>>
| >>> --------------------
| >>> | From: <[email protected]>
| >>> | References: <#[email protected]>
| >>> <[email protected]>
| >>> | Subject: Re: urgent: beta 2.0 error
| >>> | Date: Tue, 6 Sep 2005 11:42:33 -0500
| >>> | Lines: 66
| >>> | X-Priority: 3
| >>> | X-MSMail-Priority: Normal
| >>> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| >>> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| >>> | X-RFC2646: Format=Flowed; Original
| >>> | Message-ID: <[email protected]>
| >>> | Newsgroups: microsoft.public.dotnet.framework.aspnet
| >>> | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| >>> | Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| >>> | Xref: TK2MSFTNGXA01.phx.gbl
| >>> microsoft.public.dotnet.framework.aspnet:122651
| >>> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| >>> |
| >>> | Curt, I am not making any call to DecryptData. It is the runtime
that
| >>> is
| >>> | doing it.
| >>> |
| >>> | thanks!
| >>> |
| >>> | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| >>> | | >>> | > You'd have to show the code line(s).
| >>> | > Most likely your DecryptData call is wrapped incorrectly.
| >>> | >
| >>> | > --
| >>> | > Curt Christianson
| >>> | > site: http://www.darkfalz.com
| >>> | > blog: http://blog.darkfalz.com
| >>> | >
| >>> | >
| >>> | >
| >>> | > "(e-mail address removed)" wrote:
| >>> | >
| >>> | >> Hi all, I have a website running on beta 2.0 on server 2003 web
sp1
| >>> and I
| >>> | >> keep getting the following error:-
| >>> | >>
| >>> | >> Error In:
| >>> | >>
| >>>
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
| >>> 19884218750
| >>> | >>
| >>> | >>
| >>>
----------------------------------------------------------------------------
| >>> ----
| >>> | >> System.Security.Cryptography.CryptographicException: Padding is
| >>> invalid
| >>> | >> and
| >>> | >> cannot be removed. at
| >>> | >>
| >>>
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| >>> outputBuffer,
| >>> | >> Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| >>> | >>
| >>>
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| >>> te[]
| >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| >>> | >> System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| >>> | >>
| >>>
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| >>> | >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
length,
| >>> Boolean
| >>> | >> useValidationSymAlgo) at
System.Web.UI.Page.DecryptString(String
s)
| >>> at
| >>> | >>
| >>>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| >>> quest(HttpContext
| >>> | >> context) at
| >>> | >>
| >>>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| >>> on.IExecutionStep.Execute()
| >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| >>> Boolean&
| >>> | >> completedSynchronously)
| >>> | >>
| >>>
----------------------------------------------------------------------------
| >>> ----
| >>> | >>
| >>> | >>
| >>> | >> Error In: http://www.mywebsite.org/WebResource.axd
| >>> | >>
| >>> | >>
| >>>
----------------------------------------------------------------------------
| >>> ----
| >>> | >> System.Web.HttpException: This is an invalid webresource
request.
| >>> at
| >>> | >>
| >>>
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| >>> quest(HttpContext
| >>> | >> context) at
| >>> | >>
| >>>
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| >>> on.IExecutionStep.Execute()
| >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| >>> Boolean&
| >>> | >> completedSynchronously)
| >>> | >>
| >>>
----------------------------------------------------------------------------
| >>> ----
| >>> | >>
| >>> | >>
| >>> | >> Any ideas?
| >>> | >>
| >>> | >> TIA!
| >>> | >>
| >>> | >>
| >>> | >>
| >>> |
| >>> |
| >>> |
| >>>
| >>
| >>
| >
| >
|
|
|
 
S

Steven Cheng[MSFT]

Thanks for your followup Param,

So would you provide me a simple page which will cause the problem on your
side so that I can perform some tests on my side? I'll try have a trace in
the underlying code to see whether we can find any clues.

Thanks,

Steven Cheng
Microsoft Online Support

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

--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<e6#[email protected]>
<#[email protected]>
<509#[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Thu, 8 Sep 2005 13:11:44 -0500
| Lines: 429
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
1.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:342694
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steve, this problem is happening on 2 machines for the same website. Here
| are the specs:-
|
| Dev Machine:- running Yukon June CTP and the version of .net that came
with
| it. Does not occur there, but then again no real world traffic coming to
it.
| OS - Server 2003 Std SP1
|
| Prod Machines - running latest beta version of .net 2.0 downloaded from
web
| 1 week ago. OS - Server 2003 Web SP1.
|
| Again, I dont see anything in code that could cause this since it is
| referencing webresource.axd which is something generated by the
runtime...
| Any ideas?
|
| thanks!
|
| | > Hi Param,
| >
| > I'm afraid the problem is quite hard to throubleshoot. Is your
| > webapplication built on the same machine with the same running .net
| > framework(2.0) or built on other machine and move to this problem
server?
| > Just to check whether it could be a version mismatch issue. Also, is
this
| > problem occurable for any 2.0 asp.net web application or this particular
| > application? If you can also repro this problem with some other
| > application, I'm afraid there must be something wrong with the
underlying
| > runtime framework, I'd suggest you reinstalling the 2.0 framework on the
| > server. Otherwise, we can try looking into the application's code to see
| > which portion of the app may be the root cause.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: <[email protected]>
| > | References: <#[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <e6#[email protected]>
| > | Subject: Re: urgent: beta 2.0 error
| > | Date: Wed, 7 Sep 2005 08:57:52 -0500
| > | Lines: 301
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | X-RFC2646: Format=Flowed; Response
| > | Message-ID: <#[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:122879
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Here is error logged in Application event log:-
| > |
| > | Event code: 3005
| > |
| > | Event message: An unhandled exception has occurred.
| > |
| > | Event time: 9/7/2005 7:21:02 AM
| > |
| > | Event time (UTC): 9/7/2005 12:21:02 PM
| > |
| > | Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8
| > |
| > | Event sequence: 640
| > |
| > | Event occurrence: 9
| > |
| > | Event detail code: 0
| > |
| > |
| > | Application information:
| > |
| > | Application domain: /LM/W3SVC/1804169627/Root-1-127705589313252916
| > |
| > | Trust level: Full
| > |
| > | Application Virtual Path: /
| > |
| > | Application Path: D:\website files\prc\
| > |
| > | Machine name: WEB2
| > |
| > |
| > | Process information:
| > |
| > | Process ID: 1692
| > |
| > | Process name: w3wp.exe
| > |
| > | Account name: APPONEDC\prc
| > |
| > |
| > | Exception information:
| > |
| > | Exception type: CryptographicException
| > |
| > | Exception message: Padding is invalid and cannot be removed.
| > |
| > |
| > | Request information:
| > |
| > | Request URL:
| > |
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > 19884218750
| > |
| > | Request path: /WebResource.axd
| > |
| > | User host address: 64.12.116.132
| > |
| > | User:
| > |
| > | Is authenticated: False
| > |
| > | Authentication Type:
| > |
| > | Thread account name: APPONEDC\prc
| > |
| > |
| > | Thread information:
| > |
| > | Thread ID: 6
| > |
| > | Thread account name: APPONEDC\prc
| > |
| > | Is impersonating: False
| > |
| > | Stack trace: at
| > |
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
outputBuffer,
| > | Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
| > |
| > | at
| > |
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > te[]
| > | inputBuffer, Int32 inputOffset, Int32 inputCount)
| > |
| > | at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > |
| > | at
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
| > Boolean
| > | useValidationSymAlgo)
| > |
| > | at System.Web.UI.Page.DecryptString(String s)
| > |
| > | at
| > |
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > quest(HttpContext
| > | context)
| > |
| > | at
| > |
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > on.IExecutionStep.Execute()
| > |
| > | at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
| > | completedSynchronously)
| > |
| > |
| > |
| > | Custom event details:
| > |
| > | For more information, see Help and Support Center at
| > | http://go.microsoft.com/fwlink/events.asp.
| > |
| > |
| > |
| > | TIA!
| > |
| > | | > | > OK this problem is serious now. It is happening more frequently:-
| > | >
| > | > Error In:
| > | >
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > 19884218750
| > | >
| > | >
| >
----------------------------------------------------------------------------
| > ----
| > | > System.Security.Cryptography.CryptographicException: Padding is
| > invalid
| > | > and cannot be removed. at
| > | >
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | > inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > outputBuffer,
| > | > Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > te[]
| > | > inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > | > System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| > | >
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | > fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
| > Boolean
| > | > useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s)
at
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > quest(HttpContext
| > | > context) at
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > on.IExecutionStep.Execute()
| > | > at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| > Boolean&
| > | > completedSynchronously)
| > | >
| >
----------------------------------------------------------------------------
| > ----
| > | >
| > | >
| > | > | > | >> Steven, it is totally random and only happening on my public
boxes.
| > On
| > my
| > | >> test boxes it doesnt happen. I turned on IIS logging and noticed
that
| > | >> whenever there is a referrer being logged i.e. user clicked a link
| > from
| > | >> web based email or other website does this happen every now and
then.
| > Any
| > | >> ideas?
| > | >>
| > | >> TIA!
| > | >>
message
| > | >> | > | >>> Hi Param,
| > | >>>
| > | >>> From the error callstack, the problem occurs when trying to
| > decryting
| > | >>> the
| > | >>> url string so as to locate a dynamic webresource. Can you locate
the
| > | >>> code
| > | >>> period which cause this error or is a randomly occured problem
that
| > | >>> can't
| > | >>> make sure the code point whether fail into the problem? If it's a
| > | >>> reproduceable problem, we can make some further test into it
| > regarding
| > | >>> on
| > | >>> the detailed code.
| > | >>>
| > | >>> Thanks,
| > | >>>
| > | >>> Steven Cheng
| > | >>> Microsoft Online Support
| > | >>>
| > | >>> Get Secure! www.microsoft.com/security
| > | >>> (This posting is provided "AS IS", with no warranties, and
confers
| > no
| > | >>> rights.)
| > | >>>
| > | >>>
| > | >>>
| > | >>>
| > | >>> --------------------
| > | >>> | From: <[email protected]>
| > | >>> | References: <#[email protected]>
| > | >>> <[email protected]>
| > | >>> | Subject: Re: urgent: beta 2.0 error
| > | >>> | Date: Tue, 6 Sep 2005 11:42:33 -0500
| > | >>> | Lines: 66
| > | >>> | X-Priority: 3
| > | >>> | X-MSMail-Priority: Normal
| > | >>> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | >>> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | >>> | X-RFC2646: Format=Flowed; Original
| > | >>> | Message-ID: <[email protected]>
| > | >>> | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | >>> | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| > | >>> | Path:
| > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| > | >>> | Xref: TK2MSFTNGXA01.phx.gbl
| > | >>> microsoft.public.dotnet.framework.aspnet:122651
| > | >>> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | >>> |
| > | >>> | Curt, I am not making any call to DecryptData. It is the runtime
| > that
| > | >>> is
| > | >>> | doing it.
| > | >>> |
| > | >>> | thanks!
| > | >>> |
| > | >>> | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| > | >>> | | > | >>> | > You'd have to show the code line(s).
| > | >>> | > Most likely your DecryptData call is wrapped incorrectly.
| > | >>> | >
| > | >>> | > --
| > | >>> | > Curt Christianson
| > | >>> | > site: http://www.darkfalz.com
| > | >>> | > blog: http://blog.darkfalz.com
| > | >>> | >
| > | >>> | >
| > | >>> | >
| > | >>> | > "(e-mail address removed)" wrote:
| > | >>> | >
| > | >>> | >> Hi all, I have a website running on beta 2.0 on server 2003
web
| > sp1
| > | >>> and I
| > | >>> | >> keep getting the following error:-
| > | >>> | >>
| > | >>> | >> Error In:
| > | >>> | >>
| > | >>>
| >
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
| > | >>> 19884218750
| > | >>> | >>
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >> System.Security.Cryptography.CryptographicException: Padding
is
| > | >>> invalid
| > | >>> | >> and
| > | >>> | >> cannot be removed. at
| > | >>> | >>
| > | >>>
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > | >>> outputBuffer,
| > | >>> | >> Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at
| > | >>> | >>
| > | >>>
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | >>> te[]
| > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > | >>> | >> System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at
| > | >>> | >>
| > | >>>
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | >>> | >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
| > length,
| > | >>> Boolean
| > | >>> | >> useValidationSymAlgo) at
| > System.Web.UI.Page.DecryptString(String
| > s)
| > | >>> at
| > | >>> | >>
| > | >>>
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | >>> quest(HttpContext
| > | >>> | >> context) at
| > | >>> | >>
| > | >>>
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | >>> on.IExecutionStep.Execute()
| > | >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep
step,
| > | >>> Boolean&
| > | >>> | >> completedSynchronously)
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >>
| > | >>> | >>
| > | >>> | >> Error In: http://www.mywebsite.org/WebResource.axd
| > | >>> | >>
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >> System.Web.HttpException: This is an invalid webresource
| > request.
| > | >>> at
| > | >>> | >>
| > | >>>
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | >>> quest(HttpContext
| > | >>> | >> context) at
| > | >>> | >>
| > | >>>
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | >>> on.IExecutionStep.Execute()
| > | >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep
step,
| > | >>> Boolean&
| > | >>> | >> completedSynchronously)
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >>
| > | >>> | >>
| > | >>> | >> Any ideas?
| > | >>> | >>
| > | >>> | >> TIA!
| > | >>> | >>
| > | >>> | >>
| > | >>> | >>
| > | >>> |
| > | >>> |
| > | >>> |
| > | >>>
| > | >>
| > | >>
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|
 
G

Guest

Steve, where can I email you the code?

thanks!

Steven Cheng said:
Thanks for your followup Param,

So would you provide me a simple page which will cause the problem on your
side so that I can perform some tests on my side? I'll try have a trace
in
the underlying code to see whether we can find any clues.

Thanks,

Steven Cheng
Microsoft Online Support

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

--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<e6#[email protected]>
<#[email protected]>
<509#[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Thu, 8 Sep 2005 13:11:44 -0500
| Lines: 429
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
1.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:342694
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steve, this problem is happening on 2 machines for the same website.
Here
| are the specs:-
|
| Dev Machine:- running Yukon June CTP and the version of .net that came
with
| it. Does not occur there, but then again no real world traffic coming to
it.
| OS - Server 2003 Std SP1
|
| Prod Machines - running latest beta version of .net 2.0 downloaded from
web
| 1 week ago. OS - Server 2003 Web SP1.
|
| Again, I dont see anything in code that could cause this since it is
| referencing webresource.axd which is something generated by the
runtime...
| Any ideas?
|
| thanks!
|
| | > Hi Param,
| >
| > I'm afraid the problem is quite hard to throubleshoot. Is your
| > webapplication built on the same machine with the same running .net
| > framework(2.0) or built on other machine and move to this problem
server?
| > Just to check whether it could be a version mismatch issue. Also, is
this
| > problem occurable for any 2.0 asp.net web application or this
particular
| > application? If you can also repro this problem with some other
| > application, I'm afraid there must be something wrong with the
underlying
| > runtime framework, I'd suggest you reinstalling the 2.0 framework on
the
| > server. Otherwise, we can try looking into the application's code to
see
| > which portion of the app may be the root cause.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: <[email protected]>
| > | References: <#[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <e6#[email protected]>
| > | Subject: Re: urgent: beta 2.0 error
| > | Date: Wed, 7 Sep 2005 08:57:52 -0500
| > | Lines: 301
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | X-RFC2646: Format=Flowed; Response
| > | Message-ID: <#[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:122879
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Here is error logged in Application event log:-
| > |
| > | Event code: 3005
| > |
| > | Event message: An unhandled exception has occurred.
| > |
| > | Event time: 9/7/2005 7:21:02 AM
| > |
| > | Event time (UTC): 9/7/2005 12:21:02 PM
| > |
| > | Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8
| > |
| > | Event sequence: 640
| > |
| > | Event occurrence: 9
| > |
| > | Event detail code: 0
| > |
| > |
| > | Application information:
| > |
| > | Application domain: /LM/W3SVC/1804169627/Root-1-127705589313252916
| > |
| > | Trust level: Full
| > |
| > | Application Virtual Path: /
| > |
| > | Application Path: D:\website files\prc\
| > |
| > | Machine name: WEB2
| > |
| > |
| > | Process information:
| > |
| > | Process ID: 1692
| > |
| > | Process name: w3wp.exe
| > |
| > | Account name: APPONEDC\prc
| > |
| > |
| > | Exception information:
| > |
| > | Exception type: CryptographicException
| > |
| > | Exception message: Padding is invalid and cannot be removed.
| > |
| > |
| > | Request information:
| > |
| > | Request URL:
| > |
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > 19884218750
| > |
| > | Request path: /WebResource.axd
| > |
| > | User host address: 64.12.116.132
| > |
| > | User:
| > |
| > | Is authenticated: False
| > |
| > | Authentication Type:
| > |
| > | Thread account name: APPONEDC\prc
| > |
| > |
| > | Thread information:
| > |
| > | Thread ID: 6
| > |
| > | Thread account name: APPONEDC\prc
| > |
| > | Is impersonating: False
| > |
| > | Stack trace: at
| > |
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
outputBuffer,
| > | Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
| > |
| > | at
| > |
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > te[]
| > | inputBuffer, Int32 inputOffset, Int32 inputCount)
| > |
| > | at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > |
| > | at
| >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
| > Boolean
| > | useValidationSymAlgo)
| > |
| > | at System.Web.UI.Page.DecryptString(String s)
| > |
| > | at
| > |
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > quest(HttpContext
| > | context)
| > |
| > | at
| > |
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > on.IExecutionStep.Execute()
| > |
| > | at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
| > | completedSynchronously)
| > |
| > |
| > |
| > | Custom event details:
| > |
| > | For more information, see Help and Support Center at
| > | http://go.microsoft.com/fwlink/events.asp.
| > |
| > |
| > |
| > | TIA!
| > |
| > | | > | > OK this problem is serious now. It is happening more frequently:-
| > | >
| > | > Error In:
| > | >
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > 19884218750
| > | >
| > | >
| >
----------------------------------------------------------------------------
| > ----
| > | > System.Security.Cryptography.CryptographicException: Padding is
| > invalid
| > | > and cannot be removed. at
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | > inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > outputBuffer,
| > | > Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > te[]
| > | > inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > | > System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| > | >
| >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | > fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
| > Boolean
| > | > useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String
s)
at
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > quest(HttpContext
| > | > context) at
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > on.IExecutionStep.Execute()
| > | > at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| > Boolean&
| > | > completedSynchronously)
| > | >
| >
----------------------------------------------------------------------------
| > ----
| > | >
| > | >
| > | > | > | >> Steven, it is totally random and only happening on my public
boxes.
| > On
| > my
| > | >> test boxes it doesnt happen. I turned on IIS logging and noticed
that
| > | >> whenever there is a referrer being logged i.e. user clicked a
link
| > from
| > | >> web based email or other website does this happen every now and
then.
| > Any
| > | >> ideas?
| > | >>
| > | >> TIA!
| > | >>
message
| > | >> | > | >>> Hi Param,
| > | >>>
| > | >>> From the error callstack, the problem occurs when trying to
| > decryting
| > | >>> the
| > | >>> url string so as to locate a dynamic webresource. Can you locate
the
| > | >>> code
| > | >>> period which cause this error or is a randomly occured problem
that
| > | >>> can't
| > | >>> make sure the code point whether fail into the problem? If it's
a
| > | >>> reproduceable problem, we can make some further test into it
| > regarding
| > | >>> on
| > | >>> the detailed code.
| > | >>>
| > | >>> Thanks,
| > | >>>
| > | >>> Steven Cheng
| > | >>> Microsoft Online Support
| > | >>>
| > | >>> Get Secure! www.microsoft.com/security
| > | >>> (This posting is provided "AS IS", with no warranties, and
confers
| > no
| > | >>> rights.)
| > | >>>
| > | >>>
| > | >>>
| > | >>>
| > | >>> --------------------
| > | >>> | From: <[email protected]>
| > | >>> | References: <#[email protected]>
| > | >>> <[email protected]>
| > | >>> | Subject: Re: urgent: beta 2.0 error
| > | >>> | Date: Tue, 6 Sep 2005 11:42:33 -0500
| > | >>> | Lines: 66
| > | >>> | X-Priority: 3
| > | >>> | X-MSMail-Priority: Normal
| > | >>> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | >>> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | >>> | X-RFC2646: Format=Flowed; Original
| > | >>> | Message-ID: <[email protected]>
| > | >>> | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | >>> | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| > | >>> | Path:
| > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| > | >>> | Xref: TK2MSFTNGXA01.phx.gbl
| > | >>> microsoft.public.dotnet.framework.aspnet:122651
| > | >>> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | >>> |
| > | >>> | Curt, I am not making any call to DecryptData. It is the
runtime
| > that
| > | >>> is
| > | >>> | doing it.
| > | >>> |
| > | >>> | thanks!
| > | >>> |
| > | >>> | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| > | >>> | | > | >>> | > You'd have to show the code line(s).
| > | >>> | > Most likely your DecryptData call is wrapped incorrectly.
| > | >>> | >
| > | >>> | > --
| > | >>> | > Curt Christianson
| > | >>> | > site: http://www.darkfalz.com
| > | >>> | > blog: http://blog.darkfalz.com
| > | >>> | >
| > | >>> | >
| > | >>> | >
| > | >>> | > "(e-mail address removed)" wrote:
| > | >>> | >
| > | >>> | >> Hi all, I have a website running on beta 2.0 on server 2003
web
| > sp1
| > | >>> and I
| > | >>> | >> keep getting the following error:-
| > | >>> | >>
| > | >>> | >> Error In:
| > | >>> | >>
| > | >>>
| >
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
| > | >>> 19884218750
| > | >>> | >>
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >> System.Security.Cryptography.CryptographicException:
Padding
is
| > | >>> invalid
| > | >>> | >> and
| > | >>> | >> cannot be removed. at
| > | >>> | >>
| > | >>>
| >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > | >>> outputBuffer,
| > | >>> | >> Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at
| > | >>> | >>
| > | >>>
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | >>> te[]
| > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > | >>> | >> System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at
| > | >>> | >>
| > | >>>
| >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | >>> | >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
| > length,
| > | >>> Boolean
| > | >>> | >> useValidationSymAlgo) at
| > System.Web.UI.Page.DecryptString(String
| > s)
| > | >>> at
| > | >>> | >>
| > | >>>
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | >>> quest(HttpContext
| > | >>> | >> context) at
| > | >>> | >>
| > | >>>
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | >>> on.IExecutionStep.Execute()
| > | >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep
step,
| > | >>> Boolean&
| > | >>> | >> completedSynchronously)
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >>
| > | >>> | >>
| > | >>> | >> Error In: http://www.mywebsite.org/WebResource.axd
| > | >>> | >>
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >> System.Web.HttpException: This is an invalid webresource
| > request.
| > | >>> at
| > | >>> | >>
| > | >>>
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | >>> quest(HttpContext
| > | >>> | >> context) at
| > | >>> | >>
| > | >>>
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | >>> on.IExecutionStep.Execute()
| > | >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep
step,
| > | >>> Boolean&
| > | >>> | >> completedSynchronously)
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >>
| > | >>> | >>
| > | >>> | >> Any ideas?
| > | >>> | >>
| > | >>> | >> TIA!
| > | >>> | >>
| > | >>> | >>
| > | >>> | >>
| > | >>> |
| > | >>> |
| > | >>> |
| > | >>>
| > | >>
| > | >>
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|
 
G

Guest

You can email me at
(e-mail address removed)

TIA!

Steven Cheng said:
Thanks for your followup Param,

So would you provide me a simple page which will cause the problem on your
side so that I can perform some tests on my side? I'll try have a trace
in
the underlying code to see whether we can find any clues.

Thanks,

Steven Cheng
Microsoft Online Support

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

--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<e6#[email protected]>
<#[email protected]>
<509#[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Thu, 8 Sep 2005 13:11:44 -0500
| Lines: 429
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
1.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:342694
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steve, this problem is happening on 2 machines for the same website.
Here
| are the specs:-
|
| Dev Machine:- running Yukon June CTP and the version of .net that came
with
| it. Does not occur there, but then again no real world traffic coming to
it.
| OS - Server 2003 Std SP1
|
| Prod Machines - running latest beta version of .net 2.0 downloaded from
web
| 1 week ago. OS - Server 2003 Web SP1.
|
| Again, I dont see anything in code that could cause this since it is
| referencing webresource.axd which is something generated by the
runtime...
| Any ideas?
|
| thanks!
|
| | > Hi Param,
| >
| > I'm afraid the problem is quite hard to throubleshoot. Is your
| > webapplication built on the same machine with the same running .net
| > framework(2.0) or built on other machine and move to this problem
server?
| > Just to check whether it could be a version mismatch issue. Also, is
this
| > problem occurable for any 2.0 asp.net web application or this
particular
| > application? If you can also repro this problem with some other
| > application, I'm afraid there must be something wrong with the
underlying
| > runtime framework, I'd suggest you reinstalling the 2.0 framework on
the
| > server. Otherwise, we can try looking into the application's code to
see
| > which portion of the app may be the root cause.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: <[email protected]>
| > | References: <#[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <e6#[email protected]>
| > | Subject: Re: urgent: beta 2.0 error
| > | Date: Wed, 7 Sep 2005 08:57:52 -0500
| > | Lines: 301
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | X-RFC2646: Format=Flowed; Response
| > | Message-ID: <#[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:122879
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Here is error logged in Application event log:-
| > |
| > | Event code: 3005
| > |
| > | Event message: An unhandled exception has occurred.
| > |
| > | Event time: 9/7/2005 7:21:02 AM
| > |
| > | Event time (UTC): 9/7/2005 12:21:02 PM
| > |
| > | Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8
| > |
| > | Event sequence: 640
| > |
| > | Event occurrence: 9
| > |
| > | Event detail code: 0
| > |
| > |
| > | Application information:
| > |
| > | Application domain: /LM/W3SVC/1804169627/Root-1-127705589313252916
| > |
| > | Trust level: Full
| > |
| > | Application Virtual Path: /
| > |
| > | Application Path: D:\website files\prc\
| > |
| > | Machine name: WEB2
| > |
| > |
| > | Process information:
| > |
| > | Process ID: 1692
| > |
| > | Process name: w3wp.exe
| > |
| > | Account name: APPONEDC\prc
| > |
| > |
| > | Exception information:
| > |
| > | Exception type: CryptographicException
| > |
| > | Exception message: Padding is invalid and cannot be removed.
| > |
| > |
| > | Request information:
| > |
| > | Request URL:
| > |
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > 19884218750
| > |
| > | Request path: /WebResource.axd
| > |
| > | User host address: 64.12.116.132
| > |
| > | User:
| > |
| > | Is authenticated: False
| > |
| > | Authentication Type:
| > |
| > | Thread account name: APPONEDC\prc
| > |
| > |
| > | Thread information:
| > |
| > | Thread ID: 6
| > |
| > | Thread account name: APPONEDC\prc
| > |
| > | Is impersonating: False
| > |
| > | Stack trace: at
| > |
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
outputBuffer,
| > | Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
| > |
| > | at
| > |
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > te[]
| > | inputBuffer, Int32 inputOffset, Int32 inputCount)
| > |
| > | at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > |
| > | at
| >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
| > Boolean
| > | useValidationSymAlgo)
| > |
| > | at System.Web.UI.Page.DecryptString(String s)
| > |
| > | at
| > |
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > quest(HttpContext
| > | context)
| > |
| > | at
| > |
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > on.IExecutionStep.Execute()
| > |
| > | at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
| > | completedSynchronously)
| > |
| > |
| > |
| > | Custom event details:
| > |
| > | For more information, see Help and Support Center at
| > | http://go.microsoft.com/fwlink/events.asp.
| > |
| > |
| > |
| > | TIA!
| > |
| > | | > | > OK this problem is serious now. It is happening more frequently:-
| > | >
| > | > Error In:
| > | >
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > 19884218750
| > | >
| > | >
| >
----------------------------------------------------------------------------
| > ----
| > | > System.Security.Cryptography.CryptographicException: Padding is
| > invalid
| > | > and cannot be removed. at
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | > inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > outputBuffer,
| > | > Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > te[]
| > | > inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > | > System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| > | >
| >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | > fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
| > Boolean
| > | > useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String
s)
at
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > quest(HttpContext
| > | > context) at
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > on.IExecutionStep.Execute()
| > | > at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| > Boolean&
| > | > completedSynchronously)
| > | >
| >
----------------------------------------------------------------------------
| > ----
| > | >
| > | >
| > | > | > | >> Steven, it is totally random and only happening on my public
boxes.
| > On
| > my
| > | >> test boxes it doesnt happen. I turned on IIS logging and noticed
that
| > | >> whenever there is a referrer being logged i.e. user clicked a
link
| > from
| > | >> web based email or other website does this happen every now and
then.
| > Any
| > | >> ideas?
| > | >>
| > | >> TIA!
| > | >>
message
| > | >> | > | >>> Hi Param,
| > | >>>
| > | >>> From the error callstack, the problem occurs when trying to
| > decryting
| > | >>> the
| > | >>> url string so as to locate a dynamic webresource. Can you locate
the
| > | >>> code
| > | >>> period which cause this error or is a randomly occured problem
that
| > | >>> can't
| > | >>> make sure the code point whether fail into the problem? If it's
a
| > | >>> reproduceable problem, we can make some further test into it
| > regarding
| > | >>> on
| > | >>> the detailed code.
| > | >>>
| > | >>> Thanks,
| > | >>>
| > | >>> Steven Cheng
| > | >>> Microsoft Online Support
| > | >>>
| > | >>> Get Secure! www.microsoft.com/security
| > | >>> (This posting is provided "AS IS", with no warranties, and
confers
| > no
| > | >>> rights.)
| > | >>>
| > | >>>
| > | >>>
| > | >>>
| > | >>> --------------------
| > | >>> | From: <[email protected]>
| > | >>> | References: <#[email protected]>
| > | >>> <[email protected]>
| > | >>> | Subject: Re: urgent: beta 2.0 error
| > | >>> | Date: Tue, 6 Sep 2005 11:42:33 -0500
| > | >>> | Lines: 66
| > | >>> | X-Priority: 3
| > | >>> | X-MSMail-Priority: Normal
| > | >>> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | >>> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | >>> | X-RFC2646: Format=Flowed; Original
| > | >>> | Message-ID: <[email protected]>
| > | >>> | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | >>> | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| > | >>> | Path:
| > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| > | >>> | Xref: TK2MSFTNGXA01.phx.gbl
| > | >>> microsoft.public.dotnet.framework.aspnet:122651
| > | >>> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | >>> |
| > | >>> | Curt, I am not making any call to DecryptData. It is the
runtime
| > that
| > | >>> is
| > | >>> | doing it.
| > | >>> |
| > | >>> | thanks!
| > | >>> |
| > | >>> | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| > | >>> | | > | >>> | > You'd have to show the code line(s).
| > | >>> | > Most likely your DecryptData call is wrapped incorrectly.
| > | >>> | >
| > | >>> | > --
| > | >>> | > Curt Christianson
| > | >>> | > site: http://www.darkfalz.com
| > | >>> | > blog: http://blog.darkfalz.com
| > | >>> | >
| > | >>> | >
| > | >>> | >
| > | >>> | > "(e-mail address removed)" wrote:
| > | >>> | >
| > | >>> | >> Hi all, I have a website running on beta 2.0 on server 2003
web
| > sp1
| > | >>> and I
| > | >>> | >> keep getting the following error:-
| > | >>> | >>
| > | >>> | >> Error In:
| > | >>> | >>
| > | >>>
| >
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
| > | >>> 19884218750
| > | >>> | >>
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >> System.Security.Cryptography.CryptographicException:
Padding
is
| > | >>> invalid
| > | >>> | >> and
| > | >>> | >> cannot be removed. at
| > | >>> | >>
| > | >>>
| >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > | >>> outputBuffer,
| > | >>> | >> Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at
| > | >>> | >>
| > | >>>
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | >>> te[]
| > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > | >>> | >> System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at
| > | >>> | >>
| > | >>>
| >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | >>> | >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
| > length,
| > | >>> Boolean
| > | >>> | >> useValidationSymAlgo) at
| > System.Web.UI.Page.DecryptString(String
| > s)
| > | >>> at
| > | >>> | >>
| > | >>>
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | >>> quest(HttpContext
| > | >>> | >> context) at
| > | >>> | >>
| > | >>>
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | >>> on.IExecutionStep.Execute()
| > | >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep
step,
| > | >>> Boolean&
| > | >>> | >> completedSynchronously)
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >>
| > | >>> | >>
| > | >>> | >> Error In: http://www.mywebsite.org/WebResource.axd
| > | >>> | >>
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >> System.Web.HttpException: This is an invalid webresource
| > request.
| > | >>> at
| > | >>> | >>
| > | >>>
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | >>> quest(HttpContext
| > | >>> | >> context) at
| > | >>> | >>
| > | >>>
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | >>> on.IExecutionStep.Execute()
| > | >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep
step,
| > | >>> Boolean&
| > | >>> | >> completedSynchronously)
| > | >>> | >>
| > | >>>
| >
----------------------------------------------------------------------------
| > | >>> ----
| > | >>> | >>
| > | >>> | >>
| > | >>> | >> Any ideas?
| > | >>> | >>
| > | >>> | >> TIA!
| > | >>> | >>
| > | >>> | >>
| > | >>> | >>
| > | >>> |
| > | >>> |
| > | >>> |
| > | >>>
| > | >>
| > | >>
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|
 
S

Steven Cheng[MSFT]

Hi Param,

You can send me through the email in my signature by removing the "online".

Thanks,

Steven Cheng
Microsoft Online Support

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

--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<e6#[email protected]>
<#[email protected]>
<509#[email protected]>
<#[email protected]>
<[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Fri, 9 Sep 2005 16:20:21 -0500
| Lines: 542
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:123599
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steve, where can I email you the code?
|
| thanks!
|
| | > Thanks for your followup Param,
| >
| > So would you provide me a simple page which will cause the problem on
your
| > side so that I can perform some tests on my side? I'll try have a
trace
| > in
| > the underlying code to see whether we can find any clues.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| > --------------------
| > | From: <[email protected]>
| > | References: <#[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <e6#[email protected]>
| > <#[email protected]>
| > <509#[email protected]>
| > | Subject: Re: urgent: beta 2.0 error
| > | Date: Thu, 8 Sep 2005 13:11:44 -0500
| > | Lines: 429
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | Message-ID: <#[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | Path:
| >
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
| > 1.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:342694
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Steve, this problem is happening on 2 machines for the same website.
| > Here
| > | are the specs:-
| > |
| > | Dev Machine:- running Yukon June CTP and the version of .net that came
| > with
| > | it. Does not occur there, but then again no real world traffic coming
to
| > it.
| > | OS - Server 2003 Std SP1
| > |
| > | Prod Machines - running latest beta version of .net 2.0 downloaded
from
| > web
| > | 1 week ago. OS - Server 2003 Web SP1.
| > |
| > | Again, I dont see anything in code that could cause this since it is
| > | referencing webresource.axd which is something generated by the
| > runtime...
| > | Any ideas?
| > |
| > | thanks!
| > |
| > | | > | > Hi Param,
| > | >
| > | > I'm afraid the problem is quite hard to throubleshoot. Is your
| > | > webapplication built on the same machine with the same running .net
| > | > framework(2.0) or built on other machine and move to this problem
| > server?
| > | > Just to check whether it could be a version mismatch issue. Also, is
| > this
| > | > problem occurable for any 2.0 asp.net web application or this
| > particular
| > | > application? If you can also repro this problem with some other
| > | > application, I'm afraid there must be something wrong with the
| > underlying
| > | > runtime framework, I'd suggest you reinstalling the 2.0 framework
on
| > the
| > | > server. Otherwise, we can try looking into the application's code
to
| > see
| > | > which portion of the app may be the root cause.
| > | >
| > | > Thanks,
| > | >
| > | > Steven Cheng
| > | > Microsoft Online Support
| > | >
| > | > Get Secure! www.microsoft.com/security
| > | > (This posting is provided "AS IS", with no warranties, and confers
no
| > | > rights.)
| > | >
| > | >
| > | >
| > | >
| > | >
| > | >
| > | >
| > | > --------------------
| > | > | From: <[email protected]>
| > | > | References: <#[email protected]>
| > | > <[email protected]>
| > | > <[email protected]>
| > | > <[email protected]>
| > | > <[email protected]>
| > | > <e6#[email protected]>
| > | > | Subject: Re: urgent: beta 2.0 error
| > | > | Date: Wed, 7 Sep 2005 08:57:52 -0500
| > | > | Lines: 301
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | > | X-RFC2646: Format=Flowed; Response
| > | > | Message-ID: <#[email protected]>
| > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | > | Path:
| > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| > | > | Xref: TK2MSFTNGXA01.phx.gbl
| > | > microsoft.public.dotnet.framework.aspnet:122879
| > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > |
| > | > | Here is error logged in Application event log:-
| > | > |
| > | > | Event code: 3005
| > | > |
| > | > | Event message: An unhandled exception has occurred.
| > | > |
| > | > | Event time: 9/7/2005 7:21:02 AM
| > | > |
| > | > | Event time (UTC): 9/7/2005 12:21:02 PM
| > | > |
| > | > | Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8
| > | > |
| > | > | Event sequence: 640
| > | > |
| > | > | Event occurrence: 9
| > | > |
| > | > | Event detail code: 0
| > | > |
| > | > |
| > | > | Application information:
| > | > |
| > | > | Application domain: /LM/W3SVC/1804169627/Root-1-127705589313252916
| > | > |
| > | > | Trust level: Full
| > | > |
| > | > | Application Virtual Path: /
| > | > |
| > | > | Application Path: D:\website files\prc\
| > | > |
| > | > | Machine name: WEB2
| > | > |
| > | > |
| > | > | Process information:
| > | > |
| > | > | Process ID: 1692
| > | > |
| > | > | Process name: w3wp.exe
| > | > |
| > | > | Account name: APPONEDC\prc
| > | > |
| > | > |
| > | > | Exception information:
| > | > |
| > | > | Exception type: CryptographicException
| > | > |
| > | > | Exception message: Padding is invalid and cannot be removed.
| > | > |
| > | > |
| > | > | Request information:
| > | > |
| > | > | Request URL:
| > | > |
| > | >
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > | > 19884218750
| > | > |
| > | > | Request path: /WebResource.axd
| > | > |
| > | > | User host address: 64.12.116.132
| > | > |
| > | > | User:
| > | > |
| > | > | Is authenticated: False
| > | > |
| > | > | Authentication Type:
| > | > |
| > | > | Thread account name: APPONEDC\prc
| > | > |
| > | > |
| > | > | Thread information:
| > | > |
| > | > | Thread ID: 6
| > | > |
| > | > | Thread account name: APPONEDC\prc
| > | > |
| > | > | Is impersonating: False
| > | > |
| > | > | Stack trace: at
| > | > |
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | > | inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > outputBuffer,
| > | > | Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
| > | > |
| > | > | at
| > | > |
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | > te[]
| > | > | inputBuffer, Int32 inputOffset, Int32 inputCount)
| > | > |
| > | > | at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > | > |
| > | > | at
| > | >
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | > | fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
| > | > Boolean
| > | > | useValidationSymAlgo)
| > | > |
| > | > | at System.Web.UI.Page.DecryptString(String s)
| > | > |
| > | > | at
| > | > |
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | > quest(HttpContext
| > | > | context)
| > | > |
| > | > | at
| > | > |
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | > on.IExecutionStep.Execute()
| > | > |
| > | > | at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| > Boolean&
| > | > | completedSynchronously)
| > | > |
| > | > |
| > | > |
| > | > | Custom event details:
| > | > |
| > | > | For more information, see Help and Support Center at
| > | > | http://go.microsoft.com/fwlink/events.asp.
| > | > |
| > | > |
| > | > |
| > | > | TIA!
| > | > |
| > | > | | > | > | > OK this problem is serious now. It is happening more
frequently:-
| > | > | >
| > | > | > Error In:
| > | > | >
| > | >
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > | > 19884218750
| > | > | >
| > | > | >
| > | >
| >
----------------------------------------------------------------------------
| > | > ----
| > | > | > System.Security.Cryptography.CryptographicException: Padding is
| > | > invalid
| > | > | > and cannot be removed. at
| > | > | >
| > | >
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | > | > inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > | > outputBuffer,
| > | > | > Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| > | > | >
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | > te[]
| > | > | > inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > | > | > System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| > | > | >
| > | >
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | > | > fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
length,
| > | > Boolean
| > | > | > useValidationSymAlgo) at
System.Web.UI.Page.DecryptString(String
| > s)
| > at
| > | > | >
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | > quest(HttpContext
| > | > | > context) at
| > | > | >
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | > on.IExecutionStep.Execute()
| > | > | > at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| > | > Boolean&
| > | > | > completedSynchronously)
| > | > | >
| > | >
| >
----------------------------------------------------------------------------
| > | > ----
| > | > | >
| > | > | >
| > | > | > | > | > | >> Steven, it is totally random and only happening on my public
| > boxes.
| > | > On
| > | > my
| > | > | >> test boxes it doesnt happen. I turned on IIS logging and
noticed
| > that
| > | > | >> whenever there is a referrer being logged i.e. user clicked a
| > link
| > | > from
| > | > | >> web based email or other website does this happen every now and
| > then.
| > | > Any
| > | > | >> ideas?
| > | > | >>
| > | > | >> TIA!
| > | > | >>
| > message
| > | > | >> | > | > | >>> Hi Param,
| > | > | >>>
| > | > | >>> From the error callstack, the problem occurs when trying to
| > | > decryting
| > | > | >>> the
| > | > | >>> url string so as to locate a dynamic webresource. Can you
locate
| > the
| > | > | >>> code
| > | > | >>> period which cause this error or is a randomly occured problem
| > that
| > | > | >>> can't
| > | > | >>> make sure the code point whether fail into the problem? If
it's
| > a
| > | > | >>> reproduceable problem, we can make some further test into it
| > | > regarding
| > | > | >>> on
| > | > | >>> the detailed code.
| > | > | >>>
| > | > | >>> Thanks,
| > | > | >>>
| > | > | >>> Steven Cheng
| > | > | >>> Microsoft Online Support
| > | > | >>>
| > | > | >>> Get Secure! www.microsoft.com/security
| > | > | >>> (This posting is provided "AS IS", with no warranties, and
| > confers
| > | > no
| > | > | >>> rights.)
| > | > | >>>
| > | > | >>>
| > | > | >>>
| > | > | >>>
| > | > | >>> --------------------
| > | > | >>> | From: <[email protected]>
| > | > | >>> | References: <#[email protected]>
| > | > | >>> <[email protected]>
| > | > | >>> | Subject: Re: urgent: beta 2.0 error
| > | > | >>> | Date: Tue, 6 Sep 2005 11:42:33 -0500
| > | > | >>> | Lines: 66
| > | > | >>> | X-Priority: 3
| > | > | >>> | X-MSMail-Priority: Normal
| > | > | >>> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | > | >>> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | > | >>> | X-RFC2646: Format=Flowed; Original
| > | > | >>> | Message-ID: <[email protected]>
| > | > | >>> | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | >>> | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| > | > | >>> | Path:
| > | > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| > | > | >>> | Xref: TK2MSFTNGXA01.phx.gbl
| > | > | >>> microsoft.public.dotnet.framework.aspnet:122651
| > | > | >>> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > | >>> |
| > | > | >>> | Curt, I am not making any call to DecryptData. It is the
| > runtime
| > | > that
| > | > | >>> is
| > | > | >>> | doing it.
| > | > | >>> |
| > | > | >>> | thanks!
| > | > | >>> |
| > | > | >>> | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| > | > | >>> | | > | > | >>> | > You'd have to show the code line(s).
| > | > | >>> | > Most likely your DecryptData call is wrapped incorrectly.
| > | > | >>> | >
| > | > | >>> | > --
| > | > | >>> | > Curt Christianson
| > | > | >>> | > site: http://www.darkfalz.com
| > | > | >>> | > blog: http://blog.darkfalz.com
| > | > | >>> | >
| > | > | >>> | >
| > | > | >>> | >
| > | > | >>> | > "(e-mail address removed)" wrote:
| > | > | >>> | >
| > | > | >>> | >> Hi all, I have a website running on beta 2.0 on server
2003
| > web
| > | > sp1
| > | > | >>> and I
| > | > | >>> | >> keep getting the following error:-
| > | > | >>> | >>
| > | > | >>> | >> Error In:
| > | > | >>> | >>
| > | > | >>>
| > | >
| >
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
| > | > | >>> 19884218750
| > | > | >>> | >>
| > | > | >>> | >>
| > | > | >>>
| > | >
| >
----------------------------------------------------------------------------
| > | > | >>> ----
| > | > | >>> | >> System.Security.Cryptography.CryptographicException:
| > Padding
| > is
| > | > | >>> invalid
| > | > | >>> | >> and
| > | > | >>> | >> cannot be removed. at
| > | > | >>> | >>
| > | > | >>>
| > | >
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > | > | >>> outputBuffer,
| > | > | >>> | >> Int32 outputOffset, PaddingMode paddingMode, Boolean
fLast)
| > at
| > | > | >>> | >>
| > | > | >>>
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | > | >>> te[]
| > | > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > | > | >>> | >>
System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > at
| > | > | >>> | >>
| > | > | >>>
| > | >
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | > | >>> | >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
| > | > length,
| > | > | >>> Boolean
| > | > | >>> | >> useValidationSymAlgo) at
| > | > System.Web.UI.Page.DecryptString(String
| > | > s)
| > | > | >>> at
| > | > | >>> | >>
| > | > | >>>
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | > | >>> quest(HttpContext
| > | > | >>> | >> context) at
| > | > | >>> | >>
| > | > | >>>
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | > | >>> on.IExecutionStep.Execute()
| > | > | >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep
| > step,
| > | > | >>> Boolean&
| > | > | >>> | >> completedSynchronously)
| > | > | >>> | >>
| > | > | >>>
| > | >
| >
----------------------------------------------------------------------------
| > | > | >>> ----
| > | > | >>> | >>
| > | > | >>> | >>
| > | > | >>> | >> Error In: http://www.mywebsite.org/WebResource.axd
| > | > | >>> | >>
| > | > | >>> | >>
| > | > | >>>
| > | >
| >
----------------------------------------------------------------------------
| > | > | >>> ----
| > | > | >>> | >> System.Web.HttpException: This is an invalid webresource
| > | > request.
| > | > | >>> at
| > | > | >>> | >>
| > | > | >>>
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | > | >>> quest(HttpContext
| > | > | >>> | >> context) at
| > | > | >>> | >>
| > | > | >>>
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | > | >>> on.IExecutionStep.Execute()
| > | > | >>> | >> at System.Web.HttpApplication.ExecuteStep(IExecutionStep
| > step,
| > | > | >>> Boolean&
| > | > | >>> | >> completedSynchronously)
| > | > | >>> | >>
| > | > | >>>
| > | >
| >
----------------------------------------------------------------------------
| > | > | >>> ----
| > | > | >>> | >>
| > | > | >>> | >>
| > | > | >>> | >> Any ideas?
| > | > | >>> | >>
| > | > | >>> | >> TIA!
| > | > | >>> | >>
| > | > | >>> | >>
| > | > | >>> | >>
| > | > | >>> |
| > | > | >>> |
| > | > | >>> |
| > | > | >>>
| > | > | >>
| > | > | >>
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|
 
S

Steven Cheng[MSFT]

Hi Param,

I've recieved your mail and performed some tests on the page you provided.
Since I haven't your other referenced component or controls , I just
comment those statements and create a simple dummy master page. However, I
didn't get any error on resource stream, my beta2 runtime version is

v2.0.50215

So, currently I'm still thinking there must have some problem with the
runtime framework on your beta2 server. I'd recommend you perform a
reinstall to see whether it works or alternatively, you can test on some
other server has beta2 framework to see whether those page works.

Thanks,

Steven Cheng
Microsoft Online Support

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

--------------------
| X-Tomcat-ID: 244700773
| References: <#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<e6#[email protected]>
<#[email protected]>
<509#[email protected]>
<#[email protected]>
<[email protected]>
<[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Mon, 12 Sep 2005 14:04:37 GMT
| Subject: Re: urgent: beta 2.0 error
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 489
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:123892
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Param,
|
| You can send me through the email in my signature by removing the
"online".
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
| --------------------
| | From: <[email protected]>
| | References: <#[email protected]>
| <[email protected]>
| <[email protected]>
| <[email protected]>
| <[email protected]>
| <e6#[email protected]>
| <#[email protected]>
| <509#[email protected]>
| <#[email protected]>
| <[email protected]>
| | Subject: Re: urgent: beta 2.0 error
| | Date: Fri, 9 Sep 2005 16:20:21 -0500
| | Lines: 542
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| | X-RFC2646: Format=Flowed; Original
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| | Message-ID: <[email protected]>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl
| microsoft.public.dotnet.framework.aspnet:123599
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | Steve, where can I email you the code?
| |
| | thanks!
| |
| | | | > Thanks for your followup Param,
| | >
| | > So would you provide me a simple page which will cause the problem on
| your
| | > side so that I can perform some tests on my side? I'll try have a
| trace
| | > in
| | > the underlying code to see whether we can find any clues.
| | >
| | > Thanks,
| | >
| | > Steven Cheng
| | > Microsoft Online Support
| | >
| | > Get Secure! www.microsoft.com/security
| | > (This posting is provided "AS IS", with no warranties, and confers no
| | > rights.)
| | >
| | > --------------------
| | > | From: <[email protected]>
| | > | References: <#[email protected]>
| | > <[email protected]>
| | > <[email protected]>
| | > <[email protected]>
| | > <[email protected]>
| | > <e6#[email protected]>
| | > <#[email protected]>
| | > <509#[email protected]>
| | > | Subject: Re: urgent: beta 2.0 error
| | > | Date: Thu, 8 Sep 2005 13:11:44 -0500
| | > | Lines: 429
| | > | X-Priority: 3
| | > | X-MSMail-Priority: Normal
| | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| | > | X-RFC2646: Format=Flowed; Original
| | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| | > | Message-ID: <#[email protected]>
| | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| | > | Path:
| | >
|
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
| | > 1.phx.gbl
| | > | Xref: TK2MSFTNGXA02.phx.gbl
| | > microsoft.public.dotnet.framework.aspnet:342694
| | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | > |
| | > | Steve, this problem is happening on 2 machines for the same
website.
| | > Here
| | > | are the specs:-
| | > |
| | > | Dev Machine:- running Yukon June CTP and the version of .net that
came
| | > with
| | > | it. Does not occur there, but then again no real world traffic
coming
| to
| | > it.
| | > | OS - Server 2003 Std SP1
| | > |
| | > | Prod Machines - running latest beta version of .net 2.0 downloaded
| from
| | > web
| | > | 1 week ago. OS - Server 2003 Web SP1.
| | > |
| | > | Again, I dont see anything in code that could cause this since it is
| | > | referencing webresource.axd which is something generated by the
| | > runtime...
| | > | Any ideas?
| | > |
| | > | thanks!
| | > |
| | > | | | > | > Hi Param,
| | > | >
| | > | > I'm afraid the problem is quite hard to throubleshoot. Is your
| | > | > webapplication built on the same machine with the same running
net
| | > | > framework(2.0) or built on other machine and move to this problem
| | > server?
| | > | > Just to check whether it could be a version mismatch issue. Also,
is
| | > this
| | > | > problem occurable for any 2.0 asp.net web application or this
| | > particular
| | > | > application? If you can also repro this problem with some other
| | > | > application, I'm afraid there must be something wrong with the
| | > underlying
| | > | > runtime framework, I'd suggest you reinstalling the 2.0 framework
| on
| | > the
| | > | > server. Otherwise, we can try looking into the application's code
| to
| | > see
| | > | > which portion of the app may be the root cause.
| | > | >
| | > | > Thanks,
| | > | >
| | > | > Steven Cheng
| | > | > Microsoft Online Support
| | > | >
| | > | > Get Secure! www.microsoft.com/security
| | > | > (This posting is provided "AS IS", with no warranties, and
confers
| no
| | > | > rights.)
| | > | >
| | > | >
| | > | >
| | > | >
| | > | >
| | > | >
| | > | >
| | > | > --------------------
| | > | > | From: <[email protected]>
| | > | > | References: <#[email protected]>
| | > | > <[email protected]>
| | > | > <[email protected]>
| | > | > <[email protected]>
| | > | > <[email protected]>
| | > | > <e6#[email protected]>
| | > | > | Subject: Re: urgent: beta 2.0 error
| | > | > | Date: Wed, 7 Sep 2005 08:57:52 -0500
| | > | > | Lines: 301
| | > | > | X-Priority: 3
| | > | > | X-MSMail-Priority: Normal
| | > | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| | > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| | > | > | X-RFC2646: Format=Flowed; Response
| | > | > | Message-ID: <#[email protected]>
| | > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | > | > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| | > | > | Path:
| | > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| | > | > | Xref: TK2MSFTNGXA01.phx.gbl
| | > | > microsoft.public.dotnet.framework.aspnet:122879
| | > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | > | > |
| | > | > | Here is error logged in Application event log:-
| | > | > |
| | > | > | Event code: 3005
| | > | > |
| | > | > | Event message: An unhandled exception has occurred.
| | > | > |
| | > | > | Event time: 9/7/2005 7:21:02 AM
| | > | > |
| | > | > | Event time (UTC): 9/7/2005 12:21:02 PM
| | > | > |
| | > | > | Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8
| | > | > |
| | > | > | Event sequence: 640
| | > | > |
| | > | > | Event occurrence: 9
| | > | > |
| | > | > | Event detail code: 0
| | > | > |
| | > | > |
| | > | > | Application information:
| | > | > |
| | > | > | Application domain:
/LM/W3SVC/1804169627/Root-1-127705589313252916
| | > | > |
| | > | > | Trust level: Full
| | > | > |
| | > | > | Application Virtual Path: /
| | > | > |
| | > | > | Application Path: D:\website files\prc\
| | > | > |
| | > | > | Machine name: WEB2
| | > | > |
| | > | > |
| | > | > | Process information:
| | > | > |
| | > | > | Process ID: 1692
| | > | > |
| | > | > | Process name: w3wp.exe
| | > | > |
| | > | > | Account name: APPONEDC\prc
| | > | > |
| | > | > |
| | > | > | Exception information:
| | > | > |
| | > | > | Exception type: CryptographicException
| | > | > |
| | > | > | Exception message: Padding is invalid and cannot be removed.
| | > | > |
| | > | > |
| | > | > | Request information:
| | > | > |
| | > | > | Request URL:
| | > | > |
| | > | >
| | >
|
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| | > | > 19884218750
| | > | > |
| | > | > | Request path: /WebResource.axd
| | > | > |
| | > | > | User host address: 64.12.116.132
| | > | > |
| | > | > | User:
| | > | > |
| | > | > | Is authenticated: False
| | > | > |
| | > | > | Authentication Type:
| | > | > |
| | > | > | Thread account name: APPONEDC\prc
| | > | > |
| | > | > |
| | > | > | Thread information:
| | > | > |
| | > | > | Thread ID: 6
| | > | > |
| | > | > | Thread account name: APPONEDC\prc
| | > | > |
| | > | > | Is impersonating: False
| | > | > |
| | > | > | Stack trace: at
| | > | > |
| | >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| | > | > | inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| | > outputBuffer,
| | > | > | Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
| | > | > |
| | > | > | at
| | > | > |
| | > | >
| | >
|
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| | > | > te[]
| | > | > | inputBuffer, Int32 inputOffset, Int32 inputCount)
| | > | > |
| | > | > | at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| | > | > |
| | > | > | at
| | > | >
| | >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| | > | > | fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
length,
| | > | > Boolean
| | > | > | useValidationSymAlgo)
| | > | > |
| | > | > | at System.Web.UI.Page.DecryptString(String s)
| | > | > |
| | > | > | at
| | > | > |
| | > | >
| | >
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| | > | > quest(HttpContext
| | > | > | context)
| | > | > |
| | > | > | at
| | > | > |
| | > | >
| | >
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| | > | > on.IExecutionStep.Execute()
| | > | > |
| | > | > | at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| | > Boolean&
| | > | > | completedSynchronously)
| | > | > |
| | > | > |
| | > | > |
| | > | > | Custom event details:
| | > | > |
| | > | > | For more information, see Help and Support Center at
| | > | > | http://go.microsoft.com/fwlink/events.asp.
| | > | > |
| | > | > |
| | > | > |
| | > | > | TIA!
| | > | > |
| | > | > | | | > | > | > OK this problem is serious now. It is happening more
| frequently:-
| | > | > | >
| | > | > | > Error In:
| | > | > | >
| | > | >
| | >
|
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| | > | > 19884218750
| | > | > | >
| | > | > | >
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > ----
| | > | > | > System.Security.Cryptography.CryptographicException: Padding
is
| | > | > invalid
| | > | > | > and cannot be removed. at
| | > | > | >
| | > | >
| | >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| | > | > | > inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| | > | > outputBuffer,
| | > | > | > Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at
| | > | > | >
| | > | >
| | >
|
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| | > | > te[]
| | > | > | > inputBuffer, Int32 inputOffset, Int32 inputCount) at
| | > | > | > System.Security.Cryptography.CryptoStream.FlushFinalBlock() at
| | > | > | >
| | > | >
| | >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| | > | > | > fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
| length,
| | > | > Boolean
| | > | > | > useValidationSymAlgo) at
| System.Web.UI.Page.DecryptString(String
| | > s)
| | > at
| | > | > | >
| | > | >
| | >
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| | > | > quest(HttpContext
| | > | > | > context) at
| | > | > | >
| | > | >
| | >
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| | > | > on.IExecutionStep.Execute()
| | > | > | > at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| | > | > Boolean&
| | > | > | > completedSynchronously)
| | > | > | >
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > ----
| | > | > | >
| | > | > | >
| | > | > | > | | > | > | >> Steven, it is totally random and only happening on my public
| | > boxes.
| | > | > On
| | > | > my
| | > | > | >> test boxes it doesnt happen. I turned on IIS logging and
| noticed
| | > that
| | > | > | >> whenever there is a referrer being logged i.e. user clicked
a
| | > link
| | > | > from
| | > | > | >> web based email or other website does this happen every now
and
| | > then.
| | > | > Any
| | > | > | >> ideas?
| | > | > | >>
| | > | > | >> TIA!
| | > | > | >>
| | > message
| | > | > | >> | | > | > | >>> Hi Param,
| | > | > | >>>
| | > | > | >>> From the error callstack, the problem occurs when trying to
| | > | > decryting
| | > | > | >>> the
| | > | > | >>> url string so as to locate a dynamic webresource. Can you
| locate
| | > the
| | > | > | >>> code
| | > | > | >>> period which cause this error or is a randomly occured
problem
| | > that
| | > | > | >>> can't
| | > | > | >>> make sure the code point whether fail into the problem? If
| it's
| | > a
| | > | > | >>> reproduceable problem, we can make some further test into it
| | > | > regarding
| | > | > | >>> on
| | > | > | >>> the detailed code.
| | > | > | >>>
| | > | > | >>> Thanks,
| | > | > | >>>
| | > | > | >>> Steven Cheng
| | > | > | >>> Microsoft Online Support
| | > | > | >>>
| | > | > | >>> Get Secure! www.microsoft.com/security
| | > | > | >>> (This posting is provided "AS IS", with no warranties, and
| | > confers
| | > | > no
| | > | > | >>> rights.)
| | > | > | >>>
| | > | > | >>>
| | > | > | >>>
| | > | > | >>>
| | > | > | >>> --------------------
| | > | > | >>> | From: <[email protected]>
| | > | > | >>> | References: <#[email protected]>
| | > | > | >>> <[email protected]>
| | > | > | >>> | Subject: Re: urgent: beta 2.0 error
| | > | > | >>> | Date: Tue, 6 Sep 2005 11:42:33 -0500
| | > | > | >>> | Lines: 66
| | > | > | >>> | X-Priority: 3
| | > | > | >>> | X-MSMail-Priority: Normal
| | > | > | >>> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| | > | > | >>> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| | > | > | >>> | X-RFC2646: Format=Flowed; Original
| | > | > | >>> | Message-ID: <[email protected]>
| | > | > | >>> | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | > | > | >>> | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| | > | > | >>> | Path:
| | > | > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| | > | > | >>> | Xref: TK2MSFTNGXA01.phx.gbl
| | > | > | >>> microsoft.public.dotnet.framework.aspnet:122651
| | > | > | >>> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | > | > | >>> |
| | > | > | >>> | Curt, I am not making any call to DecryptData. It is the
| | > runtime
| | > | > that
| | > | > | >>> is
| | > | > | >>> | doing it.
| | > | > | >>> |
| | > | > | >>> | thanks!
| | > | > | >>> |
| | > | > | >>> | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| | > | > | >>> | | | > | > | >>> | > You'd have to show the code line(s).
| | > | > | >>> | > Most likely your DecryptData call is wrapped
incorrectly.
| | > | > | >>> | >
| | > | > | >>> | > --
| | > | > | >>> | > Curt Christianson
| | > | > | >>> | > site: http://www.darkfalz.com
| | > | > | >>> | > blog: http://blog.darkfalz.com
| | > | > | >>> | >
| | > | > | >>> | >
| | > | > | >>> | >
| | > | > | >>> | > "(e-mail address removed)" wrote:
| | > | > | >>> | >
| | > | > | >>> | >> Hi all, I have a website running on beta 2.0 on server
| 2003
| | > web
| | > | > sp1
| | > | > | >>> and I
| | > | > | >>> | >> keep getting the following error:-
| | > | > | >>> | >>
| | > | > | >>> | >> Error In:
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
| | > | > | >>> 19884218750
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > | >>> ----
| | > | > | >>> | >> System.Security.Cryptography.CryptographicException:
| | > Padding
| | > is
| | > | > | >>> invalid
| | > | > | >>> | >> and
| | > | > | >>> | >> cannot be removed. at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| | > | > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount,
Byte[]&
| | > | > | >>> outputBuffer,
| | > | > | >>> | >> Int32 outputOffset, PaddingMode paddingMode, Boolean
| fLast)
| | > at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| | > | > | >>> te[]
| | > | > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| | > | > | >>> | >>
| System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| | > at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| | > | > | >>> | >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start,
Int32
| | > | > length,
| | > | > | >>> Boolean
| | > | > | >>> | >> useValidationSymAlgo) at
| | > | > System.Web.UI.Page.DecryptString(String
| | > | > s)
| | > | > | >>> at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| | > | > | >>> quest(HttpContext
| | > | > | >>> | >> context) at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| | > | > | >>> on.IExecutionStep.Execute()
| | > | > | >>> | >> at
System.Web.HttpApplication.ExecuteStep(IExecutionStep
| | > step,
| | > | > | >>> Boolean&
| | > | > | >>> | >> completedSynchronously)
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > | >>> ----
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>> | >> Error In: http://www.mywebsite.org/WebResource.axd
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > | >>> ----
| | > | > | >>> | >> System.Web.HttpException: This is an invalid
webresource
| | > | > request.
| | > | > | >>> at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| | > | > | >>> quest(HttpContext
| | > | > | >>> | >> context) at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| | > | > | >>> on.IExecutionStep.Execute()
| | > | > | >>> | >> at
System.Web.HttpApplication.ExecuteStep(IExecutionStep
| | > step,
| | > | > | >>> Boolean&
| | > | > | >>> | >> completedSynchronously)
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > | >>> ----
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>> | >> Any ideas?
| | > | > | >>> | >>
| | > | > | >>> | >> TIA!
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>> |
| | > | > | >>> |
| | > | > | >>> |
| | > | > | >>>
| | > | > | >>
| | > | > | >>
| | > | > | >
| | > | > | >
| | > | > |
| | > | > |
| | > | > |
| | > | >
| | > |
| | > |
| | > |
| | >
| |
| |
| |
|
|
 
G

Guest

Steve, the problem occurs on 2 servers both production with exact same setup
and config. Should I send you some of my dlls?

thanks!

Steven Cheng said:
Hi Param,

I've recieved your mail and performed some tests on the page you provided.
Since I haven't your other referenced component or controls , I just
comment those statements and create a simple dummy master page. However, I
didn't get any error on resource stream, my beta2 runtime version is

v2.0.50215

So, currently I'm still thinking there must have some problem with the
runtime framework on your beta2 server. I'd recommend you perform a
reinstall to see whether it works or alternatively, you can test on some
other server has beta2 framework to see whether those page works.

Thanks,

Steven Cheng
Microsoft Online Support

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

--------------------
| X-Tomcat-ID: 244700773
| References: <#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<e6#[email protected]>
<#[email protected]>
<509#[email protected]>
<#[email protected]>
<[email protected]>
<[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Mon, 12 Sep 2005 14:04:37 GMT
| Subject: Re: urgent: beta 2.0 error
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 489
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:123892
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Param,
|
| You can send me through the email in my signature by removing the
"online".
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
| --------------------
| | From: <[email protected]>
| | References: <#[email protected]>
| <[email protected]>
| <[email protected]>
| <[email protected]>
| <[email protected]>
| <e6#[email protected]>
| <#[email protected]>
| <509#[email protected]>
| <#[email protected]>
| <[email protected]>
| | Subject: Re: urgent: beta 2.0 error
| | Date: Fri, 9 Sep 2005 16:20:21 -0500
| | Lines: 542
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| | X-RFC2646: Format=Flowed; Original
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| | Message-ID: <[email protected]>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl
| microsoft.public.dotnet.framework.aspnet:123599
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | Steve, where can I email you the code?
| |
| | thanks!
| |
| | | | > Thanks for your followup Param,
| | >
| | > So would you provide me a simple page which will cause the problem
on
| your
| | > side so that I can perform some tests on my side? I'll try have a
| trace
| | > in
| | > the underlying code to see whether we can find any clues.
| | >
| | > Thanks,
| | >
| | > Steven Cheng
| | > Microsoft Online Support
| | >
| | > Get Secure! www.microsoft.com/security
| | > (This posting is provided "AS IS", with no warranties, and confers
no
| | > rights.)
| | >
| | > --------------------
| | > | From: <[email protected]>
| | > | References: <#[email protected]>
| | > <[email protected]>
| | > <[email protected]>
| | > <[email protected]>
| | > <[email protected]>
| | > <e6#[email protected]>
| | > <#[email protected]>
| | > <509#[email protected]>
| | > | Subject: Re: urgent: beta 2.0 error
| | > | Date: Thu, 8 Sep 2005 13:11:44 -0500
| | > | Lines: 429
| | > | X-Priority: 3
| | > | X-MSMail-Priority: Normal
| | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| | > | X-RFC2646: Format=Flowed; Original
| | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| | > | Message-ID: <#[email protected]>
| | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| | > | Path:
| | >
|
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
| | > 1.phx.gbl
| | > | Xref: TK2MSFTNGXA02.phx.gbl
| | > microsoft.public.dotnet.framework.aspnet:342694
| | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | > |
| | > | Steve, this problem is happening on 2 machines for the same
website.
| | > Here
| | > | are the specs:-
| | > |
| | > | Dev Machine:- running Yukon June CTP and the version of .net that
came
| | > with
| | > | it. Does not occur there, but then again no real world traffic
coming
| to
| | > it.
| | > | OS - Server 2003 Std SP1
| | > |
| | > | Prod Machines - running latest beta version of .net 2.0 downloaded
| from
| | > web
| | > | 1 week ago. OS - Server 2003 Web SP1.
| | > |
| | > | Again, I dont see anything in code that could cause this since it
is
| | > | referencing webresource.axd which is something generated by the
| | > runtime...
| | > | Any ideas?
| | > |
| | > | thanks!
| | > |
message
| | > | | | > | > Hi Param,
| | > | >
| | > | > I'm afraid the problem is quite hard to throubleshoot. Is your
| | > | > webapplication built on the same machine with the same running
net
| | > | > framework(2.0) or built on other machine and move to this
problem
| | > server?
| | > | > Just to check whether it could be a version mismatch issue.
Also,
is
| | > this
| | > | > problem occurable for any 2.0 asp.net web application or this
| | > particular
| | > | > application? If you can also repro this problem with some other
| | > | > application, I'm afraid there must be something wrong with the
| | > underlying
| | > | > runtime framework, I'd suggest you reinstalling the 2.0
framework
| on
| | > the
| | > | > server. Otherwise, we can try looking into the application's
code
| to
| | > see
| | > | > which portion of the app may be the root cause.
| | > | >
| | > | > Thanks,
| | > | >
| | > | > Steven Cheng
| | > | > Microsoft Online Support
| | > | >
| | > | > Get Secure! www.microsoft.com/security
| | > | > (This posting is provided "AS IS", with no warranties, and
confers
| no
| | > | > rights.)
| | > | >
| | > | >
| | > | >
| | > | >
| | > | >
| | > | >
| | > | >
| | > | > --------------------
| | > | > | From: <[email protected]>
| | > | > | References: <#[email protected]>
| | > | > <[email protected]>
| | > | > <[email protected]>
| | > | > <[email protected]>
| | > | > <[email protected]>
| | > | > <e6#[email protected]>
| | > | > | Subject: Re: urgent: beta 2.0 error
| | > | > | Date: Wed, 7 Sep 2005 08:57:52 -0500
| | > | > | Lines: 301
| | > | > | X-Priority: 3
| | > | > | X-MSMail-Priority: Normal
| | > | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| | > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| | > | > | X-RFC2646: Format=Flowed; Response
| | > | > | Message-ID: <#[email protected]>
| | > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | > | > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| | > | > | Path:
| | > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| | > | > | Xref: TK2MSFTNGXA01.phx.gbl
| | > | > microsoft.public.dotnet.framework.aspnet:122879
| | > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | > | > |
| | > | > | Here is error logged in Application event log:-
| | > | > |
| | > | > | Event code: 3005
| | > | > |
| | > | > | Event message: An unhandled exception has occurred.
| | > | > |
| | > | > | Event time: 9/7/2005 7:21:02 AM
| | > | > |
| | > | > | Event time (UTC): 9/7/2005 12:21:02 PM
| | > | > |
| | > | > | Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8
| | > | > |
| | > | > | Event sequence: 640
| | > | > |
| | > | > | Event occurrence: 9
| | > | > |
| | > | > | Event detail code: 0
| | > | > |
| | > | > |
| | > | > | Application information:
| | > | > |
| | > | > | Application domain:
/LM/W3SVC/1804169627/Root-1-127705589313252916
| | > | > |
| | > | > | Trust level: Full
| | > | > |
| | > | > | Application Virtual Path: /
| | > | > |
| | > | > | Application Path: D:\website files\prc\
| | > | > |
| | > | > | Machine name: WEB2
| | > | > |
| | > | > |
| | > | > | Process information:
| | > | > |
| | > | > | Process ID: 1692
| | > | > |
| | > | > | Process name: w3wp.exe
| | > | > |
| | > | > | Account name: APPONEDC\prc
| | > | > |
| | > | > |
| | > | > | Exception information:
| | > | > |
| | > | > | Exception type: CryptographicException
| | > | > |
| | > | > | Exception message: Padding is invalid and cannot be removed.
| | > | > |
| | > | > |
| | > | > | Request information:
| | > | > |
| | > | > | Request URL:
| | > | > |
| | > | >
| | >
|
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| | > | > 19884218750
| | > | > |
| | > | > | Request path: /WebResource.axd
| | > | > |
| | > | > | User host address: 64.12.116.132
| | > | > |
| | > | > | User:
| | > | > |
| | > | > | Is authenticated: False
| | > | > |
| | > | > | Authentication Type:
| | > | > |
| | > | > | Thread account name: APPONEDC\prc
| | > | > |
| | > | > |
| | > | > | Thread information:
| | > | > |
| | > | > | Thread ID: 6
| | > | > |
| | > | > | Thread account name: APPONEDC\prc
| | > | > |
| | > | > | Is impersonating: False
| | > | > |
| | > | > | Stack trace: at
| | > | > |
| | >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| | > | > | inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| | > outputBuffer,
| | > | > | Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
| | > | > |
| | > | > | at
| | > | > |
| | > | >
| | >
|
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| | > | > te[]
| | > | > | inputBuffer, Int32 inputOffset, Int32 inputCount)
| | > | > |
| | > | > | at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| | > | > |
| | > | > | at
| | > | >
| | >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| | > | > | fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
length,
| | > | > Boolean
| | > | > | useValidationSymAlgo)
| | > | > |
| | > | > | at System.Web.UI.Page.DecryptString(String s)
| | > | > |
| | > | > | at
| | > | > |
| | > | >
| | >
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| | > | > quest(HttpContext
| | > | > | context)
| | > | > |
| | > | > | at
| | > | > |
| | > | >
| | >
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| | > | > on.IExecutionStep.Execute()
| | > | > |
| | > | > | at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
| | > Boolean&
| | > | > | completedSynchronously)
| | > | > |
| | > | > |
| | > | > |
| | > | > | Custom event details:
| | > | > |
| | > | > | For more information, see Help and Support Center at
| | > | > | http://go.microsoft.com/fwlink/events.asp.
| | > | > |
| | > | > |
| | > | > |
| | > | > | TIA!
| | > | > |
| | > | > | | | > | > | > OK this problem is serious now. It is happening more
| frequently:-
| | > | > | >
| | > | > | > Error In:
| | > | > | >
| | > | >
| | >
|
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| | > | > 19884218750
| | > | > | >
| | > | > | >
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > ----
| | > | > | > System.Security.Cryptography.CryptographicException: Padding
is
| | > | > invalid
| | > | > | > and cannot be removed. at
| | > | > | >
| | > | >
| | >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| | > | > | > inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| | > | > outputBuffer,
| | > | > | > Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at
| | > | > | >
| | > | >
| | >
|
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| | > | > te[]
| | > | > | > inputBuffer, Int32 inputOffset, Int32 inputCount) at
| | > | > | > System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at
| | > | > | >
| | > | >
| | >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| | > | > | > fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
| length,
| | > | > Boolean
| | > | > | > useValidationSymAlgo) at
| System.Web.UI.Page.DecryptString(String
| | > s)
| | > at
| | > | > | >
| | > | >
| | >
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| | > | > quest(HttpContext
| | > | > | > context) at
| | > | > | >
| | > | >
| | >
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| | > | > on.IExecutionStep.Execute()
| | > | > | > at System.Web.HttpApplication.ExecuteStep(IExecutionStep
step,
| | > | > Boolean&
| | > | > | > completedSynchronously)
| | > | > | >
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > ----
| | > | > | >
| | > | > | >
| | > | > | > | | > | > | >> Steven, it is totally random and only happening on my
public
| | > boxes.
| | > | > On
| | > | > my
| | > | > | >> test boxes it doesnt happen. I turned on IIS logging and
| noticed
| | > that
| | > | > | >> whenever there is a referrer being logged i.e. user clicked
a
| | > link
| | > | > from
| | > | > | >> web based email or other website does this happen every now
and
| | > then.
| | > | > Any
| | > | > | >> ideas?
| | > | > | >>
| | > | > | >> TIA!
| | > | > | >>
in
| | > message
| | > | > | >> | | > | > | >>> Hi Param,
| | > | > | >>>
| | > | > | >>> From the error callstack, the problem occurs when trying
to
| | > | > decryting
| | > | > | >>> the
| | > | > | >>> url string so as to locate a dynamic webresource. Can you
| locate
| | > the
| | > | > | >>> code
| | > | > | >>> period which cause this error or is a randomly occured
problem
| | > that
| | > | > | >>> can't
| | > | > | >>> make sure the code point whether fail into the problem? If
| it's
| | > a
| | > | > | >>> reproduceable problem, we can make some further test into
it
| | > | > regarding
| | > | > | >>> on
| | > | > | >>> the detailed code.
| | > | > | >>>
| | > | > | >>> Thanks,
| | > | > | >>>
| | > | > | >>> Steven Cheng
| | > | > | >>> Microsoft Online Support
| | > | > | >>>
| | > | > | >>> Get Secure! www.microsoft.com/security
| | > | > | >>> (This posting is provided "AS IS", with no warranties, and
| | > confers
| | > | > no
| | > | > | >>> rights.)
| | > | > | >>>
| | > | > | >>>
| | > | > | >>>
| | > | > | >>>
| | > | > | >>> --------------------
| | > | > | >>> | From: <[email protected]>
| | > | > | >>> | References: <#[email protected]>
| | > | > | >>> <[email protected]>
| | > | > | >>> | Subject: Re: urgent: beta 2.0 error
| | > | > | >>> | Date: Tue, 6 Sep 2005 11:42:33 -0500
| | > | > | >>> | Lines: 66
| | > | > | >>> | X-Priority: 3
| | > | > | >>> | X-MSMail-Priority: Normal
| | > | > | >>> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| | > | > | >>> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| | > | > | >>> | X-RFC2646: Format=Flowed; Original
| | > | > | >>> | Message-ID: <[email protected]>
| | > | > | >>> | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | > | > | >>> | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| | > | > | >>> | Path:
| | > | > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| | > | > | >>> | Xref: TK2MSFTNGXA01.phx.gbl
| | > | > | >>> microsoft.public.dotnet.framework.aspnet:122651
| | > | > | >>> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | > | > | >>> |
| | > | > | >>> | Curt, I am not making any call to DecryptData. It is the
| | > runtime
| | > | > that
| | > | > | >>> is
| | > | > | >>> | doing it.
| | > | > | >>> |
| | > | > | >>> | thanks!
| | > | > | >>> |
| | > | > | >>> | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in
message
| | > | > | >>> |
| | > | > | >>> | > You'd have to show the code line(s).
| | > | > | >>> | > Most likely your DecryptData call is wrapped
incorrectly.
| | > | > | >>> | >
| | > | > | >>> | > --
| | > | > | >>> | > Curt Christianson
| | > | > | >>> | > site: http://www.darkfalz.com
| | > | > | >>> | > blog: http://blog.darkfalz.com
| | > | > | >>> | >
| | > | > | >>> | >
| | > | > | >>> | >
| | > | > | >>> | > "(e-mail address removed)" wrote:
| | > | > | >>> | >
| | > | > | >>> | >> Hi all, I have a website running on beta 2.0 on
server
| 2003
| | > web
| | > | > sp1
| | > | > | >>> and I
| | > | > | >>> | >> keep getting the following error:-
| | > | > | >>> | >>
| | > | > | >>> | >> Error In:
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
| | > | > | >>> 19884218750
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > | >>> ----
| | > | > | >>> | >> System.Security.Cryptography.CryptographicException:
| | > Padding
| | > is
| | > | > | >>> invalid
| | > | > | >>> | >> and
| | > | > | >>> | >> cannot be removed. at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| | > | > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount,
Byte[]&
| | > | > | >>> outputBuffer,
| | > | > | >>> | >> Int32 outputOffset, PaddingMode paddingMode, Boolean
| fLast)
| | > at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| | > | > | >>> te[]
| | > | > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount) at
| | > | > | >>> | >>
| System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| | > at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| | > | > | >>> | >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start,
Int32
| | > | > length,
| | > | > | >>> Boolean
| | > | > | >>> | >> useValidationSymAlgo) at
| | > | > System.Web.UI.Page.DecryptString(String
| | > | > s)
| | > | > | >>> at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| | > | > | >>> quest(HttpContext
| | > | > | >>> | >> context) at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| | > | > | >>> on.IExecutionStep.Execute()
| | > | > | >>> | >> at
System.Web.HttpApplication.ExecuteStep(IExecutionStep
| | > step,
| | > | > | >>> Boolean&
| | > | > | >>> | >> completedSynchronously)
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > | >>> ----
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>> | >> Error In: http://www.mywebsite.org/WebResource.axd
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > | >>> ----
| | > | > | >>> | >> System.Web.HttpException: This is an invalid
webresource
| | > | > request.
| | > | > | >>> at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| | > | > | >>> quest(HttpContext
| | > | > | >>> | >> context) at
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| | > | > | >>> on.IExecutionStep.Execute()
| | > | > | >>> | >> at
System.Web.HttpApplication.ExecuteStep(IExecutionStep
| | > step,
| | > | > | >>> Boolean&
| | > | > | >>> | >> completedSynchronously)
| | > | > | >>> | >>
| | > | > | >>>
| | > | >
| | >
|
----------------------------------------------------------------------------
| | > | > | >>> ----
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>> | >> Any ideas?
| | > | > | >>> | >>
| | > | > | >>> | >> TIA!
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>> | >>
| | > | > | >>> |
| | > | > | >>> |
| | > | > | >>> |
| | > | > | >>>
| | > | > | >>
| | > | > | >>
| | > | > | >
| | > | > | >
| | > | > |
| | > | > |
| | > | > |
| | > | >
| | > |
| | > |
| | > |
| | >
| |
| |
| |
|
|
 
S

Steven Cheng[MSFT]

Hi Param,

You can send me the simplified components so as to better isolate the
problem.(As simple as possible)

Thanks,

Steven Cheng
Microsoft Online Support

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

--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<e6#[email protected]>
<#[email protected]>
<509#[email protected]>
<#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Mon, 12 Sep 2005 23:36:02 -0500
| Lines: 749
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:124094
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steve, the problem occurs on 2 servers both production with exact same
setup
| and config. Should I send you some of my dlls?
|
| thanks!
|
| | > Hi Param,
| >
| > I've recieved your mail and performed some tests on the page you
provided.
| > Since I haven't your other referenced component or controls , I just
| > comment those statements and create a simple dummy master page.
However, I
| > didn't get any error on resource stream, my beta2 runtime version is
| >
| > v2.0.50215
| >
| > So, currently I'm still thinking there must have some problem with the
| > runtime framework on your beta2 server. I'd recommend you perform a
| > reinstall to see whether it works or alternatively, you can test on some
| > other server has beta2 framework to see whether those page works.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| > --------------------
| > | X-Tomcat-ID: 244700773
| > | References: <#[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <e6#[email protected]>
| > <#[email protected]>
| > <509#[email protected]>
| > <#[email protected]>
| > <[email protected]>
| > <[email protected]>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > | From: (e-mail address removed) (Steven Cheng[MSFT])
| > | Organization: Microsoft
| > | Date: Mon, 12 Sep 2005 14:04:37 GMT
| > | Subject: Re: urgent: beta 2.0 error
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | Lines: 489
| > | Path: TK2MSFTNGXA01.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:123892
| > | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
| > |
| > | Hi Param,
| > |
| > | You can send me through the email in my signature by removing the
| > "online".
| > |
| > | Thanks,
| > |
| > | Steven Cheng
| > | Microsoft Online Support
| > |
| > | Get Secure! www.microsoft.com/security
| > | (This posting is provided "AS IS", with no warranties, and confers no
| > | rights.)
| > |
| > | --------------------
| > | | From: <[email protected]>
| > | | References: <#[email protected]>
| > | <[email protected]>
| > | <[email protected]>
| > | <[email protected]>
| > | <[email protected]>
| > | <e6#[email protected]>
| > | <#[email protected]>
| > | <509#[email protected]>
| > | <#[email protected]>
| > | <[email protected]>
| > | | Subject: Re: urgent: beta 2.0 error
| > | | Date: Fri, 9 Sep 2005 16:20:21 -0500
| > | | Lines: 542
| > | | X-Priority: 3
| > | | X-MSMail-Priority: Normal
| > | | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | | X-RFC2646: Format=Flowed; Original
| > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | | Message-ID: <[email protected]>
| > | | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | | Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| > | | Xref: TK2MSFTNGXA01.phx.gbl
| > | microsoft.public.dotnet.framework.aspnet:123599
| > | | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | |
| > | | Steve, where can I email you the code?
| > | |
| > | | thanks!
| > | |
| > | | | > | | > Thanks for your followup Param,
| > | | >
| > | | > So would you provide me a simple page which will cause the
problem
| > on
| > | your
| > | | > side so that I can perform some tests on my side? I'll try have a
| > | trace
| > | | > in
| > | | > the underlying code to see whether we can find any clues.
| > | | >
| > | | > Thanks,
| > | | >
| > | | > Steven Cheng
| > | | > Microsoft Online Support
| > | | >
| > | | > Get Secure! www.microsoft.com/security
| > | | > (This posting is provided "AS IS", with no warranties, and
confers
| > no
| > | | > rights.)
| > | | >
| > | | > --------------------
| > | | > | From: <[email protected]>
| > | | > | References: <#[email protected]>
| > | | > <[email protected]>
| > | | > <[email protected]>
| > | | > <[email protected]>
| > | | > <[email protected]>
| > | | > <e6#[email protected]>
| > | | > <#[email protected]>
| > | | > <509#[email protected]>
| > | | > | Subject: Re: urgent: beta 2.0 error
| > | | > | Date: Thu, 8 Sep 2005 13:11:44 -0500
| > | | > | Lines: 429
| > | | > | X-Priority: 3
| > | | > | X-MSMail-Priority: Normal
| > | | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | | > | X-RFC2646: Format=Flowed; Original
| > | | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | | > | Message-ID: <#[email protected]>
| > | | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | | > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | | > | Path:
| > | | >
| > |
| >
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
| > | | > 1.phx.gbl
| > | | > | Xref: TK2MSFTNGXA02.phx.gbl
| > | | > microsoft.public.dotnet.framework.aspnet:342694
| > | | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | | > |
| > | | > | Steve, this problem is happening on 2 machines for the same
| > website.
| > | | > Here
| > | | > | are the specs:-
| > | | > |
| > | | > | Dev Machine:- running Yukon June CTP and the version of .net
that
| > came
| > | | > with
| > | | > | it. Does not occur there, but then again no real world traffic
| > coming
| > | to
| > | | > it.
| > | | > | OS - Server 2003 Std SP1
| > | | > |
| > | | > | Prod Machines - running latest beta version of .net 2.0
downloaded
| > | from
| > | | > web
| > | | > | 1 week ago. OS - Server 2003 Web SP1.
| > | | > |
| > | | > | Again, I dont see anything in code that could cause this since
it
| > is
| > | | > | referencing webresource.axd which is something generated by the
| > | | > runtime...
| > | | > | Any ideas?
| > | | > |
| > | | > | thanks!
| > | | > |
| > message
| > | | > | | > | | > | > Hi Param,
| > | | > | >
| > | | > | > I'm afraid the problem is quite hard to throubleshoot. Is your
| > | | > | > webapplication built on the same machine with the same running
| > net
| > | | > | > framework(2.0) or built on other machine and move to this
| > problem
| > | | > server?
| > | | > | > Just to check whether it could be a version mismatch issue.
| > Also,
| > is
| > | | > this
| > | | > | > problem occurable for any 2.0 asp.net web application or this
| > | | > particular
| > | | > | > application? If you can also repro this problem with some
other
| > | | > | > application, I'm afraid there must be something wrong with the
| > | | > underlying
| > | | > | > runtime framework, I'd suggest you reinstalling the 2.0
| > framework
| > | on
| > | | > the
| > | | > | > server. Otherwise, we can try looking into the application's
| > code
| > | to
| > | | > see
| > | | > | > which portion of the app may be the root cause.
| > | | > | >
| > | | > | > Thanks,
| > | | > | >
| > | | > | > Steven Cheng
| > | | > | > Microsoft Online Support
| > | | > | >
| > | | > | > Get Secure! www.microsoft.com/security
| > | | > | > (This posting is provided "AS IS", with no warranties, and
| > confers
| > | no
| > | | > | > rights.)
| > | | > | >
| > | | > | >
| > | | > | >
| > | | > | >
| > | | > | >
| > | | > | >
| > | | > | >
| > | | > | > --------------------
| > | | > | > | From: <[email protected]>
| > | | > | > | References: <#[email protected]>
| > | | > | > <[email protected]>
| > | | > | > <[email protected]>
| > | | > | > <[email protected]>
| > | | > | > <[email protected]>
| > | | > | > <e6#[email protected]>
| > | | > | > | Subject: Re: urgent: beta 2.0 error
| > | | > | > | Date: Wed, 7 Sep 2005 08:57:52 -0500
| > | | > | > | Lines: 301
| > | | > | > | X-Priority: 3
| > | | > | > | X-MSMail-Priority: Normal
| > | | > | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | | > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | | > | > | X-RFC2646: Format=Flowed; Response
| > | | > | > | Message-ID: <#[email protected]>
| > | | > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | | > | > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | | > | > | Path:
| > | | > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| > | | > | > | Xref: TK2MSFTNGXA01.phx.gbl
| > | | > | > microsoft.public.dotnet.framework.aspnet:122879
| > | | > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | | > | > |
| > | | > | > | Here is error logged in Application event log:-
| > | | > | > |
| > | | > | > | Event code: 3005
| > | | > | > |
| > | | > | > | Event message: An unhandled exception has occurred.
| > | | > | > |
| > | | > | > | Event time: 9/7/2005 7:21:02 AM
| > | | > | > |
| > | | > | > | Event time (UTC): 9/7/2005 12:21:02 PM
| > | | > | > |
| > | | > | > | Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8
| > | | > | > |
| > | | > | > | Event sequence: 640
| > | | > | > |
| > | | > | > | Event occurrence: 9
| > | | > | > |
| > | | > | > | Event detail code: 0
| > | | > | > |
| > | | > | > |
| > | | > | > | Application information:
| > | | > | > |
| > | | > | > | Application domain:
| > /LM/W3SVC/1804169627/Root-1-127705589313252916
| > | | > | > |
| > | | > | > | Trust level: Full
| > | | > | > |
| > | | > | > | Application Virtual Path: /
| > | | > | > |
| > | | > | > | Application Path: D:\website files\prc\
| > | | > | > |
| > | | > | > | Machine name: WEB2
| > | | > | > |
| > | | > | > |
| > | | > | > | Process information:
| > | | > | > |
| > | | > | > | Process ID: 1692
| > | | > | > |
| > | | > | > | Process name: w3wp.exe
| > | | > | > |
| > | | > | > | Account name: APPONEDC\prc
| > | | > | > |
| > | | > | > |
| > | | > | > | Exception information:
| > | | > | > |
| > | | > | > | Exception type: CryptographicException
| > | | > | > |
| > | | > | > | Exception message: Padding is invalid and cannot be removed.
| > | | > | > |
| > | | > | > |
| > | | > | > | Request information:
| > | | > | > |
| > | | > | > | Request URL:
| > | | > | > |
| > | | > | >
| > | | >
| > |
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > | | > | > 19884218750
| > | | > | > |
| > | | > | > | Request path: /WebResource.axd
| > | | > | > |
| > | | > | > | User host address: 64.12.116.132
| > | | > | > |
| > | | > | > | User:
| > | | > | > |
| > | | > | > | Is authenticated: False
| > | | > | > |
| > | | > | > | Authentication Type:
| > | | > | > |
| > | | > | > | Thread account name: APPONEDC\prc
| > | | > | > |
| > | | > | > |
| > | | > | > | Thread information:
| > | | > | > |
| > | | > | > | Thread ID: 6
| > | | > | > |
| > | | > | > | Thread account name: APPONEDC\prc
| > | | > | > |
| > | | > | > | Is impersonating: False
| > | | > | > |
| > | | > | > | Stack trace: at
| > | | > | > |
| > | | >
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | | > | > | inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > | | > outputBuffer,
| > | | > | > | Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
| > | | > | > |
| > | | > | > | at
| > | | > | > |
| > | | > | >
| > | | >
| > |
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | | > | > te[]
| > | | > | > | inputBuffer, Int32 inputOffset, Int32 inputCount)
| > | | > | > |
| > | | > | > | at
System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > | | > | > |
| > | | > | > | at
| > | | > | >
| > | | >
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | | > | > | fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
| > length,
| > | | > | > Boolean
| > | | > | > | useValidationSymAlgo)
| > | | > | > |
| > | | > | > | at System.Web.UI.Page.DecryptString(String s)
| > | | > | > |
| > | | > | > | at
| > | | > | > |
| > | | > | >
| > | | >
| > |
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | | > | > quest(HttpContext
| > | | > | > | context)
| > | | > | > |
| > | | > | > | at
| > | | > | > |
| > | | > | >
| > | | >
| > |
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | | > | > on.IExecutionStep.Execute()
| > | | > | > |
| > | | > | > | at System.Web.HttpApplication.ExecuteStep(IExecutionStep
step,
| > | | > Boolean&
| > | | > | > | completedSynchronously)
| > | | > | > |
| > | | > | > |
| > | | > | > |
| > | | > | > | Custom event details:
| > | | > | > |
| > | | > | > | For more information, see Help and Support Center at
| > | | > | > | http://go.microsoft.com/fwlink/events.asp.
| > | | > | > |
| > | | > | > |
| > | | > | > |
| > | | > | > | TIA!
| > | | > | > |
| > | | > | > | | > | | > | > | > OK this problem is serious now. It is happening more
| > | frequently:-
| > | | > | > | >
| > | | > | > | > Error In:
| > | | > | > | >
| > | | > | >
| > | | >
| > |
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > | | > | > 19884218750
| > | | > | > | >
| > | | > | > | >
| > | | > | >
| > | | >
| > |
| >
----------------------------------------------------------------------------
| > | | > | > ----
| > | | > | > | > System.Security.Cryptography.CryptographicException:
Padding
| > is
| > | | > | > invalid
| > | | > | > | > and cannot be removed. at
| > | | > | > | >
| > | | > | >
| > | | >
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | | > | > | > inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
| > | | > | > outputBuffer,
| > | | > | > | > Int32 outputOffset, PaddingMode paddingMode, Boolean
fLast)
| > at
| > | | > | > | >
| > | | > | >
| > | | >
| > |
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | | > | > te[]
| > | | > | > | > inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > | | > | > | >
System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > at
| > | | > | > | >
| > | | > | >
| > | | >
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | | > | > | > fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32
| > | length,
| > | | > | > Boolean
| > | | > | > | > useValidationSymAlgo) at
| > | System.Web.UI.Page.DecryptString(String
| > | | > s)
| > | | > at
| > | | > | > | >
| > | | > | >
| > | | >
| > |
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | | > | > quest(HttpContext
| > | | > | > | > context) at
| > | | > | > | >
| > | | > | >
| > | | >
| > |
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | | > | > on.IExecutionStep.Execute()
| > | | > | > | > at System.Web.HttpApplication.ExecuteStep(IExecutionStep
| > step,
| > | | > | > Boolean&
| > | | > | > | > completedSynchronously)
| > | | > | > | >
| > | | > | >
| > | | >
| > |
| >
----------------------------------------------------------------------------
| > | | > | > ----
| > | | > | > | >
| > | | > | > | >
| > | | > | > | > | > | | > | > | >> Steven, it is totally random and only happening on my
| > public
| > | | > boxes.
| > | | > | > On
| > | | > | > my
| > | | > | > | >> test boxes it doesnt happen. I turned on IIS logging and
| > | noticed
| > | | > that
| > | | > | > | >> whenever there is a referrer being logged i.e. user
clicked
| > a
| > | | > link
| > | | > | > from
| > | | > | > | >> web based email or other website does this happen every
now
| > and
| > | | > then.
| > | | > | > Any
| > | | > | > | >> ideas?
| > | | > | > | >>
| > | | > | > | >> TIA!
| > | | > | > | >>
| > | | > | > | >> "Steven Cheng[MSFT]" <[email protected]>
wrote
| > in
| > | | > message
| > | | > | > | >> | > | | > | > | >>> Hi Param,
| > | | > | > | >>>
| > | | > | > | >>> From the error callstack, the problem occurs when
trying
| > to
| > | | > | > decryting
| > | | > | > | >>> the
| > | | > | > | >>> url string so as to locate a dynamic webresource. Can
you
| > | locate
| > | | > the
| > | | > | > | >>> code
| > | | > | > | >>> period which cause this error or is a randomly occured
| > problem
| > | | > that
| > | | > | > | >>> can't
| > | | > | > | >>> make sure the code point whether fail into the problem?
If
| > | it's
| > | | > a
| > | | > | > | >>> reproduceable problem, we can make some further test
into
| > it
| > | | > | > regarding
| > | | > | > | >>> on
| > | | > | > | >>> the detailed code.
| > | | > | > | >>>
| > | | > | > | >>> Thanks,
| > | | > | > | >>>
| > | | > | > | >>> Steven Cheng
| > | | > | > | >>> Microsoft Online Support
| > | | > | > | >>>
| > | | > | > | >>> Get Secure! www.microsoft.com/security
| > | | > | > | >>> (This posting is provided "AS IS", with no warranties,
and
| > | | > confers
| > | | > | > no
| > | | > | > | >>> rights.)
| > | | > | > | >>>
| > | | > | > | >>>
| > | | > | > | >>>
| > | | > | > | >>>
| > | | > | > | >>> --------------------
| > | | > | > | >>> | From: <[email protected]>
| > | | > | > | >>> | References: <#[email protected]>
| > | | > | > | >>> <[email protected]>
| > | | > | > | >>> | Subject: Re: urgent: beta 2.0 error
| > | | > | > | >>> | Date: Tue, 6 Sep 2005 11:42:33 -0500
| > | | > | > | >>> | Lines: 66
| > | | > | > | >>> | X-Priority: 3
| > | | > | > | >>> | X-MSMail-Priority: Normal
| > | | > | > | >>> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | | > | > | >>> | X-MimeOLE: Produced By Microsoft MimeOLE
V6.00.2900.2527
| > | | > | > | >>> | X-RFC2646: Format=Flowed; Original
| > | | > | > | >>> | Message-ID: <[email protected]>
| > | | > | > | >>> | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | | > | > | >>> | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| > | | > | > | >>> | Path:
| > | | > | >
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| > | | > | > | >>> | Xref: TK2MSFTNGXA01.phx.gbl
| > | | > | > | >>> microsoft.public.dotnet.framework.aspnet:122651
| > | | > | > | >>> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | | > | > | >>> |
| > | | > | > | >>> | Curt, I am not making any call to DecryptData. It is
the
| > | | > runtime
| > | | > | > that
| > | | > | > | >>> is
| > | | > | > | >>> | doing it.
| > | | > | > | >>> |
| > | | > | > | >>> | thanks!
| > | | > | > | >>> |
| > | | > | > | >>> | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in
| > message
| > | | > | > | >>> |
| > | > | | > | > | >>> | > You'd have to show the code line(s).
| > | | > | > | >>> | > Most likely your DecryptData call is wrapped
| > incorrectly.
| > | | > | > | >>> | >
| > | | > | > | >>> | > --
| > | | > | > | >>> | > Curt Christianson
| > | | > | > | >>> | > site: http://www.darkfalz.com
| > | | > | > | >>> | > blog: http://blog.darkfalz.com
| > | | > | > | >>> | >
| > | | > | > | >>> | >
| > | | > | > | >>> | >
| > | | > | > | >>> | > "(e-mail address removed)" wrote:
| > | | > | > | >>> | >
| > | | > | > | >>> | >> Hi all, I have a website running on beta 2.0 on
| > server
| > | 2003
| > | | > web
| > | | > | > sp1
| > | | > | > | >>> and I
| > | | > | > | >>> | >> keep getting the following error:-
| > | | > | > | >>> | >>
| > | | > | > | >>> | >> Error In:
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > |
| >
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
| > | | > | > | >>> 19884218750
| > | | > | > | >>> | >>
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > |
| >
----------------------------------------------------------------------------
| > | | > | > | >>> ----
| > | | > | > | >>> | >>
System.Security.Cryptography.CryptographicException:
| > | | > Padding
| > | | > is
| > | | > | > | >>> invalid
| > | | > | > | >>> | >> and
| > | | > | > | >>> | >> cannot be removed. at
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | | > | > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount,
| > Byte[]&
| > | | > | > | >>> outputBuffer,
| > | | > | > | >>> | >> Int32 outputOffset, PaddingMode paddingMode,
Boolean
| > | fLast)
| > | | > at
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > |
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | | > | > | >>> te[]
| > | | > | > | >>> | >> inputBuffer, Int32 inputOffset, Int32 inputCount)
at
| > | | > | > | >>> | >>
| > | System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > | | > at
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | | > | > | >>> | >> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start,
| > Int32
| > | | > | > length,
| > | | > | > | >>> Boolean
| > | | > | > | >>> | >> useValidationSymAlgo) at
| > | | > | > System.Web.UI.Page.DecryptString(String
| > | | > | > s)
| > | | > | > | >>> at
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > |
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | | > | > | >>> quest(HttpContext
| > | | > | > | >>> | >> context) at
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > |
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | | > | > | >>> on.IExecutionStep.Execute()
| > | | > | > | >>> | >> at
| > System.Web.HttpApplication.ExecuteStep(IExecutionStep
| > | | > step,
| > | | > | > | >>> Boolean&
| > | | > | > | >>> | >> completedSynchronously)
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > |
| >
----------------------------------------------------------------------------
| > | | > | > | >>> ----
| > | | > | > | >>> | >>
| > | | > | > | >>> | >>
| > | | > | > | >>> | >> Error In: http://www.mywebsite.org/WebResource.axd
| > | | > | > | >>> | >>
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > |
| >
----------------------------------------------------------------------------
| > | | > | > | >>> ----
| > | | > | > | >>> | >> System.Web.HttpException: This is an invalid
| > webresource
| > | | > | > request.
| > | | > | > | >>> at
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > |
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | | > | > | >>> quest(HttpContext
| > | | > | > | >>> | >> context) at
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > |
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | | > | > | >>> on.IExecutionStep.Execute()
| > | | > | > | >>> | >> at
| > System.Web.HttpApplication.ExecuteStep(IExecutionStep
| > | | > step,
| > | | > | > | >>> Boolean&
| > | | > | > | >>> | >> completedSynchronously)
| > | | > | > | >>> | >>
| > | | > | > | >>>
| > | | > | >
| > | | >
| > |
| >
----------------------------------------------------------------------------
| > | | > | > | >>> ----
| > | | > | > | >>> | >>
| > | | > | > | >>> | >>
| > | | > | > | >>> | >> Any ideas?
| > | | > | > | >>> | >>
| > | | > | > | >>> | >> TIA!
| > | | > | > | >>> | >>
| > | | > | > | >>> | >>
| > | | > | > | >>> | >>
| > | | > | > | >>> |
| > | | > | > | >>> |
| > | | > | > | >>> |
| > | | > | > | >>>
| > | | > | > | >>
| > | | > | > | >>
| > | | > | > | >
| > | | > | > | >
| > | | > | > |
| > | | > | > |
| > | | > | > |
| > | | > | >
| > | | > |
| > | | > |
| > | | > |
| > | | >
| > | |
| > | |
| > | |
| > |
| > |
| >
|
|
|
 
S

Steven Cheng[MSFT]

Hi Param,

Hi Param,

I've received your assemblies. However, it seems that you're sent many
components which has multiple part. I don't think all of them are necessary
and also, the former page you sent me is a simple one which didn't use many
of them. So I think it would be better if you can sent me a typical page
with some required(necessary) components which can reproduce the behavior.
The simpler the better.

Thanks,

Steven Cheng
Microsoft Online Support

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

--------------------
| From: <[email protected]>
| References: <#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<e6#[email protected]>
<#[email protected]>
<509#[email protected]>
<#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: urgent: beta 2.0 error
| Date: Mon, 19 Sep 2005 11:50:23 -0500
| Lines: 880
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:125579
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steve, I am sending you dlls shortly..
|
| thanks!
|
| | > Hi Param,
| >
| > You can send me the simplified components so as to better isolate the
| > problem.(As simple as possible)
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| > --------------------
| > | From: <[email protected]>
| > | References: <#[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <e6#[email protected]>
| > <#[email protected]>
| > <509#[email protected]>
| > <#[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > | Subject: Re: urgent: beta 2.0 error
| > | Date: Mon, 12 Sep 2005 23:36:02 -0500
| > | Lines: 749
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: corp2.lazardgroup.com 70.182.148.88
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:124094
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Steve, the problem occurs on 2 servers both production with exact same
| > setup
| > | and config. Should I send you some of my dlls?
| > |
| > | thanks!
| > |
| > | | > | > Hi Param,
| > | >
| > | > I've recieved your mail and performed some tests on the page you
| > provided.
| > | > Since I haven't your other referenced component or controls , I just
| > | > comment those statements and create a simple dummy master page.
| > However, I
| > | > didn't get any error on resource stream, my beta2 runtime version is
| > | >
| > | > v2.0.50215
| > | >
| > | > So, currently I'm still thinking there must have some problem with
the
| > | > runtime framework on your beta2 server. I'd recommend you perform a
| > | > reinstall to see whether it works or alternatively, you can test on
| > some
| > | > other server has beta2 framework to see whether those page works.
| > | >
| > | > Thanks,
| > | >
| > | > Steven Cheng
| > | > Microsoft Online Support
| > | >
| > | > Get Secure! www.microsoft.com/security
| > | > (This posting is provided "AS IS", with no warranties, and confers
no
| > | > rights.)
| > | >
| > | > --------------------
| > | > | X-Tomcat-ID: 244700773
| > | > | References: <#[email protected]>
| > | > <[email protected]>
| > | > <[email protected]>
| > | > <[email protected]>
| > | > <[email protected]>
| > | > <e6#[email protected]>
| > | > <#[email protected]>
| > | > <509#[email protected]>
| > | > <#[email protected]>
| > | > <[email protected]>
| > | > <[email protected]>
| > | > | MIME-Version: 1.0
| > | > | Content-Type: text/plain
| > | > | Content-Transfer-Encoding: 7bit
| > | > | From: (e-mail address removed) (Steven Cheng[MSFT])
| > | > | Organization: Microsoft
| > | > | Date: Mon, 12 Sep 2005 14:04:37 GMT
| > | > | Subject: Re: urgent: beta 2.0 error
| > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > | Message-ID: <[email protected]>
| > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | Lines: 489
| > | > | Path: TK2MSFTNGXA01.phx.gbl
| > | > | Xref: TK2MSFTNGXA01.phx.gbl
| > | > microsoft.public.dotnet.framework.aspnet:123892
| > | > | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
| > | > |
| > | > | Hi Param,
| > | > |
| > | > | You can send me through the email in my signature by removing the
| > | > "online".
| > | > |
| > | > | Thanks,
| > | > |
| > | > | Steven Cheng
| > | > | Microsoft Online Support
| > | > |
| > | > | Get Secure! www.microsoft.com/security
| > | > | (This posting is provided "AS IS", with no warranties, and
confers
| > no
| > | > | rights.)
| > | > |
| > | > | --------------------
| > | > | | From: <[email protected]>
| > | > | | References: <#[email protected]>
| > | > | <[email protected]>
| > | > | <[email protected]>
| > | > | <[email protected]>
| > | > | <[email protected]>
| > | > | <e6#[email protected]>
| > | > | <#[email protected]>
| > | > | <509#[email protected]>
| > | > | <#[email protected]>
| > | > | <[email protected]>
| > | > | | Subject: Re: urgent: beta 2.0 error
| > | > | | Date: Fri, 9 Sep 2005 16:20:21 -0500
| > | > | | Lines: 542
| > | > | | X-Priority: 3
| > | > | | X-MSMail-Priority: Normal
| > | > | | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | > | | X-RFC2646: Format=Flowed; Original
| > | > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | > | | Message-ID: <[email protected]>
| > | > | | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | > | | Path:
| > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| > | > | | Xref: TK2MSFTNGXA01.phx.gbl
| > | > | microsoft.public.dotnet.framework.aspnet:123599
| > | > | | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > | |
| > | > | | Steve, where can I email you the code?
| > | > | |
| > | > | | thanks!
| > | > | |
| > message
| > | > | | | > | > | | > Thanks for your followup Param,
| > | > | | >
| > | > | | > So would you provide me a simple page which will cause the
| > problem
| > | > on
| > | > | your
| > | > | | > side so that I can perform some tests on my side? I'll try
have
| > a
| > | > | trace
| > | > | | > in
| > | > | | > the underlying code to see whether we can find any clues.
| > | > | | >
| > | > | | > Thanks,
| > | > | | >
| > | > | | > Steven Cheng
| > | > | | > Microsoft Online Support
| > | > | | >
| > | > | | > Get Secure! www.microsoft.com/security
| > | > | | > (This posting is provided "AS IS", with no warranties, and
| > confers
| > | > no
| > | > | | > rights.)
| > | > | | >
| > | > | | > --------------------
| > | > | | > | From: <[email protected]>
| > | > | | > | References: <#[email protected]>
| > | > | | > <[email protected]>
| > | > | | > <[email protected]>
| > | > | | > <[email protected]>
| > | > | | > <[email protected]>
| > | > | | > <e6#[email protected]>
| > | > | | > <#[email protected]>
| > | > | | > <509#[email protected]>
| > | > | | > | Subject: Re: urgent: beta 2.0 error
| > | > | | > | Date: Thu, 8 Sep 2005 13:11:44 -0500
| > | > | | > | Lines: 429
| > | > | | > | X-Priority: 3
| > | > | | > | X-MSMail-Priority: Normal
| > | > | | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | > | | > | X-RFC2646: Format=Flowed; Original
| > | > | | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | > | | > | Message-ID: <#[email protected]>
| > | > | | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | | > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | > | | > | Path:
| > | > | | >
| > | > |
| > | >
| >
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
| > | > | | > 1.phx.gbl
| > | > | | > | Xref: TK2MSFTNGXA02.phx.gbl
| > | > | | > microsoft.public.dotnet.framework.aspnet:342694
| > | > | | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > | | > |
| > | > | | > | Steve, this problem is happening on 2 machines for the same
| > | > website.
| > | > | | > Here
| > | > | | > | are the specs:-
| > | > | | > |
| > | > | | > | Dev Machine:- running Yukon June CTP and the version of .net
| > that
| > | > came
| > | > | | > with
| > | > | | > | it. Does not occur there, but then again no real world
traffic
| > | > coming
| > | > | to
| > | > | | > it.
| > | > | | > | OS - Server 2003 Std SP1
| > | > | | > |
| > | > | | > | Prod Machines - running latest beta version of .net 2.0
| > downloaded
| > | > | from
| > | > | | > web
| > | > | | > | 1 week ago. OS - Server 2003 Web SP1.
| > | > | | > |
| > | > | | > | Again, I dont see anything in code that could cause this
since
| > it
| > | > is
| > | > | | > | referencing webresource.axd which is something generated by
| > the
| > | > | | > runtime...
| > | > | | > | Any ideas?
| > | > | | > |
| > | > | | > | thanks!
| > | > | | > |
| > | > message
| > | > | | > | | > | > | | > | > Hi Param,
| > | > | | > | >
| > | > | | > | > I'm afraid the problem is quite hard to throubleshoot. Is
| > your
| > | > | | > | > webapplication built on the same machine with the same
| > running
| > | > net
| > | > | | > | > framework(2.0) or built on other machine and move to this
| > | > problem
| > | > | | > server?
| > | > | | > | > Just to check whether it could be a version mismatch
issue.
| > | > Also,
| > | > is
| > | > | | > this
| > | > | | > | > problem occurable for any 2.0 asp.net web application or
| > this
| > | > | | > particular
| > | > | | > | > application? If you can also repro this problem with some
| > other
| > | > | | > | > application, I'm afraid there must be something wrong
with
| > the
| > | > | | > underlying
| > | > | | > | > runtime framework, I'd suggest you reinstalling the 2.0
| > | > framework
| > | > | on
| > | > | | > the
| > | > | | > | > server. Otherwise, we can try looking into the
application's
| > | > code
| > | > | to
| > | > | | > see
| > | > | | > | > which portion of the app may be the root cause.
| > | > | | > | >
| > | > | | > | > Thanks,
| > | > | | > | >
| > | > | | > | > Steven Cheng
| > | > | | > | > Microsoft Online Support
| > | > | | > | >
| > | > | | > | > Get Secure! www.microsoft.com/security
| > | > | | > | > (This posting is provided "AS IS", with no warranties, and
| > | > confers
| > | > | no
| > | > | | > | > rights.)
| > | > | | > | >
| > | > | | > | >
| > | > | | > | >
| > | > | | > | >
| > | > | | > | >
| > | > | | > | >
| > | > | | > | >
| > | > | | > | > --------------------
| > | > | | > | > | From: <[email protected]>
| > | > | | > | > | References: <#[email protected]>
| > | > | | > | > <[email protected]>
| > | > | | > | > <[email protected]>
| > | > | | > | > <[email protected]>
| > | > | | > | > <[email protected]>
| > | > | | > | > <e6#[email protected]>
| > | > | | > | > | Subject: Re: urgent: beta 2.0 error
| > | > | | > | > | Date: Wed, 7 Sep 2005 08:57:52 -0500
| > | > | | > | > | Lines: 301
| > | > | | > | > | X-Priority: 3
| > | > | | > | > | X-MSMail-Priority: Normal
| > | > | | > | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | > | | > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | > | | > | > | X-RFC2646: Format=Flowed; Response
| > | > | | > | > | Message-ID: <#[email protected]>
| > | > | | > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | | > | > | NNTP-Posting-Host: corp.lazardgroup.com 64.237.78.178
| > | > | | > | > | Path:
| > | > | | >
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| > | > | | > | > | Xref: TK2MSFTNGXA01.phx.gbl
| > | > | | > | > microsoft.public.dotnet.framework.aspnet:122879
| > | > | | > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > | | > | > |
| > | > | | > | > | Here is error logged in Application event log:-
| > | > | | > | > |
| > | > | | > | > | Event code: 3005
| > | > | | > | > |
| > | > | | > | > | Event message: An unhandled exception has occurred.
| > | > | | > | > |
| > | > | | > | > | Event time: 9/7/2005 7:21:02 AM
| > | > | | > | > |
| > | > | | > | > | Event time (UTC): 9/7/2005 12:21:02 PM
| > | > | | > | > |
| > | > | | > | > | Event ID: aefc9f98817b49b4a5bc52f0a8bbb1f8
| > | > | | > | > |
| > | > | | > | > | Event sequence: 640
| > | > | | > | > |
| > | > | | > | > | Event occurrence: 9
| > | > | | > | > |
| > | > | | > | > | Event detail code: 0
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | > | Application information:
| > | > | | > | > |
| > | > | | > | > | Application domain:
| > | > /LM/W3SVC/1804169627/Root-1-127705589313252916
| > | > | | > | > |
| > | > | | > | > | Trust level: Full
| > | > | | > | > |
| > | > | | > | > | Application Virtual Path: /
| > | > | | > | > |
| > | > | | > | > | Application Path: D:\website files\prc\
| > | > | | > | > |
| > | > | | > | > | Machine name: WEB2
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | > | Process information:
| > | > | | > | > |
| > | > | | > | > | Process ID: 1692
| > | > | | > | > |
| > | > | | > | > | Process name: w3wp.exe
| > | > | | > | > |
| > | > | | > | > | Account name: APPONEDC\prc
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | > | Exception information:
| > | > | | > | > |
| > | > | | > | > | Exception type: CryptographicException
| > | > | | > | > |
| > | > | | > | > | Exception message: Padding is invalid and cannot be
| > removed.
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | > | Request information:
| > | > | | > | > |
| > | > | | > | > | Request URL:
| > | > | | > | > |
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > | > | | > | > 19884218750
| > | > | | > | > |
| > | > | | > | > | Request path: /WebResource.axd
| > | > | | > | > |
| > | > | | > | > | User host address: 64.12.116.132
| > | > | | > | > |
| > | > | | > | > | User:
| > | > | | > | > |
| > | > | | > | > | Is authenticated: False
| > | > | | > | > |
| > | > | | > | > | Authentication Type:
| > | > | | > | > |
| > | > | | > | > | Thread account name: APPONEDC\prc
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | > | Thread information:
| > | > | | > | > |
| > | > | | > | > | Thread ID: 6
| > | > | | > | > |
| > | > | | > | > | Thread account name: APPONEDC\prc
| > | > | | > | > |
| > | > | | > | > | Is impersonating: False
| > | > | | > | > |
| > | > | | > | > | Stack trace: at
| > | > | | > | > |
| > | > | | >
| > | >
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | > | | > | > | inputBuffer, Int32 inputOffset, Int32 inputCount,
Byte[]&
| > | > | | > outputBuffer,
| > | > | | > | > | Int32 outputOffset, PaddingMode paddingMode, Boolean
| > fLast)
| > | > | | > | > |
| > | > | | > | > | at
| > | > | | > | > |
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | > | | > | > te[]
| > | > | | > | > | inputBuffer, Int32 inputOffset, Int32 inputCount)
| > | > | | > | > |
| > | > | | > | > | at
| > System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > | > | | > | > |
| > | > | | > | > | at
| > | > | | > | >
| > | > | | >
| > | >
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | > | | > | > | fEncrypt, Byte[] buf, Byte[] modifier, Int32 start,
Int32
| > | > length,
| > | > | | > | > Boolean
| > | > | | > | > | useValidationSymAlgo)
| > | > | | > | > |
| > | > | | > | > | at System.Web.UI.Page.DecryptString(String s)
| > | > | | > | > |
| > | > | | > | > | at
| > | > | | > | > |
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | > | | > | > quest(HttpContext
| > | > | | > | > | context)
| > | > | | > | > |
| > | > | | > | > | at
| > | > | | > | > |
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | > | | > | > on.IExecutionStep.Execute()
| > | > | | > | > |
| > | > | | > | > | at System.Web.HttpApplication.ExecuteStep(IExecutionStep
| > step,
| > | > | | > Boolean&
| > | > | | > | > | completedSynchronously)
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | > | Custom event details:
| > | > | | > | > |
| > | > | | > | > | For more information, see Help and Support Center at
| > | > | | > | > | http://go.microsoft.com/fwlink/events.asp.
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | > | TIA!
| > | > | | > | > |
| > | > | | > | > | | > | > | | > | > | > OK this problem is serious now. It is happening more
| > | > | frequently:-
| > | > | | > | > | >
| > | > | | > | > | > Error In:
| > | > | | > | > | >
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
http://www.mywebsite.org/WebResource.axd?d=pyoT_BCpUuaqqzziDBacog2&t=6326146
| > | > | | > | > 19884218750
| > | > | | > | > | >
| > | > | | > | > | >
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
----------------------------------------------------------------------------
| > | > | | > | > ----
| > | > | | > | > | > System.Security.Cryptography.CryptographicException:
| > Padding
| > | > is
| > | > | | > | > invalid
| > | > | | > | > | > and cannot be removed. at
| > | > | | > | > | >
| > | > | | > | >
| > | > | | >
| > | >
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | > | | > | > | > inputBuffer, Int32 inputOffset, Int32 inputCount,
| > Byte[]&
| > | > | | > | > outputBuffer,
| > | > | | > | > | > Int32 outputOffset, PaddingMode paddingMode, Boolean
| > fLast)
| > | > at
| > | > | | > | > | >
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | > | | > | > te[]
| > | > | | > | > | > inputBuffer, Int32 inputOffset, Int32 inputCount) at
| > | > | | > | > | >
| > System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > | > at
| > | > | | > | > | >
| > | > | | > | >
| > | > | | >
| > | >
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | > | | > | > | > fEncrypt, Byte[] buf, Byte[] modifier, Int32 start,
| > Int32
| > | > | length,
| > | > | | > | > Boolean
| > | > | | > | > | > useValidationSymAlgo) at
| > | > | System.Web.UI.Page.DecryptString(String
| > | > | | > s)
| > | > | | > at
| > | > | | > | > | >
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | > | | > | > quest(HttpContext
| > | > | | > | > | > context) at
| > | > | | > | > | >
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | > | | > | > on.IExecutionStep.Execute()
| > | > | | > | > | > at
System.Web.HttpApplication.ExecuteStep(IExecutionStep
| > | > step,
| > | > | | > | > Boolean&
| > | > | | > | > | > completedSynchronously)
| > | > | | > | > | >
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
----------------------------------------------------------------------------
| > | > | | > | > ----
| > | > | | > | > | >
| > | > | | > | > | >
| > | > | | > | > | > | > | > | | > | > | >> Steven, it is totally random and only happening on my
| > | > public
| > | > | | > boxes.
| > | > | | > | > On
| > | > | | > | > my
| > | > | | > | > | >> test boxes it doesnt happen. I turned on IIS logging
| > and
| > | > | noticed
| > | > | | > that
| > | > | | > | > | >> whenever there is a referrer being logged i.e. user
| > clicked
| > | > a
| > | > | | > link
| > | > | | > | > from
| > | > | | > | > | >> web based email or other website does this happen
every
| > now
| > | > and
| > | > | | > then.
| > | > | | > | > Any
| > | > | | > | > | >> ideas?
| > | > | | > | > | >>
| > | > | | > | > | >> TIA!
| > | > | | > | > | >>
| > | > | | > | > | >> "Steven Cheng[MSFT]" <[email protected]>
| > wrote
| > | > in
| > | > | | > message
| > | > | | > | > | >> | > | > | | > | > | >>> Hi Param,
| > | > | | > | > | >>>
| > | > | | > | > | >>> From the error callstack, the problem occurs when
| > trying
| > | > to
| > | > | | > | > decryting
| > | > | | > | > | >>> the
| > | > | | > | > | >>> url string so as to locate a dynamic webresource.
Can
| > you
| > | > | locate
| > | > | | > the
| > | > | | > | > | >>> code
| > | > | | > | > | >>> period which cause this error or is a randomly
occured
| > | > problem
| > | > | | > that
| > | > | | > | > | >>> can't
| > | > | | > | > | >>> make sure the code point whether fail into the
| > problem?
| > If
| > | > | it's
| > | > | | > a
| > | > | | > | > | >>> reproduceable problem, we can make some further test
| > into
| > | > it
| > | > | | > | > regarding
| > | > | | > | > | >>> on
| > | > | | > | > | >>> the detailed code.
| > | > | | > | > | >>>
| > | > | | > | > | >>> Thanks,
| > | > | | > | > | >>>
| > | > | | > | > | >>> Steven Cheng
| > | > | | > | > | >>> Microsoft Online Support
| > | > | | > | > | >>>
| > | > | | > | > | >>> Get Secure! www.microsoft.com/security
| > | > | | > | > | >>> (This posting is provided "AS IS", with no
warranties,
| > and
| > | > | | > confers
| > | > | | > | > no
| > | > | | > | > | >>> rights.)
| > | > | | > | > | >>>
| > | > | | > | > | >>>
| > | > | | > | > | >>>
| > | > | | > | > | >>>
| > | > | | > | > | >>> --------------------
| > | > | | > | > | >>> | From: <[email protected]>
| > | > | | > | > | >>> | References:
<#[email protected]>
| > | > | | > | > | >>> <[email protected]>
| > | > | | > | > | >>> | Subject: Re: urgent: beta 2.0 error
| > | > | | > | > | >>> | Date: Tue, 6 Sep 2005 11:42:33 -0500
| > | > | | > | > | >>> | Lines: 66
| > | > | | > | > | >>> | X-Priority: 3
| > | > | | > | > | >>> | X-MSMail-Priority: Normal
| > | > | | > | > | >>> | X-Newsreader: Microsoft Outlook Express
| > 6.00.2900.2527
| > | > | | > | > | >>> | X-MimeOLE: Produced By Microsoft MimeOLE
| > V6.00.2900.2527
| > | > | | > | > | >>> | X-RFC2646: Format=Flowed; Original
| > | > | | > | > | >>> | Message-ID:
<[email protected]>
| > | > | | > | > | >>> | Newsgroups:
microsoft.public.dotnet.framework.aspnet
| > | > | | > | > | >>> | NNTP-Posting-Host: corp2.lazardgroup.com
| > 70.182.148.88
| > | > | | > | > | >>> | Path:
| > | > | | > | >
| > TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| > | > | | > | > | >>> | Xref: TK2MSFTNGXA01.phx.gbl
| > | > | | > | > | >>> microsoft.public.dotnet.framework.aspnet:122651
| > | > | | > | > | >>> | X-Tomcat-NG:
| > microsoft.public.dotnet.framework.aspnet
| > | > | | > | > | >>> |
| > | > | | > | > | >>> | Curt, I am not making any call to DecryptData. It
is
| > the
| > | > | | > runtime
| > | > | | > | > that
| > | > | | > | > | >>> is
| > | > | | > | > | >>> | doing it.
| > | > | | > | > | >>> |
| > | > | | > | > | >>> | thanks!
| > | > | | > | > | >>> |
| > | > | | > | > | >>> | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in
| > | > message
| > | > | | > | > | >>> |
| > | > | > | > | | > | > | >>> | > You'd have to show the code line(s).
| > | > | | > | > | >>> | > Most likely your DecryptData call is wrapped
| > | > incorrectly.
| > | > | | > | > | >>> | >
| > | > | | > | > | >>> | > --
| > | > | | > | > | >>> | > Curt Christianson
| > | > | | > | > | >>> | > site: http://www.darkfalz.com
| > | > | | > | > | >>> | > blog: http://blog.darkfalz.com
| > | > | | > | > | >>> | >
| > | > | | > | > | >>> | >
| > | > | | > | > | >>> | >
| > | > | | > | > | >>> | > "(e-mail address removed)" wrote:
| > | > | | > | > | >>> | >
| > | > | | > | > | >>> | >> Hi all, I have a website running on beta 2.0 on
| > | > server
| > | > | 2003
| > | > | | > web
| > | > | | > | > sp1
| > | > | | > | > | >>> and I
| > | > | | > | > | >>> | >> keep getting the following error:-
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> | >> Error In:
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=6326146
| > | > | | > | > | >>> 19884218750
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
----------------------------------------------------------------------------
| > | > | | > | > | >>> ----
| > | > | | > | > | >>> | >>
| > System.Security.Cryptography.CryptographicException:
| > | > | | > Padding
| > | > | | > is
| > | > | | > | > | >>> invalid
| > | > | | > | > | >>> | >> and
| > | > | | > | > | >>> | >> cannot be removed. at
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | >
| > System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[]
| > | > | | > | > | >>> | >> inputBuffer, Int32 inputOffset, Int32
inputCount,
| > | > Byte[]&
| > | > | | > | > | >>> outputBuffer,
| > | > | | > | > | >>> | >> Int32 outputOffset, PaddingMode paddingMode,
| > Boolean
| > | > | fLast)
| > | > | | > at
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(By
| > | > | | > | > | >>> te[]
| > | > | | > | > | >>> | >> inputBuffer, Int32 inputOffset, Int32
inputCount)
| > at
| > | > | | > | > | >>> | >>
| > | > | System.Security.Cryptography.CryptoStream.FlushFinalBlock()
| > | > | | > at
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | >
| > System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean
| > | > | | > | > | >>> | >> fEncrypt, Byte[] buf, Byte[] modifier, Int32
| > start,
| > | > Int32
| > | > | | > | > length,
| > | > | | > | > | >>> Boolean
| > | > | | > | > | >>> | >> useValidationSymAlgo) at
| > | > | | > | > System.Web.UI.Page.DecryptString(String
| > | > | | > | > s)
| > | > | | > | > | >>> at
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | > | | > | > | >>> quest(HttpContext
| > | > | | > | > | >>> | >> context) at
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | > | | > | > | >>> on.IExecutionStep.Execute()
| > | > | | > | > | >>> | >> at
| > | > System.Web.HttpApplication.ExecuteStep(IExecutionStep
| > | > | | > step,
| > | > | | > | > | >>> Boolean&
| > | > | | > | > | >>> | >> completedSynchronously)
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
----------------------------------------------------------------------------
| > | > | | > | > | >>> ----
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> | >> Error In:
| > http://www.mywebsite.org/WebResource.axd
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
----------------------------------------------------------------------------
| > | > | | > | > | >>> ----
| > | > | | > | > | >>> | >> System.Web.HttpException: This is an invalid
| > | > webresource
| > | > | | > | > request.
| > | > | | > | > | >>> at
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
| > | > | | > | > | >>> quest(HttpContext
| > | > | | > | > | >>> | >> context) at
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
| > | > | | > | > | >>> on.IExecutionStep.Execute()
| > | > | | > | > | >>> | >> at
| > | > System.Web.HttpApplication.ExecuteStep(IExecutionStep
| > | > | | > step,
| > | > | | > | > | >>> Boolean&
| > | > | | > | > | >>> | >> completedSynchronously)
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>>
| > | > | | > | >
| > | > | | >
| > | > |
| > | >
| >
----------------------------------------------------------------------------
| > | > | | > | > | >>> ----
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> | >> Any ideas?
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> | >> TIA!
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> | >>
| > | > | | > | > | >>> |
| > | > | | > | > | >>> |
| > | > | | > | > | >>> |
| > | > | | > | > | >>>
| > | > | | > | > | >>
| > | > | | > | > | >>
| > | > | | > | > | >
| > | > | | > | > | >
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | > |
| > | > | | > | >
| > | > | | > |
| > | > | | > |
| > | > | | > |
| > | > | | >
| > | > | |
| > | > | |
| > | > | |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top