PC Review


Reply
Thread Tools Rate Thread

asp to asp.net operation not allowed when object is closed

 
 
amitbadgi@gmail.com
Guest
Posts: n/a
 
      10th Aug 2005
Hello guys I am getting this error while converting an asp applicayion
to asp.net

Exception Details: System.Runtime.InteropServices.COMException:
Operation is not allowed when the object is closed.

Source Error:

Line 168: rs =
Server.CreateObject("ADODB.recordset")Line 169:
Line 170: If Not rs.EOF ThenLine 171:
' If Not rs.EOFLine 172: Do
While Not rs.EOF


Source File: C:\Documents and
Settings\amit\WebSite1\reports\default.aspx Line: 170

Stack Trace:

[COMException (0x800a0e78): Operation is not allowed when the object is
closed.]
Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o,
Type objType, String name, Object[] args, String[] paramnames,
Boolean[] CopyBack) +965
Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +193727
ASP.default_aspx.__Render__control1(HtmlTextWriter __w, Control
parameterContainer) in C:\Documents and
Settings\amit\WebSite1\reports\default.aspx:170
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children) +98
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Page.Render(HtmlTextWriter writer) +27
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +53
System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter) +280
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+8878


Thanks in advance,

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

 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      10th Aug 2005
See my reply to your first question. It is the same.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Everybody picks their nose,
But some people are better at hiding it.

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello guys I am getting this error while converting an asp applicayion
> to asp.net
>
> Exception Details: System.Runtime.InteropServices.COMException:
> Operation is not allowed when the object is closed.
>
> Source Error:
>
> Line 168: rs =
> Server.CreateObject("ADODB.recordset")Line 169:
> Line 170: If Not rs.EOF ThenLine 171:
> ' If Not rs.EOFLine 172: Do
> While Not rs.EOF
>
>
> Source File: C:\Documents and
> Settings\amit\WebSite1\reports\default.aspx Line: 170
>
> Stack Trace:
>
> [COMException (0x800a0e78): Operation is not allowed when the object is
> closed.]
> Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o,
> Type objType, String name, Object[] args, String[] paramnames,
> Boolean[] CopyBack) +965
> Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object
> Instance, Type Type, String MemberName, Object[] Arguments, String[]
> ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +193727
> ASP.default_aspx.__Render__control1(HtmlTextWriter __w, Control
> parameterContainer) in C:\Documents and
> Settings\amit\WebSite1\reports\default.aspx:170
> System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
> ICollection children) +98
> System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
> System.Web.UI.Page.Render(HtmlTextWriter writer) +27
> System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
> ControlAdapter adapter) +53
> System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
> ControlAdapter adapter) +280
> System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
> System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +8878
>
>
> Thanks in advance,
>
> --------------------------------------------------------------------------------
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Operation is not allowed when the object is closed Edward Microsoft Excel Programming 1 24th Sep 2009 03:11 PM
Operation is not allowed =?Utf-8?B?R2VldGhh?= Microsoft Excel Programming 0 5th Jul 2007 11:06 PM
asp to asp.net operation not allowed when object is closed amitbadgi@gmail.com Microsoft Dot NET Framework 1 10th Aug 2005 12:36 PM
"operation is not allowed when the object is closed" error when using VBA online help -- Resolution TC Microsoft Excel Programming 2 12th Jan 2005 09:05 AM
Operation Is Not Allowed When The Object Is Closed Mike Carlson Microsoft Excel Programming 4 29th Oct 2003 02:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:16 AM.