Re: Object reference not set to an instance of an object
- From: "dancer" <dancer@xxxxxxxxxxxxx>
- Date: Fri, 1 Jun 2007 16:02:13 -0400
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
.
- References:
- Re: Object reference not set to an instance of an object
- From: dancer
- Re: Object reference not set to an instance of an object
- From: Juan T. Llibre
- Re: Object reference not set to an instance of an object
- Prev by Date: Formview inside of a User Control
- Next by Date: Get the full file path
- Previous by thread: Re: Object reference not set to an instance of an object
- Next by thread: Re: Object reference not set to an instance of an object
- Index(es):
Relevant Pages
|