Search This Blog
Wednesday, September 30, 2009
Tuesday, September 29, 2009
Monday, September 28, 2009
Anonymous access in server 2008 IIS
goto Default Website -> Authentication -> Anonymous Authentication (set enable/disable)
System.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password.
http://stackoverflow.com/questions/400872/c-active-directory-check-username-password
Resolved my issue by using "Imports System.DirectoryServices.AccountManagement"
Project was working well in XP but not in Windows 7
Replaced:
Dim domainEntry As DirectoryServices.DirectoryEntry
Dim searcher As DirectoryServices.DirectorySearcher
Dim results As DirectoryServices.SearchResultCollection
Dim domainLogin As String
Dim fullName As String
domainLogin = User.Identity.Name
'Strip off domain prefix
domainLogin = domainLogin.Substring(domainLogin.IndexOf("\") + 1, domainLogin.Length - domainLogin.IndexOf("\") - 1)
domainEntry = New DirectoryServices.DirectoryEntry("LDAP://domainname.com", "domainname\username", "Password")
searcher = New DirectoryServices.DirectorySearcher(domainEntry, "(SAMAccountname=" + domainLogin + ")")
results = searcher.FindAll()
with:
Dim domainEntry As DirectoryServices.DirectoryEntry
Dim searcher As DirectoryServices.DirectorySearcher
Dim results As DirectoryServices.SearchResultCollection
Dim domainLogin As String
Dim fullName As String
domainLogin = User.Identity.Name
'Strip off domain prefix
domainLogin = domainLogin.Substring(domainLogin.IndexOf("\") + 1, domainLogin.Length - domainLogin.IndexOf("\") - 1)
Dim context As PrincipalContext = New PrincipalContext(ContextType.Domain)
Dim foundUser As UserPrincipal = UserPrincipal.FindByIdentity(context, "username")
domainEntry = CType(foundUser.GetUnderlyingObject(), DirectoryEntry)
searcher = New DirectoryServices.DirectorySearcher(domainEntry, "(SAMAccountname=" + domainLogin + ")")
results = searcher.FindAll()
Friday, September 25, 2009
SharePoint WildCard Search
http://nullexception.net/2009/03/sharepoint-2007-wildcard-search/
http://www.codeplex.com/SPWildCardSearch - it is a web part that allows for WildCard Searches
http://kmpipeline.blogspot.com/2007/05/free-moss-wild-card-search-add-on.html - Ontalica add on for wild card search (FREE)
Thursday, September 17, 2009
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
http://forums.asp.net/p/1356844/2821618.aspx#2821618
In my case, there was no security tab in services properties so i used identity impersonate in my web.config n it worked like a charm :)
Monday, September 14, 2009
Unrecognized attribute 'requirePermission'
http://forum.dotnetpanel.com/forums/p/436/2378.aspx
I performed disk cleanup, cleaned up temp asp.net files, and set .net framework to 1.1. then applied, and then applied .net framework to 2.0 and then clicked apply again.
Sunday, September 13, 2009
Friday, September 11, 2009
Wednesday, September 9, 2009
Tuesday, September 8, 2009
Monday, September 7, 2009
Blog Module with DNN 5.1.2
Blog Module and some other modules are not available with DNN 5.1.2 because it is a new release; so I would suggest people who require more modules to use DNN 4.9
Sunday, September 6, 2009
Saturday, September 5, 2009
Friday, September 4, 2009
Thursday, September 3, 2009
Tuesday, September 1, 2009
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
http://geekswithblogs.net/vadivelkumar/archive/2006/02/25/70703.aspx
In my case it was coming due to the Response.Redirect in the code.
Subscribe to:
Posts (Atom)