472,096 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

Unable to cast object of type 'ASP.' to type ''

Hi,
I recently started upgrading some of my old vs 2003 apps to vs 2005 and
used the conversion tool but now i get the following error after
building the page. I have typecasted the lines as follows:

((StyleSheetProvider)this.Page).GetStyleSheetPath( );

Is there some different way of typecasting that needs to be done in
vs2005? Thanks in advance.

Unable to cast object of type 'ASP.Feedback' to type
'JermLib.StyleSheetProvider'.
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.InvalidCastException: Unable to cast object
of type 'ASP.Feedback' to type 'JermLib.StyleSheetProvider'.

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:

[InvalidCastException: Unable to cast object of type 'ASP.Feedback' to
type 'JermLib.StyleSheetProvider'.]
JermLib.CustomControls.StyleSheetLink.OnPreRender( EventArgs e) +107
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1360

Apr 11 '06 #1
0 1510

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by rn5a | last post: by
1 post views Thread by =?Utf-8?B?RGF2ZQ==?= | last post: by
1 post views Thread by =?Utf-8?B?U2NvdHQ=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.