Re: Object reference not set to an instance of an object



They support Asp.net 1.1 only. I already know my code fails on the server.
There don't seem to be any tutorials on 1.1, only 2.0
Does the Web Matrix tell you HOW to make the changes?


"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:%23u007%23HpHHA.1852@xxxxxxxxxxxxxxxxxxxxxxx
re:
!> If I go backward, will much of my code have to be re-written?

Any code which runs against 2.0-specific objects will fail.

Do *you* have the .Net Framework 1.1 installed ?

If you do, the best way to know whether your code will run is to install
the Web Matrix ( http://www.asp.net/webmatrix/ ) which has a
development web server, just like Visual Studio and VWD have.

It's only a 1.3MB download.

If the code runs within the Web Matrix development server, you're good to
go.

If not, you can make the needed changes right in the
Web Matrix IDE, so your code *will* run against ASP.NET 1.1.

Of course, you can also ask your AT&T ISP whether they can support ASP.NET
2.0.
I'd find it really odd if they did not support ASP.NET 2.0.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"dancer" <dancer@xxxxxxxxxxxxx> wrote in message
news:OSjic3FpHHA.716@xxxxxxxxxxxxxxxxxxxxxxx
I am so irritated! My server - which is BellSouth.net - which is now
AT&T - does not have .Net Framework 2.0 installed.
Are they not WAY behind??!!

If I go backward, will much of my code have to be re-written?

Thank you.


"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:eiz6Ar6oHHA.588@xxxxxxxxxxxxxxxxxxxxxxx
re:
!> You will need to set the application to run against
!> the .Net Framework 1.1 and your problems will go away.

Oops... that's backwards.

You will need to set the application, at the server, to run against
the .Net Framework 2.0 and your problems will go away.

Open the server's IIS Manager, right click the application, and select
the "ASP.NET" tab;
then, select the .Net Framework 2.0 from the dropdown and OK your way
out.

Stop and restart the server's IIS ( from a "Run", cmd ) : iisreset

...and everything should work fine.

Sorry about the instruction reversal.






Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:OIwJRp6oHHA.588@xxxxxxxxxxxxxxxxxxxxxxx
That error message means that, at the server, the application is
running
against the .Net Framework 1.1, while at your computer it's running
against the .Net Framework 2.0.

You will need to set the application to run against
the .Net Framework 1.1 and your problems will go away.

Open the IIS Manager, right click the application, and select the
"ASP.NET" tab;
then, select the .Net Framework 1.1 from the dropdown and OK your way
out.

Stop and restart IIS ( from a "Run", cmd ) : iisreset

...and everything should work fine.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"dancer" <dancer@xxxxxxxxxxxxx> wrote in message
news:%23gGeBk6oHHA.4400@xxxxxxxxxxxxxxxxxxxxxxx
Hi Alexey,
There was not a web.config file on my web at the server. They created
one.
Now I get errors which are no problem on my own computer.
I notice that at the end of the errors page is this:

Version Information: Microsoft .NET Framework Version:1.1.4322.2379;
ASP.NET Version:1.1.4322.2379

While on MY computer there is this:

Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.210

Would that have anything to do with it?
If so, what can I do?


"Alexey Smirnov" <alexey.smirnov@xxxxxxxxx> wrote in message
news:1180481408.665677.24860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On May 30, 12:59 am, "dancer" <dan...@xxxxxxxxxxxxx> wrote:
I am communicating with my server by FrontPage, not ftp.
I called my server and asked, "How do I get to the web.config file?"
He answered, "What's that?"

Huh, a FrontPage? I'm not sure how it is working there, but as far as
I remember it has a site browser with all the files, I'm right? The
main web.config file is located in the root directory of your web
site. A web.config file could be located also in a sub-directories of
an application, but I think you don't use such case. So, look in the
root. If you have one, open it in FrontPage or copy a new one from
your local box.

How To Create the Web.config File for an ASP.NET Application
http://support.microsoft.com/kb/815179













.



Relevant Pages

  • RE: Is the .NET Framework 3.5 compatible for Win2000SP4 server?
    ... Yes, you're right, the .NET framework 3.5 is only supported the following ... Windows Server 2003; Windows Vista; Windows XP ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework)
  • Re: Object reference not set to an instance of an object
    ... I have downloaded and installed Net Framework 1.1 yet again. ... I removed Web Matrix from my computer, downloaded it again and installed it ... if you're going to use the development server built into the Web Matrix ... So I downloaded it and answered Yes to install. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Object reference not set to an instance of an object
    ... I did a search and there is a Net Framework 1.1 config and 1.1 wizard in the ... dev server should be able to run your 1.1 pages. ... As far as Web Matrix goes, ... So I downloaded it and answered Yes to install. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Object reference not set to an instance of an object
    ... I installed Web Matrix Project. ... started" page of the Walk Through ".NET Framework Version 1.0.3705.0" ... I was very careful to choose "Use ASP.NET Web Matrix Server" when I told it ... So I downloaded it and answered Yes to install. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET Configuration Error under Windows Server 2003 R2
    ... After I finished replacing the beta version of the .NET Framework v2.0 ... website on the new Windows Server 2003 R2 test server, ... This <customErrors> tag should then have its ...
    (microsoft.public.dotnet.framework.aspnet)

Quantcast