Chris Hammond wrote:
Do you have debugging enabled in the web.config?
So stupid I am....get it work now, thanks alot.
By the way ,there is strainge problem comes up.
I build release version also change web.config to release. Then intall by Host panel. Then add it to a page. It comes up error as below:
Then funny thing coming, if I build the module again(I already set the build path to BIN of website), refresh the page, Everything shows up right as below.
That means my code is correct. I double check codes many times. Pretty sure there is no error.
It is just some simple codes that getting values from two fields(folder, filename) of table [files]. This table is built-in DNN NOT mine.
I debug these two variables values are correct. I don't know how come it gets this error. SQL string is
select [Filename],[Folder] as Fds from [files] where fileid=208 (there is record )
I am using repeater showing the images in ascx file. (DataBinder. Container.DataItem,"Fds"))
I find the problem is from the field "folder". If I dont use "folder" field, everything is fine. If I use field "folder", error shows up as first screen shot above.
Could it be a little bug of your platform? Or anything else causes this?