providers

Mocking classes that aren't interfaces

I've been writing some providers in c# that inherit from the providerbase class. I've found that it's hard to write tests that use the providers as most mocking frameworks will only allow you to mock an interface. Is there any way to mock a call to a provider that inherits from providerbase? If not, is there a pattern that I can use t...

Provider model in .net

When the .net 2.0 framework first came out, the provider model was all the rage. 2.0 even shipped with a bunch of default providers (Membership, sitemap, role). Since the release of 2.0, the hype has died down, and whilst I still use providers day to day, it seems to get far less press. I was wondering if this is because people are usin...

LINQ2SQL Database providers

I have heard that LINQ2SQL has been written to support multiple database vendor providers however for internal political reasons at MS, only SQL Server has been supported. Is this a fair summary of the situation, and if so has a timetable been released as to when other databases will be supported? I am aware of Matt Warren's BUILDING A...

Port 443 on iSeries v5r4 is ‘filtered’ to internet clients, even it is allowed in firewall rules. How can I make it ‘open’? Can it be i5/OS bug? [SOLVED]

Port was fitered by ISP. The problem is that HTTPS 443 port isn't accessible from internet, but it is open in our local network. Our iSeries v5r4 is connected to inet via L2TP withot IPSec. If no packet filters are active, nmap shows that ports 25, 80, 110 and even 10322 (WAS admin console) have state 'open' on internet ip address. 443 ...

Converting Single DB ASP.NET Site into MultiTenant - Membership and Roles Dilema

I'm in the process up changing a single SQL DB website (ASP.NET/VB.NET) into a multitenant app, where each client has their own database. In the old site, all the ASP roles, logins and providers pointed to the single database. Now we have multiple databases, I'm wondering what would the best architecture/techniques to use. There is one...

Writing Custom Roles Provider For Master Pages/No Machine.Config

I'd like to write a custom role provider for my application, which has existing users and roles tables. I'm looking for a reference on that, which: doesn't require machine.config changes (I see this a lot in custom role architectures), supports master pages that may be applied to child pages that require different rights. ...

Role, Membership, Profiles, Principals, and Forms Authentication

I'm swimming in the relationships and hierarchies of a web application that I'm trying to secure with custom sql membership and role providers. I'm a little fuzzy on forms authentication, principals, and the like. So -- The web.config is set up for forms authentication with a custom membership provider and custom roles provider. When ...

Configuration issue Web.Config / Custom Providers

Okay, this seems like a very simple issue, but I can't seem to get around it. I am almost 99% sure that this is an issue of Visual Studio itself, but I want to have a quick sanity check. I am creating a custom provider for Health Monitoring in Asp.Net. I have made a very simple provider that inherits from the BufferedWebEventProvider....

Is there any class similar to ProvidersHelper but not for web?

Is there any class similar to ProvidersHelper but not for web? I want to instantiate a collection of providers. Actually I'm using CodeSmith & Nettiers, and the db provider is Oracle. It generated a provider section to be added at app.config, and i dont know why it uses System.Web.Configuration classes or why at this section it says SQLC...

Can you switch off the schema check performed by ASPNET providers

We have created a custom membership provider, but we have inherited the Role and Profile providers. The problem we are having is there appears to be calls being made to aspnet_CheckSchemaVersion by the providers - I assume its the Role or Profile provider as our membership provider isnt inherited and we don't call the db. Is there a way...

How to test content providers on Android

I am trying to test my DB using ProviderTestCase2<T>. I can see the test DB being created. As such I suppose, the tested content provider should use the test DB. But as soon as I try any calls against the MockContentResolver (or the one created with newResolverWithContentProviderFromSql), I get an UnsupportedOperationException. This is d...

How to make zip etc. files appear as folders in PowerShell?

How can I make zip etc. files appear as folders in powershell? Does PowerShell have a concept of folder (item) providers akin to drive providers? Can this be done without implementing a drive provider? Preliminary search turns up some useful information but from the looks of it, it appears that I still need to implement the whole sheban...

Using Windows Vista Credentials

Hi all i am using CredUIPromptForWinodwsCredentialw for prompting the user for verifying his/her credentials how can i verify these credentilas. the code i am using is BOOL save = false; DWORD authPackage = 0; LPVOID authBuffer; ULONG authBufferSize = 0; CREDUI_INFO credUiInfo; DWORD logininfo; credUiInfo.pszCaptionText = T...

Accessing HealthMonitoring Provider settings programatically

I have set up ASP.Net health monitoring in web.config: <healthMonitoring enabled="true"> <providers> <clear /> <add name="CriticalMailEventProvider" type="System.Web.Management.SimpleMailWebEventProvider" from="[email protected]" to="[email protected]" bodyHeader="Application Error!" bodyFooter="Please investigate ASAP." subjectPrefix="...

Vista Credential providers

hi i am using the samplecredentialprovider for vista it works fine with local users login but it is not let the domain user logged in on domain can anybody help me how can i do this ...

Roles.GetRolesForUser calls default role provider only?

I'm using multiple role providers, the standard SQL provider plus a custom one. Inside Global.asax - RoleManager_GetRoles I create a RolePrincipal for users that should use my custom provider with the provider name set to my custom provider, and let other users be handled as normal. This almost works, asp.net allows access to pages pro...

Need Help With Provider Design Patterns

Hi. I need some help with DLL architecture / design patterns / OO. I have been learning about class factory design patterns as a solution to my current challenge and could use some feedback at this point. I have three classes that are custom wrappers for ASP.NET 2.0's ProfileProvider, MembershipProvider, and RoleProvider. I'd li...

MySQL data provider for .net

Do we have any Open Source MySql Data Provider for .net? If Any, Let me know. ...

Membership Provider users in different tables

I have an existing database with users and administrators in different tables. I am rewriting an existing website in ASP.net and need to decide - should I merge the two tables into one users table and just have one provider, OR leave the tables separated and have two different providers. Administrators, they need the ability to create, ...

ASP.Net forms authentication - multiple providers

I have an ASP.Net 4.0 application, and within it is a folder called "Forum", setup as a sub application in IIS 7. This forum package implements a custom provider for .net membership. The forum is running in .net 3.5. I'd like to setup the main site so that when users login, it logs them into both my site and the forum site. Both the main...