Converting 1.0 web applications to 1.1

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm having trouble converting a current .NET web application developed in 1.0
into 1.1 framework.

On my localhost, I have IIS with .NET 1.1 framework as well as MS Visual
Studio 2003 Enterprise. I obtained the web application from Visual Source
Safe by checking out the solution. When I did that, it prompted me if I
wanted to update the solution for the 1.1 framework, and I replied Yes.
Afterward, it installed the web application on my localhost so that it is
governed by the 1.1 framework.

I am able to successfully launch the web app from the localhost
(default.aspx) as well as link to other aspx pages, but when I attempt to
post back a page that has C# code behind, I get the following message:

An unexpected error occurred during the processing of your last request. You
may use the Back button to return to the previous page and try again.

Object reference not set to an instance of an object.

I tried debugging the application, and this is as far as I got:


public DirectoryRequestMain()
{
Page.Init += new System.EventHandler(Page_Init);
}

private void Page_Init(object sender, EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Windows Form Designer.
//
InitializeComponent();
}

The error occurs when I post back DirectoryRequestMain.aspx, which then runs
these 2 methods. No code was changed (code came unadulterated from VSS).
I am at a complete loss. How can I determine what is happening?
 
Check the <@> tag at the top of the aspx page and ensure it is pointing to
the correct C# codebehind file.

If that is all you have in this page, I would copy out the ASPX tags (minus
the @ tag), dump the page and recreate it. Then copy the old tags back into
the page and run it again.

--
Gregory A. Beamer
MVP; MCP: +I, SD, SE, DBA

*************************************************
Think outside the box!
*************************************************
 
Here's what I did:

* I edited the apsx page such that I removed all <@>
* I started the web app in debug mode, then stopped it (since the lack of
<@> tags caused an error during the initial page load).
* I put the <@> tags back on the aspx page.
* I started the web app again in debug mode.

Still has the exact same problem. Now what do I do?
 
Back
Top