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

Top 5 Contributors of the Month
Post New Web Links

64bit/32bit UDL properties editor?

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :.NET Framework

I'm used to creating udl files and using the built-in Data Link Properties editor. But now I have a 64bit workstation, and when I open a udl file with the editor, it only gives me a list of 64bit drivers.

Is there a way to open a udl in a 32bit editor?


View Complete Post

More Related Resource Links

C# target 32bit and 64bit desktops with SMO included

I have an application that uses three SQL 2008 R2 SMO assemblies.  I need to target 32 and 64 bit machines that are running either 32 or 64 bit versions of SQL 2008.  I have no idea how to handle an Any CPU build for the application.  Since the SMO assemblies are either 32 bit or 64 bit, do I have to create a 64 bit build of my app and also a 32 bit build of my app.  I have no idea how to proceed with the build at this point.  This is my first app to support 64 bit machines and servers; I have only had to work in 32 bit in the past. Also, I do not know where the best forum for this question would be.  It is not a SQL question unless the answer is in the SQL assemblies.  I am developing on 64 bit Win 7 with VS 2010 and .Net 4. The C# app is wpf. The application needs to run on 32  and 64 bit Vista machines with 32 and 64 bit SQLExpress 2008 instances, and it also needs to run on 2003 and 2008 32 and 64 bit servers running 32 and 64 bit SQL 2008 servers. Any help would be appreciated.  I expect that I don't know what I don't know on compiling apps and including assemblies in an Any CPU world. Thanks, LD

SharePoint 64bit + 32bit Office JET Drivers?

Hi Guys, I'm in a bit of a pickle here! I have a document library which contains Excel files on Moss 2007 (64bit). When a file gets upload to the library, a workflow kicks off with some custom activities I've wrote in C#. One of the activities opens the SPFile object (the Excel data) for the SPListItem object thats currently been added. It dumps the stream to a temp file on the hdd (a random .xslx file) and attempts to open it.... but i get this error:   The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.   So i dig about a bit and it turns out there is no 64bit jet drivers for windows 64bit. If i compile my activity to 32bit, it doesnt seem to be able to interface with the 64bit installation of sharepoint!!   What can i do to get round this?!   Many thanks! Will

ODBC 32bit is launching 64bit ODBC administrator. No menu opens 32bit.

In Windows 7 maybe all 64bit OS's are setup for 2 different types of ODBC connections.  Try running these and adding your connection in one or the other.
I have not found the navigation for each version as the control panel I think uses 64bit even the one marked 32bit seems to be pointing to 64bit.  There is no visual key that tells you which one you are using.  If you add a key called 64bit and then click the 32bit icon you still see the 64bit.  Most applications will use the 32bit ODBC so you will have to manually navigate to add connections.
To setup an ODBC link for 32bit application you must use
To setup an ODBC link for 64bit application you must use

My question is why does the 32bit icon point to the wrong one?  Is there a KB or update for this?

Content Editor WebPart error "Cannot retrieve properties at this time"


I've found a similar post: http://social.technet.microsoft.com/Forums/en/sharepointadmin/thread/fc9b388c-2a16-436c-afb4-b6d06b2f5fe5...but i don't have the same errors on the event log.

- SP2 installed already

- Recyle Application Pool works but only temporarily ... it keeps happening again

I have the following and any help would be much appreciated!!!


Event Type: Error
Event Source: Office SharePoint Server
Event Category: Office Server Shared Services
Event ID: 6482
Date:  10/13/2010
Time:  4:13:34 PM
User:  N/A
Computer: XX1
Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (a21cc2ec-8b2b-4ee1-bcc6-d971a5dcc263).

Reason: The trust relationship between this workstation and the primary domain failed.

Techinal Support Details:
System.SystemException: The trust relationship between this workstation and the primary domain failed.

   at System.Security.Principal.SecurityIdentifier.TranslateToNTAccounts(IdentityReferenceCollection sourceSids, Boolean& someFailed)

CodeActivity custom Properties editor


Hello, I'm starting to write my first Activity Library and have this question. I'm creating several CodeActivity subclasses and would like to present their properties with simple custom editors when I drag the activity in the designer.

To be more clear, I'd like to present a InArgument<bool> with a check box, a connection string with the SQL Connection String editor etc.

I've found a lot of cofusing articles. Can anyone guide me to the goal?

Best regards


Sharepoint 2010 Custom Field Types & Field Properties ( Editor Control )



I've been searching this forum and all over the web for a working example of how to implement a Editor Control with a Sharepoint 2010 custom field type.

The only documentation on MSDN mentions the implementation of IFieldEditor. There are no propper examples of how to implement properties on custom field types.

All I could find on MSDN regarding this issue was :



Has anyone done anything simmilar and know of a propper example of how to implement it?



Pieter Theron | http://www.pietertheron.co.za


Migrating Jobs: SQL 2005 32bit > SQL 2005 64bit


I am trying to migrate jobs between SQL Server 2005 32 bit to SQL Server 2005 64bit.  I follow the steps in the KB Article to copy a job by scripting it and then running the SQL against the new server.  The query executes fine, but it only creates a skeleton of the job with nothing in the body.  There is no schedules, steps, name, etc.  The resource versions are different and tonight my plan is to apply the service packs to ensure there is no discrepency in either version.  Also these are all TSQL jobs not DTS packages.  Any ideas?

can we install SQL Server 2008 R2 - 64bit on Window Server 32bit?

can we install SQL Server 2008 R2 - 64bit on Window Server 32bit?

Why does VS 2010's designer clear my property value editor's properties when it is dismissed?

(This started as a Connect post but I decided it seems like I should find out if I'm doing something daft before blaming .NET.  It requires a lot of code, and Connect lets you attach projects.  I see no option to do this on these forums, so I will link to a .zip file containing the project on my hosting.)

I'm experimenting with various ideas for the design-time experience for some WPF controls.  One feature I'm trying to implement is the display of a graphical preview for enumeration values.  My first attempt at this failed due to some behaviors in the design environment that I'm not certain are expected.  Here's a description of the attached project and the behaviors I don't understand.

PreviewItem is a class that represents an enumeration value; it has properties for the value and the image that represents it.PreviewItemCollection is a collection class that contains a PreviewItem for each valid enumeration value; it relies on an implementation of PreviewItemFactory.  PreviewItemFactory is responsible for generating a collection based on an enumeration that contains one PreviewItem per enumeration value. EnumPreview is a UserControl that maintains a PreviewItemCollection and displays each PreviewItem in a ComboBox.  It contains logic for representing the selected value as the enumeration value (not a PreviewItem).  To facilitate this, when the Selec

Content Editor WebPart Cannot retrieve properties or save changes


When a content editor webpart is open for editing - if they use the Rich Text Editor the error message is "Cannot retrieve properties at this time

If they use the Source Editor - they can make changes but it give them the message "Cannot save changes"

Sheryl L Fackler

WCF Tip: Using Properties in Service Contracts

you'll notice all of the Service Contracts are implemented with interfaces containing only methods. For the longest time I thought that's all that was supported, until I thought about it a little more. In C# land, properties are simply wrappers around a get method and set method, so why wouldn't we be able to use properties in a service contract? Well the answer is we can.

Automatic vs Explicit Properties

If the reason that motivated the change from automatically implemented property to explicitly implemented property was to change the semantics of the property then you should evaluate whether the desired semantics when accessing the property from within the class are identical to or different from the desired semantics when accessing the property from outside the class.

Dependency Properties

When you begin to develop appliations with WPF, you will soon stumble across DependencyProperties. They look quite similar to normal .NET properties, but the concept behind is much more complex and powerful

Xml File Methods and Properties

Method and Properties of XmlTextWriter class:
The XmlWriter class is a base class that outputs an XML data structure. It has methods to sequentially write XML elements in a proper hierarchy to create an XML file or other types of output streams. The System.Xml namespace provides support for the XmlWriter. It must be imported to the ASP.NET page with the directive

<%@ Import Namespace="System.Xml" %>

The XmlTextWriter

XmlWriter is an abstract class that is implemented as an extended XMLTextWriter class. The XmlTextWriter writes a sequence of XML nodes one element at a time. Output can be written to an XML file, although other streams of output data can be produced. It can create a new file or overwrite an existing file. Its non-cached writing techniques provides very fast generation of an output stream.

Embed Youtube inside Ajax Html Editor- problem



When inserting a simple embed of youtube inside the ajax editor, on firefox and chrome problems occur. On the other hand on internet explorer 8 everything works fine. I found this solution http://www.nopcommerce.com/boards/t/4228/bug-in-ajax-html-editor.aspx . 

My question is where do I find the DesignPanel.pre.js ?


Roderick Vella

text editor


 I format lines in a .aspx file (source view) the way I can use them, and if I switch to design view or view in browser or debug, the many lines get reformatted to flow all onto one line.

I can't seem to find the correct setting to keep this from happening.

Any suggestions?


C# conversion to VB and properties


I am trying to implement image caching for a web application and I found some code on the Internet that implements an HttpHandler that does this. The code was in C# and since my web app is written in VB, I decided to convert the code to VB. I managed to convert everything except the following code (in bold):

public class FileExtensionCollection : ConfigurationElementCollection
        public override ConfigurationElementCollectionType CollectionType
                return ConfigurationElementCollectionType.AddRemoveClearMap;

        public FileExtension this[int index]
            get { return (FileExtension)BaseGet(index); }

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