Application will not read the changes made to app.config or machine.config at runtime

Change the app.config or machine.config when the application that uses them is running. Result The application will not be able to read these changes, and the new changes made to the .config files will not be reflected in the application. Cause .NET Framework will read the .config file once at application startup and then not read them again during that session. Resolution Restart the application so it can read these changes. More Information App.Config reloading (http://blogs.msdn.com/junfeng/archive/2005/02/20/376880.aspx) Machine.Configuration Files (http://msdn2.microsoft.com/en-us/library/ms229697.aspx) DISCLAIMER MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY ... Read more..

March 12th, 2008 admin Posted in HowTo No Comments »

AddThis Social Bookmark Button

Permission Calculator may add exaggerated or overly restrictive permissions to the application in Visual Studio 2008

When you run the Permission Calculator in Microsoft Visual Studio 2008, the Permission Calculator may add exaggerated permissions or overly restrictive permissions to the application. CAUSE This problem occurs when the Permission Calculator cache files are not installed on the computer that is running Visual Studio 2008. WORKAROUND To work around this problem, use one of the following methods. Method 1 In Visual Studio 2008, turn on the Exception Assistant. When you debug the application, the Exception Assistant is displayed. You can use the Exception Assistant ... Read more..

February 28th, 2008 admin Posted in HowTo No Comments »

AddThis Social Bookmark Button

How to bind a Rich Text Box control to an element that is returned from a Web service in InfoPath and Visual Studio .NET 2003

This article describes how to bind a Rich Text Box control on a Microsoft Office InfoPath 2007 form or on a Microsoft Office InfoPath 2003 form to an XML element that is returned from a Web service. For a Rich Text Box control to bind to an XML element that is returned from a Web service, the Rich Text Box control must contain XHTML content. The element must have the following XML schema: <xsd:element ... Read more..

January 7th, 2008 admin Posted in HowTo, MS Office InfoPath No Comments »

AddThis Social Bookmark Button

You may encounter resource ID collisions when you try to rename duplicated resources by using Visual C++

If you duplicate a resource a few times in the resource browser by using copy and paste, you will find that it is possible to run into resource ID collisions when you try to rename the resources using the resource property dialog box. That is, when you try to rename your resources, you will find that the resource editor may try to assign your new resource name an integer ID that already exists. This will cause a resource editor error ... Read more..

December 19th, 2007 admin Posted in HowTo No Comments »

AddThis Social Bookmark Button

An attempt to create a debugging library that uses precompiled headers may fail, and fatal build errors may be generated

An attempt to create a debugging library that uses precompiled headers may fail and fatal build errors may be generated. With the 16-bit edition, the CVPACK and LINK utilities may generate the following error message: CVPACK : fatal error CK1017: cannot find precompiled types file; relink with file.obj LINK : warning LNK4027: CVPACK error With the 32-bit edition, the LINK utility may generate the following error message: LINK : fatal error LNK1211: precompiled type information not found; "<filename>" not linked or overwritten Note If you ... Read more..

December 18th, 2007 admin Posted in HowTo No Comments »

AddThis Social Bookmark Button

Static, identifiers , missing ,from , ClassView ,Globals, folder , Visual ,C++

The Globals folder in the ClassView of Developer's Studio is used to display and provide quick access to global identifiers in the current project. Identifiers declared as static that have file scope are missing from the ClassView Globals folder. Note In Microsoft Visual C++ .NET and in Microsoft Visual C++ 2005, the nonstatic identifiers do not appear either. STATUS loadTOCNode(1, 'status'); Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. MORE ... Read more..

December 17th, 2007 admin Posted in HowTo No Comments »

AddThis Social Bookmark Button

You receive an assertion in Wincore.cpp when you use a Visual C++ 4.x MFC application spawned from a Windows NT service or as a Windows NT service

When you use a Visual C++ 4.x MFC application spawned from a Windows NT service or as a Windows NT service, an assertion may occur in Wincore.cpp. Specifically, it occurs on the following line in _AfxActivationWndProc():   LRESULT CALLBACK _AfxActivationWndProc(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam) {     WNDPROC oldWndProc = (WNDPROC)::GetProp(hWnd, szAfxOldWndProc);     ASSERT(oldWndProc != NULL);  // <----- assert occurs here     .     .     . } The assertion occurs on line 385 with Visual C++ versions 4.2 and 4.2b, on line 384 with ... Read more..

December 17th, 2007 admin Posted in HowTo No Comments »

AddThis Social Bookmark Button

Description of the DebuggerFirewall utility that makes the Visual Studio Remote Debugger work through the Windows XP Service Pack 2 firewall

INTRODUCTION loadTOCNode(1, \\'summary\\'); To use remote debugging with Microsoft Visual Studio .NET or with Microsoft Visual Studio 2005 on a computer that is running Microsoft Windows XP Service Pack 2 and later versions, the Microsoft Windows firewall on both the local computer and on the remote computer have to be configured correctly. The DebuggerFirewall configuration utility performs most of the configuration automatically to permit debugging. MORE INFORMATION loadTOCNode(1, \\'moreinformation\\'); The configuration utility is an HTML application (.hta) file. Download the configuration ... Read more..

November 18th, 2007 admin Posted in HowTo No Comments »

AddThis Social Bookmark Button