This question is locked. New answers and comments are not allowed.
I'm trying to figure out something that is bugging me about OpenAccess. From my experience, I can only use OA inside a Visual Studio ASP.NET Web Application. I cannot use OA inside a standard Visual Studio ASP.NET Web Site, which is the default VS template used when adding a Website to a Visual Studio Solution. Steps are below:
1. Create a blank VS Solution.
2. Add something like a BusinessObjects (Class Library) project to the solution.
3. Right click the solution, or use the menus, to add an ASP.NET Web Site. This IS NOT an ASP.NET Web Application, they are two entirely different templates inside VS. Add a Reference to the BO Layer.
4. Enable the BO Layer to use OpenAccess ORM. Update config references.
5. Try to enable the Web Site, but you can't until you add an ASP.NET Folder: App_Code to the Web Site.
6. Once that is done, you can Enable the Web site to use OpenAccess ORM. It then creates the ObjectScopeProvider, but you can never see the OSP when using the OpenAccessDataSource. It simply tells you to "Compile or build the project". So, I can never use the data source inside my aspx pages, because it can never sees any classes or scope provider.
When using the ASP.NET Web Application template, things work just fine. My problem is that when using the Web Application template, you do not see the code-behind files or the BIN directory in Solution Explorer, making navigation more difficult. The references to dll's appears to be different as well, sometimes hindering deploying the Web Site to a hosting provider.
Any information on this?
Thanks,
Mitch
1. Create a blank VS Solution.
2. Add something like a BusinessObjects (Class Library) project to the solution.
3. Right click the solution, or use the menus, to add an ASP.NET Web Site. This IS NOT an ASP.NET Web Application, they are two entirely different templates inside VS. Add a Reference to the BO Layer.
4. Enable the BO Layer to use OpenAccess ORM. Update config references.
5. Try to enable the Web Site, but you can't until you add an ASP.NET Folder: App_Code to the Web Site.
6. Once that is done, you can Enable the Web site to use OpenAccess ORM. It then creates the ObjectScopeProvider, but you can never see the OSP when using the OpenAccessDataSource. It simply tells you to "Compile or build the project". So, I can never use the data source inside my aspx pages, because it can never sees any classes or scope provider.
When using the ASP.NET Web Application template, things work just fine. My problem is that when using the Web Application template, you do not see the code-behind files or the BIN directory in Solution Explorer, making navigation more difficult. The references to dll's appears to be different as well, sometimes hindering deploying the Web Site to a hosting provider.
Any information on this?
Thanks,
Mitch