.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How do i access Active Directory Start Access and End Access Date

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application

How do i access Active Directory  Start Access Date and End Access Date from C#.NET (what properties am i supposed to look for??)

Thanks in advance for the help


View Complete Post

More Related Resource Links

how to force null in date field - access 2007 ?

hi i have table that contain date field. how i can force null or empty value on this field ? thank's in advance

i cannot access iis virtual directory using http protocol..getting status code error 403

i am trying to connect to remote exchange using powershell..while using powershell session i get status error 403...i changed the settings in iis manager...i have set all the settings in the iis manager as said in the msdn support blogs...yet i get the same error when i access it in the client url and also in powershell of the client computer...if i cannot connect using powershell,can i connect using .net???somebody help me...i am beginner and i am stuck...

Web Service Unable to access Directory (Temporary ASP.NET Files) CS0016

QuestionMoving web service to a production level server. This is not a new server, but is new to running an ASP.NET 2.0 web service. No other websites or services existed on this server.

Installed .Net 2 and specified that ASP is registered for 2.0 using aspnet_regiis. Installed missing components such as Front page extensions. When I try to browse to the services asmx page I get the error saying that the process has a compilation error and cannot access the asp.net temp directory under the 2.0 Framework. I looked at the directory and it appears that the asp.net process and others have correct access.

Note a basic asp.net page will come up as well as a basic html page.

All comments are welcome.

  • .Net 2
  • ASP.NET aspnet_regiis specifies .Net 2 as root
  • C#
  • IIS6
  • Windows Server 2003 SP1

SPD 2007 Manually Start Workflow access denied


Im having  a isssue i have encountered before, however the fix seems to either have sliped my mind or the fix i thought should fix it seems to be having a issue as well.


I have created a workflow in SPD 2007 to manually start and update a list item, however before i can even get to the "start" page i get access denied with EVERY user except the Site collection administrator.

The fix i had: Check the workflow out in SPD and check back in, BUT im also getting a error with ANY File upon trying to check back in "Cannot perform this operation. the file is no longer checked out or has been deleted" BOTH are not true.

So any input would be greatly appreciated.

Sql Server and Access Date Calculation


Hi Everybody,


We are working on same Sql Server and Access database tables. All columns and values same. But When I run query on sql and access, access and sql return different values to me.

Access Sql Query:

Int(Now())-[myDateColumn])/30 = 23.986760875771


Sql Server Query

(CONVERT(INT,GETDATE()) - CONVERT(INT,[myDateColumn])) / 30.0 = 24.033333


Why different values??


Thank you.



Web analytics service failed to start : access denied


I came a cross an error in my sharepoint environemnt whic indicates that Web analytics service  fails to start.

Web analytics service failed to start : access denied

I have everything up and running, is there a special service with a special privileges that need to be setup for this service?

Thanks in advance

Getting Last Access Date via Powershell in SP2010



I really hope some of you can help me out here - can't find ANYTHING on the internet, and I think it is common task for any admin to do, so...
Here goes:

What I want, is a powershell script that finds sites that hasn't been used (visited) in xxx days...

I'm not looking for site collections (so I can't use the build-in mechanism to notify users/delete site collection)  - but what I want to build in powershell is something similar to the build-in functions - just for sites (subsites or sub-subsites like a team site or something)

It sounds simple, and I thought it would be simple to create, but cant find anything about it.

I have tried some of the .Usage and Get-SPUsage(something) but none of them gives me what i want.

Has anybody any clue as to what to look for or do?
Really hope you can help - thank you :-)


Date Conversion From SQL Server To Access Database


When importing a table through ODBC link from Microsoft SQL Server into Microsoft Access, the field named LKL_DATE is converted from a format displayed in the user interface of Military Zulu time which uses a format of ddhhhhZmmmYYYY to a strictly numerical format when viewed from the table in Microsoft Access.  Below is an example.   My questions are what format is the data being converted to between the SQL server and being viewed in Microsoft Access.  The second is how do I convert the field data in Microsoft Access back to a date time format.  Below is an example.


Format in application GUI: 061002ZMar2011

Format when Imported into Microsoft Access Table: 1299405720

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.

Store and Display Images from MS Access Database Using C#

There is only the difference of coding syntax to stream the binary data of image content type to upload it into MS Access Database using C#/VB in ASP.Net 2.0

Namespaces required:-
using System.Data.OleDb;

OleDb is used to connect the web site forms with MS Access Database using Microsoft.Jet.OLEDB.4.0

ASP.Net Upload Image to MS Access Database

As you learnt from the previous articles to upload image to the SQL Database in ASP.Net 2.0 and stream that image into the memory to retrieve it from the database and display it on the web page. In this article you will learn how to upload images to the MS Access database in ASP.Net 2.0

First of all create an Access Database and place it in the App_Data folder of ASP.Net web site project. Then create a table "tblImg" with the following fields:

Wrong Account being used to access files - Help - No Impersonation


I run a simple .aspx website on a Windows Server 2008 machine.

There is NO impersonation, and System.Security.Principal.WindowsIdentity.GetCurrent().Name returns NT AUTHORITY\NETWORK SERVICE, which it the account which the application pool runs. In my web.config, I have <authentication mode="Forms">.


I tried to test the security of the application and server by removing file permissions to the .aspx files. I was greatly worried when the website continued to run without problem (it should not have been able to read the .aspx files).

By turning on file level auditing, I discovered that the .aspx files were being read by the machine$ account (if the machine is called Serv1, then the files would be read by the Serv1$ account, which seems to have access to all files on the local machine).


Is this a security breach or is this behaviour by design ?

Please can somebody assist, as I am worried.

Disallow Direct Access To Files



Here is my dilema, on my site i have a WordPress Audio player (http://wpaudioplayer.com/standalone) that plays my mp3's.

It loads the Mp3's in by javascript...example below:

       AudioPlayer.embed("audioplayer_7", { soundFile: "/Files/Music/[name of file].mp3" });

This file name is clearly visible in the browser source. Not a problem, however this means that any user can legitimately browse to the file directly and download it.

Now i still need the mp3 player (which is flash) to have access to the file but if a user was to try accessing the file directly, they would not be allowed access to it.

I am not sure how to go about this, i am circling the idea of a httphandler but not sure if this is sufficiant to stop the direct access to the file.

Any help would be appreciated

How to access a new database ( which i created ) in isqlplus ?



I created a new database with the help of Database Configuration Assistant !

I created with the scott account

Now i'm not able to connect to the database with the connect identifier with the scott account

The error i get is.,

ERROR - ORA-12154: TNS:could not resolve the connect identifier specified.

Plz help !

Access SessionState: via App1 to SessionState from App2


Hi .NET'ers,

i'm interested to do the following - i geuss, i have no option to do that:

we have our "mainapplication" on a DB; we are tracking user-login status by switching a bit in the DB in the users data row.

we hvae a second application, the backend, which is the administration tool.

(the applications are put in seperate diretories on HD)

sometimes, we need to block/ban users. in some cases the users are logged in, when we "see them in action".

i'd like to build a button in the backend-application, which logss-out the user from the mainapplication.

for sure: i can access the same DB and switch the bit to "know" he's offline, but this will not kill the session on the mainapplication.

because: if a user is on/offline is also indicated by the session in the IIS.
and as the IIS-session is active, the user may be already banned - but he will not be logged out automatically (and showing something like "you have been logged out because of a ban)

one option would be to call the DB by each page-load to find out, if the user is logged on.

is there any option to implement this?

Microsoft Application Block for Data Access in .NET


Hi all,

I was rummaging the internet learning aspx and came across the concept of: Microsoft Application Block for Data Access in .NET

It seems great of course. The articles are all early 2003-5 such as


So the question is - is this tech still relevant and should I be using it?



data access library v4.1


Ive just started a project that will use the enterprise library 4.1 data access code blocks.  Its been years since ive used them, can anyone tell me what assemblies I need to reference in my project in order to use them ?  Ive referenced 


are there any others I need ?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend