I’m having a hard time deploying my website.
I got through some errors and they got resolved and I successfully published my website but when I try to open any page it gives me 404 or 500 Error
My host provider told me that if this page is using a database and it’s not deployed then this is might be the problem
so I tried to deploy my database and I get the connectionString error.
The problem is that I’m not storing my connectionString in the web.config
It’s stored in a property in my base DAL class and it’s used by all the DAL classes
so I updated it but I get the same error
I dont know what’s wrong, should I include the connectionString in the web.config ?
N.B When I build the package and I try to set the active mode to ‘release’ it returns the setting to ‘debug’!
I’m sorry but all the answers advised me that I need to place the ‘ConnectionString’ in ‘Web.config’ but actually the whole problem was solved when I added my application to a virtual directory and I didn’t need to change my DAL layer or add anything to the web.config
Of course I learned from your answers and I appreciate it but no I don’t need to add anything in my web.config If I decided to have this design pattern.