none
Web Deployment Project Build error on VS 2005 RRS feed

  • Question

  •                We are facing the following two build errors when creating a Web Deployment Project for an application on VS 2005.

     

    1.       When we try to access the control values in the requesting page using “Context.Handler” from the current page, we got an error The type or namespace name [PageName] could not be found (are you missing a using directive or an assembly reference?)”.  (i.e.) it is asking reference for 'LiteratureSearchResults' class like normal class files used in the application. But, it is not the class file and it is also in the same namespace of the current page.
    (i.e)
    [PageName] frmSearchResults = ([PageName])Context.Handler;
    Here we are type casting the “Context.Handler” to the class name which requested the current page (LiteratureSearchResults.aspx) to get the control values in the requesting page.

    2.       Even when we try to access the control values in the requesting page using “PreviousPage” & “PostBackUrl” from the current page, we got an error [PageName] cannot be accessed due to its protection level ”.  

     

    Please help us to solve the above mentioned errors when creating web deployment for our application.

    Monday, March 9, 2009 7:22 AM

Answers