Home » .Net Framework

POS Printer Device Enabled - POSControlException Thrown

I'm attempting to print to an NCR 7197 receipt printer using the Microsoft.PointOfService dll that's part of Microsoft POS for .NET SDK.

Here are some of the resources I've examined:




The simplified C# 2008 code I'm working with is the following:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.PointOfService;

namespace MyOPOSPrinterTest
  public partial class frmPOSTest : Form
    PosExplorer posExplorer = new PosExplorer();
    string strLogicalName = "MyTestPrinter";

    public frmPOSTest()

    private void Form1_Load(object sender, EventArgs e)
      DeviceInfo oDevicePrinter = posExplorer.GetDevice("PosPrinter", strLogicalName);
      PosPrinter oPrinter = (PosPrinter)posExplorer.CreateInstance(oDevicePrinter);

        if (oPrinter != null)
          oPrinter.DeviceEnabled = true;
      catch (Exception exPrinter)
        MessageBox.Show(exPrinter.ToString(), "Warning");

I get a POSControlException on the following line:

oPrinter.DeviceEnabled = true;

Additional details on the exception:

"Microsoft.PointOfService.PosControlException: Failed to set property DeviceEnabled

at Microsoft.PointOfService.Legacy.LegacyProxy.SetProperty(String propertyName, Object propertyValue)

at Microsoft.PointOfService.Legacy.LegacyProxy.set_DeviceEnabled(Boolean value)

at Microsoft.PointOfService.Legacy.LegacyPosPrinter.set_DeviceEnabled(Boolean value)

at MyOPOSPrinterTest.frmPOSTest.Form1_Load(Object sender, EventArgs e) ...

ErrorCode: Failure

ErrorCodeExtended: 0

End of Additional Details

I'd appreciate some suggestions on what I might be missing.




1 Answer Found


Answer 1

I've also done quite a bit of searching on the MSDN Forums.



i saved a data in Mobile Excel.I have a button as 'PRINT' .

When i click on PRINT button the excel sheet should print


i want to Print PDA excel sheet data to Printer(bluTooth Printer).

Any ideas...

Waiting for your reply

Thank you


Do I need the package "Device User Experience" to get the Printer and Devices section in my control panel? If thats true I have to use the WS7P SKU instead of WS7E only for printer management. What other options would I have? I need to configure default printer, add/delete printers and have access to the printer queue. And this if possible in a user friendly way...


Hello, I've written my application (VB.NET) already and it works beautifully on both TPG and EPSON printers like I needed.  Now I need to get it to run remotely..

Now I imagine this section of my code is what will need to be altered:

            Dim oposDevice As DeviceInfo
            Dim oposDeviceCollection As DeviceCollection
            Dim oposExplorer As New Microsoft.PointOfService.PosExplorer
            Dim oposPrinter As Microsoft.PointOfService.PosPrinter

            oposDeviceCollection = oposExplorer.GetDevices(DeviceType.PosPrinter, DeviceCompatibilities.Opos)


I haven't decided which remote machines I'd like to get information from, but it appears from looking at SOmgr by Sean liming, this IS possible.  Do I just need to impersonate the remote machine?  Say I wanted to pull information from a machine named \\remote , is this possible?  Can anyone point me in the right direction using the code I have above?  Thanks for any help offered!


We need to develop a SO for ESC/POS printer under POS for .NET.
We are new at this area and want to estimate how many effort will be cost to develop such a service object. (about how many weeks per person) Are there any reference code is this case??


Hi all,

I'm planning to write a cashier program using c#.net and the program need to link to a epson receipt printer, cash drawer and display terminal.

I'm not sure about the printer model.

If i want to write this program, do i need to get any library files from the hardware vendor in-order to communcate with all the hardware device?

like send the receipt format to the printer and control the cash drawer to open and display the amount in the display terminal.

This is my first time doing program and communicate with hardware device.

Can someone teach me or brief me the flow or things that i need to take care or give me any reference website before i start to do the programming part?

I dun have much idea on how to program for the communication for the hardware side.

Hope that i can get more advice and guide for this project.

Thanks a lot...

Hi All,

I am new to POS Devlopment.  Plase help me in POS Printer.

I need an example, which will checks the Printer is connected. enabled and it should print sample. I am using EPSON (POS printer) TM -T881V.

Please send me C# sample applciation. Thanks in advance.


I have install the POS for .NET, when I open the TestApp.exe in the SDK folder.

when I try to claim my POS printer and enable to print something, it show the following error message....

POSControlException ErrorCode(Timeout) ExtendedErrorCode(0) occurred: Method ClaimDevice threw an exception.  The Service Object timed out waiting for a response from the device, or the Control timed out waiting for a response from the Service Object.


I have install the POS printer driver and set the port in LPT1..

I can print and kick the cash drawer with it's own custamize software, but not .NET application.





Dear all,

I have a receipt printer which connected to the cash drawer. Model: HP A799

I got the following error for POS Printer and receipt never print out.

Microsoft.PointOfService.PosControlException: Failed to set property DeviceEnabled.
ErrorCode: Failure
ErrorCodeExtended: 0
Stack trace:    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at Microsoft.PointOfService.PosException.GetExceptionText(Exception e)
   at Microsoft.PointOfService.PosException.LogError()
   at Microsoft.PointOfService.PosControlException..ctor(String message, ErrorCode errorCode, Int32 errorCodeExtended)
   at Microsoft.PointOfService.Legacy.LegacyProxy.SetProperty(String propertyName, Object propertyValue)
   at Microsoft.PointOfService.Legacy.LegacyProxy.set_DeviceEnabled(Boolean value)

Form On_Load


  string PosPrinterName = "A799";

  //string cbCompatibilityLevel = "";

  deviceInfo2 = explorer.GetDevice(DeviceType.PosPrinter, PosPrinterName);

  if (deviceInfo2 == null)

   MessageBox.Show("System did not detect any connection with POS Printer!");
   posprinter2 = (PosCommon)explorer.CreateInstance(deviceInfo2) as PosPrinter;
   //label1.Text = "Created instance of device: " + deviceInfo.ServiceObjectName + "\r\n";//posprinter2.Open();

  catch (Exception ex)

 Print Receipt function.

posprinter2.ValidateData(CurrentStation, receipt.ToString());
posprinter2.PrintNormal(CurrentStation, receipt.ToString());

 Where Open_POS_Printer();

privatevoid Open_POS_Printer()

  if (posprinter2 == null)




  catch (Exception ex)

  MessageBox.Show(ex.Message + " POS Printer - BizPOS - Open");


and Claim_POS_Printer();

privatevoid Claim_POS_Printer()
  if (posprinter2 == null)






  catch (Exception ex)

  MessageBox.Show(ex.Message + " POS Printer - BizPOS - Claim ");


 and Enable_POS_Printer();

privatevoid Enable_POS_Printer()
  if (posprinter2 == null)
  posprinter2.DeviceEnabled = true;

  catch (Exception ex)
  MessageBox.Show(ex.Message + " POS Printer - BizPOS - Enable");

Why the code above will get the error as shown? Any idea? Please advise. The receipt printer is connected to POS machine via USB interface and the cash drawer is connected to this receipt printer. Do i need to send signal to cash drawer when printing receipt or vice-versa?

Thank You.


If you are using POS for .NET and deciding which scanner/imager to use, with the availability of the imager SO on codeplex, in my opinion there is no reason to use any scanner device other than Honeywell Scanners.  Here is a link to the codeplex scanner so http://cahhpso.codeplex.com/

For a list of compatible scanners, check here:  http://www.honeywellaidc.com/Site.aspx/na/en/products/categories/?cat=9.  In particular, look at the 3800, 4600 and 4800 series scanners for use with POS for .NET.

The scanners themselves are pretty good and well designed by Honeywell.  Prior to the availability of a working SO, i could not recommend them.  (I recommend that you avoid the POS for .NET service object posted on the Honeywell website).  With the codeplex SO, these scanners perform wonderfully and I can endorse them.  They are best of breed.  The scanners do contain a camera (imager).  This functionality is not currently supported by the available SO.  I hope that this functionality will be supported in the future because it is quite amazing that you can take a crystal clear photo at the Point of sale with the 2d imagers/scanners.

Additionally, I can say my most recent experience with Honeywell tech support was excellent.  The U.S. based rep answered the phone within 3 minutes and accurately addressed my question.  I can say I have some experience with other device manufacturers and their support can be quite horrible.

If you are an IHV, you should consider adding native .NET Service object support for your devices.  It really does make a difference.  To my knowledge, there is not currently a native .NET service object for RFID devices, Biometric devices, Pinpad devices or MICRimage devices).  Thus, there should be plenty of opportunity to gain market share in this growing space.



A new blog has been posted to help people who want to interface with biometric devices (such as fingerprint readers).  It is on the team blog site here:


I am working on adding .NET for POS/OPOS/UPOS support to our application.  I decided to start with SigCap and thus ordered a very popular SigCap device (Honeywell TT8500) which claimed to have UPOS driver support (which Honeywell claims not to support).  I have now worked on this for weeks and have made progress but am now at the realization.  The setup of this device's UPOS environment is like duck taping a wheel on a car.  Now I've hit a wall in that the POS for .NET framework does not let me access any part of the sigcap device (use of any properties on the Device object throws an exception).  I've tried the OPOS assemblies for .NET provided by Curtiss Monroe at http://monroecs.com/posfordotnet/opos_dotnet.htm. and they work but as soon as the "Done" button is pressed on the SigPad, the program simply disappears (no exception, no error, it just ends).  The TT8500 is OBVIOUSLY not the defacto SigCap pad for POS for .NET and with Honeywell basically washing their hands of using anything but C++ or VB 6 to access it, I think of it as a dead end device.

My question is there a good list of signature pads which DO work well with POS for .NET and/or OPOS which are easy to setup, whose drivers don't misbehave and whose manufacturer doesn't treat me like a leper for using a modern programming environment?


Hey. I'm completely new to POS, but have come across it hoping it will solve my problem. I would like to create a virtual microphone device so that users can select the device in their "Live Messenger" app (or other apps that can handle a microphone). For example, the user can input audio in my app and my app would route this to the microphone input of a user's application.  Is this possible with POS, or is there an alternate way of achieving this?


im from iran.your site very fine.
i have a question .
in my country have vary device that send it information by phone line(example:fax,POS...)
if me connect it to my computer modem and my computer modem connect to phone line.how can i read information recived and sended.
thank you

Hi all

I am trying to run eVC++ 4.0 .exe from WCE Device emulator  5.0. I want to execute an .exe which has some printer mechanism from emulator but it does not detect the default printer in print Setup dialog box when the PrintSetupDlg() executes.

please help

Regards Param




here's my situatuion: I am using a .NET Micro Framework device as a service host - if exceptions occur during the processing of a request, they will be transformed into a WS-Fault message that is being returned to the client. The exception's message-field will be put into the fault's "Detail"field. I would like to recover that information on a WCF-client. Without modifying the code of the Micro Framework (which is open source), I do not have a lot of influence on this process.


Fortunatley, both the code for the WCF-client and the MF-service are being generated from the same WSDL - in my case this WSDL comes from a WCF-service (a dummy service, containing just the contracts and no implementation). Therefore, I am able to use FaultContracts (although they will be ignored during code-generation for the MF device). My idea would be to "rebuild" the fault-object, include it in the data-contract and specify it as a FaultContract for every operation. This way, I should be able to use "System.ServiceModel.FaultException<MFFault>.Detail" to retrieve the desired message. Using the non-generic version of the FaultException, I only have access to the "Reason"-field, which contains a generic error message.


Here's the SOAP-message of the transmitted fault:

HTTP/1.1 200 OK
Content-Length: 870
Connection: Close
Content-Type: application/soap+xml; charset=utf-8

<?xmlversion="1.0"encoding="UTF-8"?><:Envelopexmlns:s="http://www.w3.org/2003/05/soap-envelope"xmlns:a="http://www.w3.org/2005/08/addressing"xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing"><:Header><a:Action>http://www.w3.org/2005/08/addressing/fault</a:Action><a:MessageID>urn:uuid:374ca632-4f72-51c3-22d4-fa3c5bfa054d</a:MessageID><a:To>http://www.w3.org/2005/08/addressing/anonymous</a:To><a:RelatesTo>urn:uuid:1faa7b07-7254-4e8b-9b78-0d9447865fb1</a:RelatesTo></:Header><:Body><:Fault><:Code><:Value>s:Receiver</:Value><:Subcode><:Value>Exception</:Value></:Subcode></:Code><:Reason><:Textxmlns:xml="http://www.w3.org/XML/1998/namespace"xml:lang="en-US">Errors occured during application execution.</:Text></:Reason><:Detail>System.Exception: Invalid file name - specified file not found!</:Detail></:Fault></:Body></:Envelope>

I tried to add the following to my service-contract:

  publicclass MFFault
    string message;

    publicstring Message
      get { return message; }
      set { message = value; }


And use the FaultContract-attribute:

    [FaultContract(typeof(MFFault), Action="http://www.w3.org/2005/08/addressing/fault", Name="Fault", Namespace="http://www.w3.org/2003/05/soap-envelope")]
    DataAccessSession StartNewDataDownloadSession(String fileName, int proposedSegmentSize);



I am still unable to catch the generic version of System.ServiceModel.FaultException<MFFault>. Since I am not very familiar with WCF and fault-contracts, I'm not sure where I did what wrong ... I would appreciate any help.



Thanks a lot,


What's the status of support for the combination of POS for .NET and ClickOnce deployment?  I was very disappointed a couple of years ago to find that these technologies worked very nicely, but only separately.


I'm trying to enable Stereo mix in order to record sound from my computer, my sound drivers are apparently up to date (High definition audio device), allthough 'Stereo mix' won't appear on the recording device list (even when show disabled devices is checked).

I am using a Dell Inspiron 1720 laptop, allthough my sound card doesn't appear to have a name other than 'High definition audio device', so I cannot download another driver without knowing what type of sound card this has; is 'High definition audio device' an actual name for a soundcard?

My configuration: Windows 7 Enterprise, Windows Virtual PC, Visual Studio 2008 SP1.

When I try to Enable NE2000 PCMCIA network adapter, I get the error:
"The required Virtual Machine Network Driver could not be found. Make sure that Virtual PC 2007 is installed..."

I want to connect to internet from Device Emulator without establishing connection to WMDC(cradling to WMDC is annoying extra step).
I searched for solution of this problem, but I found only hacks (like to extract Virtual Machine Network Driver from Vitual PC 2007 installation and manually install it)

Are there any changes on this issue or I'm missing something?

- I can get internet connection on Device Emulator, if I cradle it to WMDC.
- I had Windows XP before and everything was working.
- I need Windows Virtual PC on Windows 7.



Im just starting to look at Windows Phone 7 development and I'm not sure what can and cannot be done with the new API's. One of the apps I would like to develop involves turning services such as Wifi and Bluetooth on and off at certain times/locations/events.

Can this be done with Windows Phone 7? If so, what API's would I need to call to do such things?




I am just trying to learn Ajax enabled WCF service, when I try to create a new web application and add new item "AJAX-enabled WCF Service" I get an error message that "The extension of type 'System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not registered in the extension collection 'behaviorExtensions'.
I had .net2.0/VS2005 and then I installed VS2008. I thought it might be an issue with Machine.config. So I am attaching my machine.config info.

<?xml version="1.0" encoding="UTF-8"?>
  Please refer to machine.config.comments for a description and
  the default values of each configuration section.

  For a full documentation of the schema please refer to

  To improve performance, machine.config should contain only those
  settings that differ from their defaults.
  <section name="appSettings" type="System.Configuration.AppSettingsSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" restartOnExternalChanges="false" requirePermission="false" />
  <section name="connectionStrings" type="System.Configuration.ConnectionStringsSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" requirePermission="false" />
  <section name="mscorlib" type="System.Configuration.IgnoreSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
  <section name="runtime" type="System.Configuration.IgnoreSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
  <section name="assemblyBinding" type="System.Configuration.IgnoreSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
  <section name="satelliteassemblies" type="System.Configuration.IgnoreSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
  <section name="startup" type="System.Configuration.IgnoreSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
  <section name="system.codedom" type="System.CodeDom.Compiler.CodeDomConfigurationHandler, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <section name="system.data" type="System.Data.Common.DbProviderFactoriesConfigurationHandler, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <section name="system.data.dataset" type="System.Configuration.NameValueFileSectionHandler, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" restartOnExternalChanges="false" />
  <section name="system.data.odbc" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <section name="system.data.oledb" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <section name="system.data.oracleclient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <section name="system.data.sqlclient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <section name="system.diagnostics" type="System.Diagnostics.SystemDiagnosticsSection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <section name="system.runtime.remoting" type="System.Configuration.IgnoreSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
  <section name="system.windows.forms" type="System.Windows.Forms.WindowsFormsSection, System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <section name="windows" type="System.Configuration.IgnoreSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
  <sectionGroup name="system.xml.serialization" type="System.Xml.Serialization.Configuration.SerializationSectionGroup, System.Xml, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089">
   <section name="schemaImporterExtensions" type="System.Xml.Serialization.Configuration.SchemaImporterExtensionsSection, System.Xml, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="dateTimeSerialization" type="System.Xml.Serialization.Configuration.DateTimeSerializationSection, System.Xml, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="xmlSerializer" type="System.Xml.Serialization.Configuration.XmlSerializerSection, System.Xml, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  <sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089">
   <section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="connectionManagement" type="System.Net.Configuration.ConnectionManagementSection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="defaultProxy" type="System.Net.Configuration.DefaultProxySection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <sectionGroup name="mailSettings" type="System.Net.Configuration.MailSettingsSectionGroup, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <section name="smtp" type="System.Net.Configuration.SmtpSection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="requestCaching" type="System.Net.Configuration.RequestCachingSection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="settings" type="System.Net.Configuration.SettingsSection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="webRequestModules" type="System.Net.Configuration.WebRequestModulesSection, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
   <section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" />
   <section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly" />
  <sectionGroup name="system.web" type="System.Web.Configuration.SystemWebSectionGroup, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
   <section name="anonymousIdentification" type="System.Web.Configuration.AnonymousIdentificationSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="authorization" type="System.Web.Configuration.AuthorizationSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="browserCaps" type="System.Web.Configuration.HttpCapabilitiesSectionHandler, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="clientTarget" type="System.Web.Configuration.ClientTargetSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="customErrors" type="System.Web.Configuration.CustomErrorsSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="deployment" type="System.Web.Configuration.DeploymentSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" />
   <section name="deviceFilters" type="System.Web.Mobile.DeviceFiltersSection, System.Web.Mobile, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="globalization" type="System.Web.Configuration.GlobalizationSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="healthMonitoring" type="System.Web.Configuration.HealthMonitoringSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="hostingEnvironment" type="System.Web.Configuration.HostingEnvironmentSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="httpCookies" type="System.Web.Configuration.HttpCookiesSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="httpModules" type="System.Web.Configuration.HttpModulesSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="httpRuntime" type="System.Web.Configuration.HttpRuntimeSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="identity" type="System.Web.Configuration.IdentitySection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="mobileControls" type="System.Web.UI.MobileControls.MobileControlsSection, System.Web.Mobile, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="pages" type="System.Web.Configuration.PagesSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" />
   <section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="roleManager" type="System.Web.Configuration.RoleManagerSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="securityPolicy" type="System.Web.Configuration.SecurityPolicySection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="sessionPageState" type="System.Web.Configuration.SessionPageStateSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="sessionState" type="System.Web.Configuration.SessionStateSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="siteMap" type="System.Web.Configuration.SiteMapSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="trace" type="System.Web.Configuration.TraceSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="trust" type="System.Web.Configuration.TrustSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="urlMappings" type="System.Web.Configuration.UrlMappingsSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="webControls" type="System.Web.Configuration.WebControlsSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="webParts" type="System.Web.Configuration.WebPartsSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="webServices" type="System.Web.Services.Configuration.WebServicesSection, System.Web.Services, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <section name="xhtmlConformance" type="System.Web.Configuration.XhtmlConformanceSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <sectionGroup name="caching" type="System.Web.Configuration.SystemWebCachingSectionGroup, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <section name="cache" type="System.Web.Configuration.CacheSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
    <section name="outputCache" type="System.Web.Configuration.OutputCacheSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
    <section name="outputCacheSettings" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
    <section name="sqlCacheDependency" type="System.Web.Configuration.SqlCacheDependencySection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
   <section name="protocols" type="System.Web.Configuration.ProtocolsSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToWebRoot" />
  <section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  <sectionGroup name="system.runtime.serialization" type="System.Runtime.Serialization.Configuration.SerializationSectionGroup, System.Runtime.Serialization, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089">
   <section name="dataContractSerializer" type="System.Runtime.Serialization.Configuration.DataContractSerializerSection, System.Runtime.Serialization, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089">
   <section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="comContracts" type="System.ServiceModel.Configuration.ComContractsSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly" />
   <section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="machineSettings" type="System.ServiceModel.Configuration.MachineSettingsSection, SMDiagnostics, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly" />
   <section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <sectionGroup name="system.serviceModel.activation" type="System.ServiceModel.Activation.Configuration.ServiceModelActivationSectionGroup, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089">
   <section name="diagnostics" type="System.ServiceModel.Activation.Configuration.DiagnosticSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="net.pipe" type="System.ServiceModel.Activation.Configuration.NetPipeSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <section name="net.tcp" type="System.ServiceModel.Activation.Configuration.NetTcpSection, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <configProtectedData defaultProvider="RsaProtectedConfigurationProvider">
     <add name="RsaProtectedConfigurationProvider" type="System.Configuration.RsaProtectedConfigurationProvider,System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Uses RsaCryptoServiceProvider to encrypt and decrypt" keyContainerName="NetFrameworkConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
   <add name="DataProtectionConfigurationProvider" type="System.Configuration.DpapiProtectedConfigurationProvider,System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Uses CryptProtectData and CryptUnProtectData Windows APIs to encrypt and decrypt" useMachineProtection="true" keyEntropy="" />
   <runtime />
    <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
       <add name="Odbc Data Provider" invariant="System.Data.Odbc" description=".Net Framework Data Provider for Odbc"
       type="System.Data.Odbc.OdbcFactory, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
       <add name="OleDb Data Provider" invariant="System.Data.OleDb"
       description=".Net Framework Data Provider for OleDb" type="System.Data.OleDb.OleDbFactory, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
       <add name="OracleClient Data Provider" invariant="System.Data.OracleClient"
       description=".Net Framework Data Provider for Oracle" type="System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
       <add name="SqlClient Data Provider" invariant="System.Data.SqlClient"
       description=".Net Framework Data Provider for SqlServer" type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
       <add name="Sybase Adaptive Server Enterprise Data Provider" invariant="Sybase.Data.AseClient"
       description=".NET Framework Data Provider for Sybase Adaptive Server Enterprise"
       type="Sybase.Data.AseClient.AseClientFactory, Sybase.AdoNet2.AseClient, Version=1.15.325.0, Culture=neutral, PublicKeyToken=95d94fac46c88e1e" />
    <processModel autoConfig="true" />
    <httpHandlers />
      <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" />
    <profile configSource=".\\MLConfig\\MLProfileProvider.config" />
      <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

    Do I need to change the 3.0 entries to 3.5? If so, how? Please help me to resolve the issue.



<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure