Microsoft Content Management Server - revert to previous - stefans code

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > March 2005 > revert to previous - stefans code





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author revert to previous - stefans code
laks

2005-03-21, 8:46 pm

Hi
am using stefans code base for revert to previous.
I get a popup alright after I integrate with my code base.
When i Click on the "revert Content" option, I am receiving the
following error.

Could not load type Stefan.CMSPageRevert.RevertTools from assembly
Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevert,
Version=1.0.1320.21099, Culture=neutral, PublicKeyToken=null.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Could not load type
Stefan.CMSPageRevert.RevertTools from assembly
Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevert,
Version=1.0.1320.21099, Culture=neutral, PublicKeyToken=null.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.


Stack Trace:


[TypeLoadException: Could not load type
Stefan.CMSPageRevert.RevertTools from assembly
Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevert,
Version=1.0.1320.21099, Culture=neutral, PublicKeyToken=null.]

Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevertASPX.PageRevertPage.HandlePageRevisionListCommand(Object
sender, DataGridCommandEventArgs e) +0

System.Web.UI.WebControls.DataGrid.OnItemCommand(DataGridCommandEventArgs
e) +110
System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source,
EventArgs e) +68
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs
args) +26
System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source,
EventArgs e) +106
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs
args) +26
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
+121

System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +115
System.Web.UI.Page. RaisePostBackEvent(IPostBackEventHandler

sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
+138
System.Web.UI.Page.ProcessRequestMain() +1292



Thanks much,
- laks.

Stefan [MSFT]

2005-03-22, 2:50 am

Hi Laks,

I just checked and this class should be in the assembly.
Please verify with ILDASM

Cheers,
Stefan.


--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"laks" <alanlakman@yahoo.com> wrote in message
news:1111454889.605953.184140@g14g2000cwa.googlegroups.com...
> Hi
> am using stefans code base for revert to previous.
> I get a popup alright after I integrate with my code base.
> When i Click on the "revert Content" option, I am receiving the
> following error.
>
> Could not load type Stefan.CMSPageRevert.RevertTools from assembly
> Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevert,
> Version=1.0.1320.21099, Culture=neutral, PublicKeyToken=null.
> Description: An unhandled exception occurred during the execution of
> the current web request. Please review the stack trace for more
> information about the error and where it originated in the code.
>
> Exception Details: System.TypeLoadException: Could not load type
> Stefan.CMSPageRevert.RevertTools from assembly
> Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevert,
> Version=1.0.1320.21099, Culture=neutral, PublicKeyToken=null.
>
> Source Error:
>
> An unhandled exception was generated during the execution of the
> current web request. Information regarding the origin and location of
> the exception can be identified using the exception stack trace below.
>
>
> Stack Trace:
>
>
> [TypeLoadException: Could not load type
> Stefan.CMSPageRevert.RevertTools from assembly
> Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevert,
> Version=1.0.1320.21099, Culture=neutral, PublicKeyToken=null.]
>
>

Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevertASPX.PageRevertPage.Hand
lePageRevisionListCommand(Object
> sender, DataGridCommandEventArgs e) +0
>
> System.Web.UI.WebControls.DataGrid.OnItemCommand(DataGridCommandEventArgs
> e) +110
> System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source,
> EventArgs e) +68
> System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs
> args) +26
> System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source,
> EventArgs e) +106
> System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs
> args) +26
> System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
> +121
>
>

System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.Rai
sePostBackEvent(String
> eventArgument) +115
> System.Web.UI.Page. RaisePostBackEvent(IPostBackEventHandler

> sourceControl, String eventArgument) +18
> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
> +138
> System.Web.UI.Page.ProcessRequestMain() +1292
>
>
>
> Thanks much,
> - laks.
>



laks

2005-03-23, 8:47 pm

thx for the reply. your dll works fine now. I guess for some wierd
reason it was giving error earlier.
I am trying to modify your code, When I Compile and use the new
compiled dll.
I am geting the following: I have noticed that the pdb file is smaller.

Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.

Parser Error Message: Could not load type
Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevert.RevertPostingAction
from assembly Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevert,
Version=1.0.1.0, Culture=neutral, PublicKeyToken=null.

Source Error:


Line 330: -->
Line 331:<!-- revert Page -->
Line 332: <revert:RevertPostingAction id="RevertPostingAction"
runat="server">
Line 333: <A id=PageProfileEditorAnchor onclick="<%#
Container.ActionJavascript %>;return false" href="#" target=_self>
Line 334: <%# Container.Text %>

thx very much
- laks

laks

2005-03-23, 8:47 pm

got it.
the project uses different namespaces, while the provided dll uses only
1 namespace for all the files. change the namespace and compile. the
dll works just fine.
thanks very much,
- laks

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com