Home All Groups Group Topic Archive Search About

"Name '...' is not declared" error.

Author
7 Jun 2006 3:44 AM
JohnJohn
Hello.  I have an aspx page called MyAspx.aspx (for the sake of this
discussion) and its associated code file, MyAspx.aspx.vb.  In the .vb file, I
have declared a variable as follows:

Public strIntRate As String

In the Visual Studio .NET debugger, the web page compiles and runs
perfectly.  However, I just published the web site on a different web server.
Upon accessing the page there, it gives the error, "Name 'strIntRate' is not
declared" and calls it a compilation error.

Admittedly, I'm green at publishing .NET web sites.  Can anyone point me to
what the problem might be?  If you need more info, let me know.

Thanks,
John

Author
7 Jun 2006 6:17 AM
Cor Ligthert [MVP]
John,

I am not sure if I can answer this, however what I know is that in
publishing websites the way it is done is very much changed between the
2002/3 version and the 2005 version.

Therefore can you tell which you use.

Cor.


Show quoteHide quote
"JohnJohn" <JohnJ***@discussions.microsoft.com> schreef in bericht
news:933DFACF-3454-4E54-A9E3-F6A66FD129CA@microsoft.com...
> Hello.  I have an aspx page called MyAspx.aspx (for the sake of this
> discussion) and its associated code file, MyAspx.aspx.vb.  In the .vb
> file, I
> have declared a variable as follows:
>
> Public strIntRate As String
>
> In the Visual Studio .NET debugger, the web page compiles and runs
> perfectly.  However, I just published the web site on a different web
> server.
> Upon accessing the page there, it gives the error, "Name 'strIntRate' is
> not
> declared" and calls it a compilation error.
>
> Admittedly, I'm green at publishing .NET web sites.  Can anyone point me
> to
> what the problem might be?  If you need more info, let me know.
>
> Thanks,
> John
Author
7 Jun 2006 1:39 PM
JohnJohn
Oh yes, I should have mentioned that.  I am using Visual Studio .NET 2005.

Show quoteHide quote
"Cor Ligthert [MVP]" wrote:

> John,
>
> I am not sure if I can answer this, however what I know is that in
> publishing websites the way it is done is very much changed between the
> 2002/3 version and the 2005 version.
>
> Therefore can you tell which you use.
>
> Cor.
>
>
> "JohnJohn" <JohnJ***@discussions.microsoft.com> schreef in bericht
> news:933DFACF-3454-4E54-A9E3-F6A66FD129CA@microsoft.com...
> > Hello.  I have an aspx page called MyAspx.aspx (for the sake of this
> > discussion) and its associated code file, MyAspx.aspx.vb.  In the .vb
> > file, I
> > have declared a variable as follows:
> >
> > Public strIntRate As String
> >
> > In the Visual Studio .NET debugger, the web page compiles and runs
> > perfectly.  However, I just published the web site on a different web
> > server.
> > Upon accessing the page there, it gives the error, "Name 'strIntRate' is
> > not
> > declared" and calls it a compilation error.
> >
> > Admittedly, I'm green at publishing .NET web sites.  Can anyone point me
> > to
> > what the problem might be?  If you need more info, let me know.
> >
> > Thanks,
> > John
>
>
>
Author
7 Jun 2006 3:18 PM
Cor Ligthert [MVP]
John,

I am sure not the best one to answer this. However did you use the publish
method, which starts with building DLL' with some obfuscated names?

Cor

Show quoteHide quote
"JohnJohn" <JohnJ***@discussions.microsoft.com> schreef in bericht
news:2270F23E-8293-4DD3-8273-DE69623B3614@microsoft.com...
> Oh yes, I should have mentioned that.  I am using Visual Studio .NET 2005.
>
> "Cor Ligthert [MVP]" wrote:
>
>> John,
>>
>> I am not sure if I can answer this, however what I know is that in
>> publishing websites the way it is done is very much changed between the
>> 2002/3 version and the 2005 version.
>>
>> Therefore can you tell which you use.
>>
>> Cor.
>>
>>
>> "JohnJohn" <JohnJ***@discussions.microsoft.com> schreef in bericht
>> news:933DFACF-3454-4E54-A9E3-F6A66FD129CA@microsoft.com...
>> > Hello.  I have an aspx page called MyAspx.aspx (for the sake of this
>> > discussion) and its associated code file, MyAspx.aspx.vb.  In the .vb
>> > file, I
>> > have declared a variable as follows:
>> >
>> > Public strIntRate As String
>> >
>> > In the Visual Studio .NET debugger, the web page compiles and runs
>> > perfectly.  However, I just published the web site on a different web
>> > server.
>> > Upon accessing the page there, it gives the error, "Name 'strIntRate'
>> > is
>> > not
>> > declared" and calls it a compilation error.
>> >
>> > Admittedly, I'm green at publishing .NET web sites.  Can anyone point
>> > me
>> > to
>> > what the problem might be?  If you need more info, let me know.
>> >
>> > Thanks,
>> > John
>>
>>
>>