'Settings' is not a member of 'My'
webconfig was properly built.
tested other projects worked fine as the code was copied from them
So I was have a big wtf at this problem, as a generic error I was not finding any solution.
I found one post where the user created a new page in the same project, copied everything over and it worked, so I tried that, and it worked... here's the rundown of what I did....
I am using Visual Studio 2012.
- default.aspx - bad
- default.aspx.vb - bad
- default1.aspx - new
- default1.aspx.vb - new
- blanked out the contents of both bad files
- copy pasted contents(code view of aspx file) of both to new files
- deleted bad files via solution explorer
- renamed new files to bad file names (ie removed the 1 from the file name)
- my.settings references are working along with several other reference errors I was going to look at once i fixed the my.settings error.
so I created a whole new project. replicated steps above to transfer code, worked out several items that broke but were obvious fixes, and viola, 'my' errors went away.
Truth be told i had tried this before, but I think i had done File>New>Website... this last time round, I did File>New>Project
No comments:
Post a Comment