View Complete Post
msxml6.dll: The filename, directory name,
or volume label syntax is incorrect.
when i use the validation given in the script
'Validate the data file prior to bulkload
sOutput = ValidateFile("c:\test\SampleXMLData.xml", "", "c:\test\SampleSchema.xml")
'If FileValid Then
' Check constraints and initiate transaction (if needed)
' objBL.CheckConstraints = True
'Execute XML bulkload using file.
objBL.Execute "c:\test\SampleSchema.xml", "c:\test\SampleXMLData.xml"
' Create a schema cache and add SampleSchema.xml to it.
Dim xs, fso, sAppPath
Set fso = CreateObject("Scripting.FileSystemObject")
Set xs = CreateObject("MSXML2.XMLSchemaCache.6.0")
sAppPath = fso.GetFolder(".")
xs.Add strUrn, sAppPath & "\" & strXsdFile
' Create an XML DOMDocument object.
Set xd = CreateObject(&quo
Is there a method where if I have a directory and a fully qualified filename, I can get a relative filename from the driectory to the file?
And is there a way to do the same thing with an http driectory and filename?
thanks - dave
May i know what is the Differenc that they actually make in IIS7 .
Please tell me at a low level as i am still a novice in Asp.Net
Thanks in Advance.
Hi every one ... How are you ??
OK ... I want to make album ... I try to make it using buttons( next & pre ) using imageButton control and variable (i)
So ... each next (++i) & pre ( --i) to show allimages in directory ("photo")
Here my code in C# ::
public partial class photos : System.Web.UI.Page
// LinkedList<string> names = admin.getNames();
static int i = -1;
static int l = 0;
protected void Page_Load(object sender, EventArgs e)
dir = new DirectoryInfo(MapPath("photo"));
files = dir.GetFiles();
//l = (int)names.LongCount();
l = files.Length;
if (l == 0)
Label2.Text = "No Photo to Display !!";
Image2.ImageUrl = "images/ith.png";
How to set SearchRoot Path in Active Directory in this
Functionality: We have scenario that
1<sup>st</sup> hit one LDAP server with some 'fixed user
name' &' fixed password ' and filter data
with specific User name(which given by user) getting 'User dn'.
After that we hit Next LDAP server based on the 'User
dn' getting from 1<sup>st</sup> server.
(So, in my case 1<sup>st</sup> LDAP
server works like as Load balancing server but functionalitywise it is
wi As System.Security.Principal.WindowsIdentity = _System.Security.Principal.WindowsIdentity.GetCurrent()
Dim a As String() = HttpContext.Current.User.
I am have requirement like displaying all the user information reporting to specific manager from Active Directory.
Please help me regarding this.
Hi,I want to get files(.doc,.docx) from Directory and show the Content with formatting in a webform.Is there any solution?Please help me.Thanks in advance.
When i try to List the users from Active directory, i get this exception.
Error while processing.System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindAll()
The code i used is :
deSearch.Filter = "(&(objectClass=user) (cn=" + UserName +"))";
SearchResultCollection results = deSearch.FindAll();
But the DirectoyEntry method is getting validated if i use the overloaded method : DirectoryEntry(_path, domainAndUsername, password);
Please advice me.
This article explains how you can use Active Directory Federation Services (AD FS) 2.0 to claims-enable Windows Communication Foundation (WCF) services and browser-based applications. The focus is on the token issuance functionality in AD FS 2.0. You'll find out how to use AD FS 2.0 as an identity provider; set up an AD FS 2.0 security token service (STS) to interact with WCF; federate AD FS 2.0 with your custom STS or another AD FS 2.0; enable Web single sign-on and federation with WS-Federation and SAML 2.0 protocols; and externalize authentication logic through Visual Studio. You'll come away appreciating how AD FS 2.0 and Windows Identity Foundation make programming identity solutions in Windows less of a chore.
MSDN Magazine November 2009
Here's an overview of the new System.DirectoryServices.AccountManagement class in the .NET Framework 3.5 and how it simplifies working with directory services.
Joe Kaplan and Ethan Wilansky
MSDN Magazine January 2008
If you're not taking advantage of Active Directory, you should be. Learn the benefits from Keith Brown.
MSDN Magazine July 2007
Use Active Directory Federation Services to allow other organizations to use your Web applications without the need for you to grant access explicitly.
MSDN Magazine November 2006
System.DirectoryServices is a managed code layer on top of Active Directory Service Interfaces, and you can employ it to better manage Active Directory from your code. Here Ethan Wilansky helps you get started.
MSDN Magazine December 2005