.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

Disable redirector when Installing 32 bit application on Window 7- 64 bit

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :.NET Framework
When I install my 32 bit apps on Window 7 - 64 bit, it redirects registries and data files.However, the current codes have hardcoded to read the regular location such as:"HKLM\Software\MyApps" and "\Program Files\MyApps"Is there a way that I can disable the director while install my 32 bit application to solve this situation?If yes, can someone please show me how to do so in c#?I found they mention about calling Wow64EnableWow64FsRedirection in Kernel32.dll.Thanks

View Complete Post

More Related Resource Links

problem in consuming WCF service through Window application


I have a silverlight application and WCF service all made in VS 2010 , i had hosted my site to web server which contain Window 2008 and IIS 7.0

now the problem is i have another application which is a window application developed in VS2008 , when i try to add the service reference it gives me error


The document at the url was not recognized as a known document type.

The error message from each known type may help you fix the problem:

- Report from 'DISCO Document' is 'There was an error downloading 'http://dev_qa.emspa.com/HRDev3/Service.svc?disco'.'.

  - The request failed with HTTP status 400: Bad Request.

- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from '' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

Metadata contains a reference that cannot be resolved: ''.

Content Type application/soap+xml; charset

disassembly tab window how to disable


everytime i debug the application i get the disassembly tab window
 i tried tools/option & unchecked show disaasembly if not is not avaliable & sourec file to exce;ty open the original file

but still i get
after making the chnages i restarted my system but still i get it
how do i disable teh disassembly tab

Installing Application templates on SharePoint Services 3.0 on Windows 2008 r2 x64

Hi, I know I can install this on a Windows 2003 x64, but I can't find any confirmation that this can be installed on Windows 2008 r2 x64. Can I install this on Windows 2008 r2 x64 thanks, Stjani

How to get what application is connected to the topmost window?

My VB.NET application is suposed to monitor what application currently is running in the topmost window. I have tried the following approach using a timer: Declare Function GetActiveWindow Lib "user32" () As System.IntPtr Declare Function GetForegroundWindow Lib "user32" () As System.IntPtr Public Declare Auto Function GetWindowText Lib "user32" _ (ByVal hWnd As System.IntPtr, _ ByVal lpString As System.Text.StringBuilder, _ ByVal cch As Integer) As Integer Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick    Dim Caption As New System.Text.StringBuilder(256)    Dim hWnd As IntPtr = GetForegroundWindow()    GetWindowText(hWnd, Caption, Caption.Capacity)    'Caption now holds the title of the topmost window End Sub By this I can see that for example Outlook or Internet Explorer is the topmost window as the name is in Window's title bar. However, if the user crates a new mail in Outlook the title of the window is "Untitled message" givning no hint of what application is running in the the window. How do I get what application is connected to the topmost window?p> Help is appreciated!

Don't see tab and toolbar of the report manager application after installing sql server reporting s

Hello everyone: I have tried to install and configure Reporting Service. I found lots of  errors along the way. The first one was an error (500.23) from IIS7. I applied the suggested solution on the IIS screen which was migrating configuration using AppCmd ( %SystemRoot%\system32\inetsrv\appcmd migrate config "Default Web Site/"). Next problem was  : Request is not available in this context Stack Trace: [HttpException (0x80004005): Request is not available in this context] System.Web.HttpContext.get_Request() +3465893 Microsoft.ReportingServices.UI.Global.get_ConfigurationManager() +47 Microsoft.ReportingServices.UI.GlobalApp.Application_Start(Object sender, EventArgs e) +32  This error was caused by the fact that Report Server and Report Manager were configured to DefaultAppPool in the Reporting Service Configuration Manager. I have switched to Classic .Net AppPool  for both Report Server and Report Manager and it has fixed the problem. Now my problem is that the Report Manager Application ( http://localhost/reports/folders.aspx ) shows no tab, toolbar or folder. What I now have on the Report Manage Application page is the header with the title and [home] and [Help] button links on the top right corner. I have made a report to test the problem but no folder shows o

How to disable Office Web Apps (OWA) for the MySite Web Application in SP 2010?

We have OWA installed on the SP 2010 farm and works fine. We would like to disable the OWA functionality only on the MySite Web App. We want to use OWA on the other web application that hosts our team sites. What are my options?    

How do you integrate a flex 4 application in a wpf window? (With Error)

I am trying to integrate a flex 4 application into a wpf application.   I am following an old forum post: http://social.msdn.microsoft.com/forums/en-US/wpf/thread/39d558c1-5a76-4aae-be57-6aec9b8bf319 as a guide but it doesn't work correctly. The first thing I did was create the windows form control to add the flash control, i added a com component at C:\Windows\System32\Macromed\Flash\flash10i.ocx and added the Shockware flash object to the form.  added a URL property so i could set the file it would play and saved the formcontrol as mycontrol.   Then in the wpf application, i added a reference to mycontrol and windowsformintegration. then in the mainwindow.xaml i added these two lines at the top  xmlns:ax="clr-namespace:mycontrol;assembly=mycontrol"  xmlns:wfh="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" then in the grid i added   <wfh:WindowsFormsHost>             <ax:MyControl1 x:Name="FlexFlash" URL="fileurl.swf"></ax:MyControl1 >         </wfh:WindowsFormsHost> It compiles and runs but it doesn't actually display the application.... instread it stays blank.  Now to make sure that it's a valid url i posted it in a messagebox  and copy and pasted it into a

C#Net2008 Window Application - F5 launch wrong FORM


Hullo Good Friend,

I encounter another interesting problem.

I need your help. Please help me.

I am writing a new C#Net2008 Window Application. The first FORM that was created is FrmSales.cs

Then I created another FORM FrmMainMenu.cs which is the Main Menu form with 6 command buttons to load other forms.

When I pressed F5 to launch the application, FrmSales.cs appears instead of FrmMainMenu .

What must I do to make FrmMainMenu the initial form to lauch. Which provide menu options for the user to select and load other specific FORM.

Application time out Error after installing SQL Server 2008 R2 64 bit + CU3


Hi all,

webapplications  are  suffering  after installing SQL Server 2008 R2 64 bit  in my mechine.

Did i have do any thjing more make the connectons(validation faster)  or SQL Server 2008 R2 behaves like that..

any idea or suggestions are appreciated.


Thanks in advacne




i want to disable the entire parent window when the child window is opened?



 i am using the master page from the master page i am opening the child window.so, when ever i opened the child window i want to disable the entire parent window(all the controls present in the parent page) .how can we do it.


Burepalli V S Rao.

Show WPF Window from any application via Com-Interop (OLE) Interface



I have a C# dll library which contains several utilities and WPF Windows.
I need to use these from an unmanaged application (actually written in Delphi 2009).
To do so I added an Ole interface to my dll.
In my initial call I start a thread and create an Application object in it whith its own Dispatcher.
Every time I need to show a WPF Window I do this by Invoking an the Applications thread.
This works so far, but seems to have a bit overhead when I try to open a WPF window for example.
Here is some of my code below:

  public interface IOleBridge
   bool Startup();

   void ShowWindow();

  // [ComSourceInterfaces(typeof(IOleBridgeEvents))]

Navigator to window application



i wanted to come up with the MDI window with tree navigator to the left. ie, tree navigator dock to the left of the MDI window. when i click on a item on the tree navigator, it should open a window to right of the navigator. when user maximize the newly opened window, it should dock to the empty space (ie, MDI window without navigator space). And user should be able to change the width of the navigator ( if newly opened window is dock, then it should change the width automatically )

i tried using splitter container (feel i should stick with this), i fixed the tree navigator to panel1 but i couldn't set the newly open window to panel2. And i wanted to dock the newly created window to Panel2.

please help me with this, it will be really useful if someone provide me with sample code.

im using c#




how to disable right click with message window along with IP address ?


I want to disable right click on my website and would like to display a popup window on right click, along with the person's IP address who right clicked on my website, how to accoplish that ?

Till now i have added this script on my master page which disable right on I.E but doesn't popup any message window and it works in mozilla and shows popup. why message is not poping up in I.E ?

<script type="text/javascript">
            var message = "Right Click Have Been Disabled!";
            function clickIE() { if (document.all) { alert(message); return false; } }
            function clickNS(e) {
(document.layers || (document.getElementById && !document.all)) {
                    if (e.which == 2 || e.which == 3) { alert(message); return false; }

How to Consume WCF service In My CLient Application After Installing the WCF service at Production E



 I ahve created the WCF service and Client Application To consume that Service and Everything Tested and working perfectly.

But to Giv that Application to the Client we have give the 2 Installer

1)Server Instller(WCF  Service Installer)

2) Client Installer having Some forms and Logic to consume WCF service.


My question is that..

While Installing the Service(WCF) service at production evnironment if they gives some name.

How my client Application Knows that Service?Is there any way to do that

Please Help me



Thanks&Regards, -Amar.

Installing a license key for my application


Hi all i would like to install a license such that it should run for a week or so. What i am doing is i will make setup file of my application and give it to the user when the user install it on PC i would like to give a default license which can run up to a week. After  that even if he changes the date i would like to show a message as License expired

I need to know how can i give the user a default license which can run up to a week.

Can any one give me a clear idea

Application Pools when is it okay to share them when installing SharePoint 2010 in production


Hi, I read the MS stuff stating that running ten Application pools (not web apps) on a server is roughly about the maximum you should have running on a server (okay it alls depends on the amount of RAM and the actual box) but my question is as such, when installing SP 2010 and all the services, for instance for a client and they want the services configured whether they are going to use them or not. You could end up with over well over 10 application pools, so what services are okay to share an application pool and which should have have their own application pool. Is there some info out there on best practice remember i am asking this for production builds not test as I see that the Stand Alone SP2010 Wizard Installation runs all the services under the same application pool.

Some guidence or info would be appreciated. Thanks

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