|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
"Name '...' is not declared" error.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 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 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 > > > 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 >> >> >>
Why Me? (Instead of Form1)
How do I increment a byte with out casting? How to walk through InnerExceptions? Capturing mouse events (Mouse up and down on the desktop) Cancel Constructor (Me = Nothing) How to connect to database Threading in .Net... Edit Mode Parent child binding question RichTextBox in Vs2005 Vb.Net shows unformatted RTF |
|||||||||||||||||||||||