Forum Moderators: open

Message Too Old, No Replies

wont' compile my program!

wont' compile vb.net program

         

makeit

1:29 am on May 26, 2005 (gmt 0)

10+ Year Member



is it a dll problem?

on my vb.aspx file I have

Protected BackGrd As String
Protected Titreaffich As String

on the html side when I do

<%=BackGrd%> it works just fine(I can retrieve the value out of variable just fine)

but <%=Titreaffich%> I get
BC30451: Name 'Titreaffich' is not declared.

(why why why...) it's the same same thing

so then I erace some code on my vb.aspx page and the application(my vb.net project) works as if I changed nothing. I try eracing dll file(thinking the editor is going to generate a new one) then I get global.ascx
err. I then try to erace the pdb file. nothing again
I try to play with the debug project and relase, still do not work...

I try to find info on the net but to be straight up! I don't even now what words to use in a search since I don't really know what happened?

(it's probably some settings that are not set right))

thanks in advance!

TheNige

1:18 am on May 27, 2005 (gmt 0)

10+ Year Member



Did you give Titreaffich a value anywhere in your code?

makeit

2:45 am on May 29, 2005 (gmt 0)

10+ Year Member



I did a stupid mistake....

In vb my aspx file property build action was set to "compile" when it should be at "content" (cause that page as the content of the page html) while the aspx.vb as to be set to "compile" (that page as the code to be compile by the computer).In Visual Studio 2003 it's like that

Since it was at compile for the content, I would get a whole lot of err and the compupter would not generate a new dll. I haven't noticed that they where errors , because I haven't change nothing in the code, I thought they where warnings! I must a change the build action by accident.