.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

Determine IPv6 Subnet(s) for Local Machine

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :.NET Framework
I'm trying to add support for IPv6 in one of my .Net applications and I can't figure out how to determine the IPv6 subnet mask of the local machine. Can anyone tell me how this is done?

View Complete Post

More Related Resource Links

Getting Local Machine Info from Web Service

Hi there, im pretty new to using web services and i have an application which connects to a webservice, the problem is however is that i need to be able to get the local machine info e.g machine name, drives etc...from the webservice and i have no idea how to do this! Any help would be much appreciated!Phil

SQLCLI service not registered on the local machine error

Hi, With reference to the above title, I am trying to connect an SQL Server 2008 Express instance which came along with Visual Studio 2010 Ultimate from my C# app. My connection string is: Provider= SQLNCLI;Server=host\SQLEXPRESS;Database=database; When I try connecting with the above connection string, it says: SQLNCLI provider not registered on the local machine followed by my connection string. What am I supposed to do to solve this issue? Thank You in advance for your reply. Regards, Clifford

SQL Error with Login: Login failed for user 'NT AUTHORITY\SYSTEM'. [CLIENT: ]

<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple; mso-themecolor:followedhyperlink; text-decoration:underline; text-underline:single;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-m

Accessing image file in local machine from server

 Hi i have a  .JPG file in my local machine which has  to be sent as body of SMTP mail. Path of image D://foldername//imagename.jpg The code I run is in the server m\c. I want it to access my local machine's d:\ folder to get the image file. But it is accessing the server m\c's d:\ folder. How can this be done? Thanks Amuda.RG  

Accounts used by application pools or service identities are in the local machine Administrators gro

ERROR: Using highly-privileged accounts as application pool or as service identities poses a security risk to the farm, and could allow malicious code to execute.  The following services are currently running as accounts in the machine Administrators group: SharePoint Central Administration v4 (Application Pool) SPTimerV4(Windows Service) there are 2 accounts associated with this install. 1. SQL ACCOUNT 2. SP Admin account(farm) the admin account has the following listed components    Farm components using this account      Microsoft SharePoint Foundation Application Pool: SharePoint - 80 SharePoint Server Search Web Analytics Data Processing Service Farm Account User Profile Synchronization Service Microsoft SharePoint Foundation Sandboxed Code Service Access Services Secure Store Service PowerPoint Service Application Word Viewing Service PerformancePoint Service Application Visio Graphics Service Managed Metadata Service Web Analytics Service Application Word Automation Services Excel Services Application Business Data Connectivity Service Search Administration Web Service for Search Service Application User Profile Service Application Search Service Application Application Discovery and Load Balancer Service Application Security Token Service Application   The farm account is not listed in the local machines admi

Copy folder from FTP site using SSH to local machine using a script task (.NET)

  Hello, I need to copy a folder over to my local machine from a FTP site that is listening on SSH/SFTP connection. Could this be accomplished using .NET? I have an SSIS package, and I am wondering if I can accomplish this in a script task...   Thanks DaveDave SQL Developer

Copy folder from FTP site using SSH to local machine using DOS batch files



Is there a way to copy a folder from an FTP site listening on SSH connection using DOS batch files? I know that there are several third party tools out there that accomplish this. I am NOT looking for that solution. I tried this in Powershell, but could not find a solution, and I am hoping a simple DOS batch file can handle this.


Any help would be appreciated...

Dave SQL Developer

Creating DSN for local machine in SQL Server Express 2005


Good evening,

This is my first time with SQL Server, so please forgive me if this is a ridiculous question:

I'm trying to create a DSN so I can connect up to SQL Server Express 2005 on my laptop/local machine. I'm attempting to connect via Windows NT authentication. I've tried 'Named Pipes' and TCP/IP settings but am not able to connect. I keep getting an error that states:

SQLState: '01000'

SQL Server Error: 2

Connection failed

SQLState: '08001'

SQL Server Error: 17

SQL Server does not exist or access denied

Is the server created by just installing SQL Server 2005, or is there something additional I need to do? Any help would be much appreciated.




Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.IO;

using System.Data.OleDb;

using System.Data;

namespace WebApplication1


    public partial class WebUserControl1 : System.Web.UI.UserControl


        protected void Page_Load(object sender, EventArgs e)



        protected void Button1_Click(object sender, EventArgs e)


            OleDbDataAdapter myCommand = null;

            DataSet myDataSet = null;


            DataTable dtExcelInfo = null;


Any hint to make a join between different server run on local machine?


if join remote table and local table, one execution plan is

1:  fetch the data from remote, and then run the sql at local.

2: push the data to remote, and execute the sql on remote, and fetch the result back.

which one is better depends. Does sql server support to use hint to use plan 1 or plan 2?

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.


Server Error in '/' Application.

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

Source Error:

Line 485:                OleDbDataAdapter mydata = new OleDbDataAdapter("select * from [Sheet1$]", strconn);
Line 486:                mydata.TableMappings.Add("Table", "ExcelTest");
Line 487:                mydata.Fill(ds);
Line 488:                
Line 489:                StringBuilder strb = new StringBuilder();

Source File: c:\inetpub\vhosts\smswonders.co.in\httpdocs\Users\Quick SMS.aspx.cs    Line: 487

Stack Trace:

Synchronizing schema from local development machine to remote web server


As a single developer in a small business I'm developing a data-driven website on my local machine using VS2008 Professional (I also have 2010 Professional)

It is then synchronised with a dedicated server using Expression Web (ditto design)

I'm using SqlExpress both machines and as features are added, I want to synchronize the dedicated server schema from the local schema

VS2010 has such a feature, but it's a ____ of a price to pay for one feature - basically adding fields as I add functionality.

I'm surprised SqlServer doesn't have such a feature built in - am I missing something?

(I've trialled RedGate SqlCompare, but it can't access the remote db, and I'm reluctant to enable SqlServer Remote Connections on a machine I don't own).


The test form is only available for requests from the local machine.


I created a WCF service with several functions. I then created an asmx client for the WCF service and created a webmethod for each function in the WCF service. I hosted the asmx client website on IIS. When I browse the myService.asmx from the local machine, and click on a webmethod it works fine, shows me a form where I can pass parameters and see results. When I browse from another machine in the local network as http://myservername/myService.asmx, it shows me the web methods, but when I click on any web method I do not get the form to pass paramaters. Instead I get this message:

"The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response.......

SOAP 1.2

The following is a sample SOAP 1.2 request and response.........



Why am I not able to access the form from my local network? What needs to be done to be able to see that?



Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine- Class Library . win 7 - 64


Hello I wrote a Class Library Program( DLL ) using  VB.Net - It works fine in a 32 bit machine. But when it runs on a 64 bit machine(win 7) . Get this Error:

'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine." Trying to open an access file

I know this is a 64 bit problem and the solution is change the Target Platform to 32 bit instead of Any CPU , In Soluton Properites. But my application is not a windows Form applcaiton(when I built it it created Dll , Not exe ),  therefore  the Target Plat form is not actiavated in the propeties Tab.

Anybody could help me here. My job continuation depends on this. I am base on a contract and now  company is upgrading all machines to 64 and my Test program doesn't work. I already checked and have the latest version of Microsoft Jet. Thanks  for reading.

Problem with decryption data in stored procedure if local date on my machine was changed


Hi people!

Can anybody help me with my problem?

I have one machine (Server 2003 x64 SP2, SQL Server Standard Edition (64-bit) version 9.00.4053.00). Also I have a stored procedure in database that doing a validation of users, and contains the next code:

OPEN SYMMETRIC KEY PasswordFieldSymmetricKey
  CONVERT(varchar, DecryptByKey(EncryptedPassword)) AS 'Password'
  FROM [User]
  WHERE ([Login] = @Login)
        AND (CONVERT(varchar, DecryptByKey(EncryptedPassword)) = @Password);
CLOSE SYMMETRIC KEY PasswordFieldSymmetricKey;

All works correctly but if i change the "Date and Time Properties" on my machine i receive the next error

(0 row(s) affected)
Msg 15315, Level 16, State 1, Procedure user_login, Line 111
The key 'PasswordFieldSymmetricKey' is not open. Please open the key before using it.

If i set the current date it will work correctly again.
One strange thing:
if execute the query "SELECT * FROM sys.symmetric_keys" i have the next date of creation for my symmetric keys

2010-11-04 11:18:49.300

And if i set a date less then date of

OLE DB provider : The 'OraOLEDB.Oracle.1' provider is not registered on the local machine.



Getting following error while trying to connect to ORACEL database using OLEDB manager.

Please advice.


TITLE: Microsoft Visual Studio

Error at RADAR [Connection manager "RADAR_Updated"]: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_ERROR.  The requested OLE DB provider OraOLEDB.Oracle.1 is not registered. Error code: 0x00000000.
An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".

Error at DFT LOAD AGGTYPE TABLE [RADAR AGG TYPE [1]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "RADAR_Updated" failed with error code 0xC0209302.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.


Exception from HRESULT: 0xC020801C (Microsoft.SqlServer.DTSPipelineWrap)



MSDAORA.1 is not registered on local machine


Hi Guys!

My app throw exception with the message of "MSDAORA.1 is not registered on local machine" in iis7, but it's normal in vs(debug mode), what's the problem of that?


OS: Windows Server 2008 Web R2

ODAC version: 11

development and deployment in a same machine.


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