Reputation: 245
I know this question look repetitive, but it is sort of different with similar topics.
I have developed a Website (not web application) in VS 2015. I made a public class "DBSetiings" to manage my connection strings in APP_Code folder. It works perfectly on my local machine.
I published the website to a web server (in the file system). But when I open the website it errors:
CS0103: The name 'DBSettings' does not exist in the current context
It seems like it is not finding my class.
In other similar topics people suggested the following solution which did not work in my case:
Here is why this solutions don't work in my case:
Is there any chance that there is something wrong with the way I publish?
This is the way I publish:
Any help is appreciated.
Upvotes: 0
Views: 711
Reputation: 245
The problem was solved when I migrated my code to web application rather than web site.
Upvotes: 0