Hi I'm about to testing implementation of the simplemembership to my postgres server through dot connect. I was following [http://www.devart.com/dotconnect/mysql/ ... orial.html] this instruction to do so. As Step6, I replace the namespace "WebMatrix.WebData" with the "Devart.Common.Web". After this step, WebSecurity.InitializeDatabaseConnection occurring error which is "The name 'Websecurity' does not exist in the current context."
What am I missing now? please help me.
replace Devart.Common.Web name space with using WebMatrix.WebData
-
- Devart Team
- Posts: 2420
- Joined: Wed 02 Nov 2011 09:44
Re: replace Devart.Common.Web name space with using WebMatrix.WebData
Probably you have added the Devart.Data.PostgreSql.Web.dll assembly for .NET Framework 2.0 instead of the one for .NET Framework 4. Step 2 describes it in detail. You need to add the assembly not from the GAC, but from the Program Files\Devart\dotConnect\PostgreSQL\NET4 folder. For more information, please refer to http://www.devart.com/dotconnect/postgr ... orial.html
Re: replace Devart.Common.Web name space with using WebMatrix.WebData
Hi. thanks for your respond. To add dll files to the project reference, Do I just need to drag and drop the files to project references folder? And if I use entity framework also on this project, how do I have to add entity framework dll in to the project? same as usual?
-
- Devart Team
- Posts: 2420
- Joined: Wed 02 Nov 2011 09:44
Re: replace Devart.Common.Web name space with using WebMatrix.WebData
To add Devart.Data.PostgreSql.Web.dll assembly to your project you need perform the following:
For Visual Studio 2008/2010:
1. Open the Add Reference window;
2. Switch to the Browse tab;
3. Select the Devart.Data.PostgreSql.Web.dll assembly from the Program Files\Devart\dotConnect\PostgreSQL\NET4 folder ;
4. Make sure that the version of the Devart.Data.PostgreSql.Web.dll assembly is *.*.*.4;
For Visual Studio 2012:
1. Open the Add Reference window;
2. Switch to the Browse tab and click the Browse button in the lower right corner of the window;
3. Select the Devart.Data.PostgreSql.Web.dll assembly from the Program Files\Devart\dotConnect\PostgreSQL\NET4 folder ;
4. Make sure that the version of the Devart.Data.PostgreSql.Web.dll assembly is *.*.*.4;
For Visual Studio 2008/2010:
1. Open the Add Reference window;
2. Switch to the Browse tab;
3. Select the Devart.Data.PostgreSql.Web.dll assembly from the Program Files\Devart\dotConnect\PostgreSQL\NET4 folder ;
4. Make sure that the version of the Devart.Data.PostgreSql.Web.dll assembly is *.*.*.4;
For Visual Studio 2012:
1. Open the Add Reference window;
2. Switch to the Browse tab and click the Browse button in the lower right corner of the window;
3. Select the Devart.Data.PostgreSql.Web.dll assembly from the Program Files\Devart\dotConnect\PostgreSQL\NET4 folder ;
4. Make sure that the version of the Devart.Data.PostgreSql.Web.dll assembly is *.*.*.4;
Yes, all other Devart assemblies except Devart.Data.PostgreSql.Web.dll you can add as usual.garbgdev wrote:how do I have to add entity framework dll in to the project? same as usual?
Re: replace Devart.Common.Web name space with using WebMatrix.WebData
Thanks it works like charm!