Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8879117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:52:49+00:00 2026-06-14T19:52:49+00:00

We upgraded our web app from asp 3.5 to 4.0 framework with minor issues.

  • 0

We upgraded our web app from asp 3.5 to 4.0 framework with minor issues. Now a block of code that I used to be able to debug throws and error, but once I compile and publish it in release mode and deploy it to the server it works fine. The server is a 2008 enterprise iis 7. The block of code is below. The problem occurs. It is when page is changed to ihttphandler type so the page’s request can be processed. When that line hits I get the IIS must be in Integrated mode. I checked the project. It is using the local ISS. The app pool is set to Integrated. What It is being attempted is to render the page in memory so that I can get at the controls contained on the page. What I don’t understand is why it is working once published and deployed.

    Private Sub RetrieveControls(ByVal file As String)
        If Not String.IsNullOrEmpty(file) Then
            Dim s As New System.IO.MemoryStream()
            Dim w As New System.IO.StreamWriter(s)
            Dim path As String = Me.Request.Url.AbsolutePath
            path = path.Remove(path.LastIndexOf("/") + 1)
            Dim wr As New System.Web.Hosting.SimpleWorkerRequest(path & file, "security=true", w)

            Dim t As Type = System.Web.Compilation.BuildManager.GetCompiledType(path & file)
            Dim p As Page = Activator.CreateInstance(t)
            p = BuildManager.CreateInstanceFromVirtualPath("~/Screens/" & file, t)
            Dim con As New HttpContext(wr)


            CType(p, IHttpHandler).ProcessRequest(con)



            Dim containerPC As ContentPlaceHolder = p.Form.FindControl("PageContent")
            Dim containerBC As ContentPlaceHolder = p.Form.FindControl("ButtonContent")

            RecursiveControlDrill(containerPC)
            RecursiveControlDrill(containerBC)
            Master.sm.ModifyData(m_ci, "Controls", SessionManager.SessionDataType.Temporary)
        End If
    End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:52:50+00:00Added an answer on June 14, 2026 at 7:52 pm

    I Have found the answer. Through organization wide updates framework 4.5 was installed on the developer machines. Once that was removed and 4.0 was re-installed everything is now working fine again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We just upgraded our app to Rails 3.2.2 and are now having a routing
Today I upgraded our grails app from 1.0.3 to 1.3.3 and, of course, things
I have upgraded my solution from VS2008. In our web project there are 2
We recently upgraded our app from Grails 1.3.7 to 2.1, which builds under maven,
I have some code in an asp.net app that needsto get the ipv4 address
I just upgraded one of our web apps to ASP.NET 4.0. It is using
I've recently taken an existing ASP.NET 3.5 web forms application that was upgraded to
I just upgraded our Hudson from 2.2.0 to 2.2.1 to fix a known bug
I just received an email from our host and they've upgraded our PHP to
We've recently upgraded one of our SSRS2005 servers to SSRS2008 and have found that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.