.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

VCProjectEngine dll 9.0 not detecting x64 configurations and platforms

Posted By:      Posted Date: September 04, 2010    Points: 0   Category :.NET Framework
Is there a way to make the .NET framework VCProjectEngine 9.0 dll detect x64 configurations in vcproj files? It seems to ignore them, only caring about Win32.  Thanks, Adam

View Complete Post

More Related Resource Links

Detecting Edit or Insert Page


I am coding a .cs file that handles the metadata for a particular table. I am putting a custom validation that allows me to update or insert only if the PubMedID is not already in the database. This would be easy except that the PMID should also be allowed to be null as some of the references in the database were not from PubMed. So i perform a query on the database to see if there is already an identical PMID in the database. This works great when using Insert. However, when using Edit, it does not. The PMID is already in the database because the one currently being edited has the same PMID!!! So I know exactly how to change my query etc. However, I do not know how to tell from inside this Edit/Insert agnostic page, which one it is being called from. Thanks for your help! 

Detecting PPC device on startup page to redirect?

I was wondering (since a search didn't find any posts) if there is a way for my startup page to detect what kind of device (PocketPC or web browser specifically) is loading the page and if it is a PocketPC, then redirect to the mobile pages? I will only be using PocketPC's exclusively as a mobile device.

Thanks for any suggestions!

MSLU: Develop Unicode Applications for Windows 9x Platforms with the Microsoft Layer for Unicode


The Microsoft Layer for Unicode (MSLU) provides Unicode support on Windows platforms that don't provide their own support, including Windows 98, Windows 95, and Windows Me. With MSLU you can write Unicode applications easily for these platforms. MSLU is simple to install, small (even though it wraps more than 400 APIs), and easy on system resources. This article explains the design criteria behind MSLU and how to put the layer to work for you.

Michael Kaplan and Cathy Wissink

MSDN Magazine October 2001

Resource Leaks: Detecting, Locating, and Repairing Your Leaky GDI Code


Leaks are possible, even in robust Windows-based applications. As bugs go, leaks are some of the most difficult to find, especially when they occur in graphics device interface (GDI) objects and menus. While free and third-party tools exist to detect such leaks, it is usually difficult to make the connection between the numeric handle value returned by the tool, and a bitmap or menu in your program. This can limit the usefulness of these tools. Custom tools can be built that detect, track down, and eradicate GDI and menu leaks. Here, three such tools are built using well-known and documented APIs.

Christophe Nasarre

MSDN Magazine March 2001

Detecting mobile device user agents in ASP.NET (Android)



Last week Android updated their software (changed the display from 480px to 800px) so all the mobile tweaks we made for our apps are no longer work on Droid Phones.

I would need to identify the User Agent(e.g. Android) and switch style sheets depending. (We don't want to redirect to another page, just switch style sheets).

Anybody know any lightweight solution ?

Thanks in Advance.

(we were using 480px pixels to identify if the user was coming from iPhone or Android and switched stylesheets accordingly.  If I changed it to 800px some desktop monitors and the iPad would see the mobile version and not the desktop version. Not good.)



Detecting networking devices by asp.net program in I.P ranger


I have a project in which i want to detect networking devices in a user-defined I.P Range.

I know i have to use SNMP layer in order to accoplish this, but i don't how to do about it ?

Is there anyone who can guide me in a right direction? How it is possible to do all these things from asp.net web based application ?

Video: New UI Platforms for SharePoint 2010

This video provides an overview of the new user interface platforms provided by SharePoint 2010. (Length: 4:48)

Change the .NET framework configurations programmatically.

Hi, I want a code to change the configurations of the .NET framework programmatically( Not the pre-installed configuration tool), I need a sort of library to be able to change it. Thanks Regards Tamer Khalil

Deleting a key container. Detecting if it exists.

I have a need to detect if a key container exists. I have looked at http://msdn.microsoft.com/en-us/library/system.security.permissions.keycontainerpermission(VS.80).aspxbut I have two problems. One, the 'Deny' method appears to be obsolete. When I copy the code from this demo I get a warning that Deny is obsolete and will be removed. Two, if I follow the instructions to delete the key from the container it seems to work but if I subsequently try to get the key from the container I get another key and there is no indication that any key had been removed. Any ideas on thus manipulating key containers? Thank you. Kevin

COnfigurations stored in SQL Server ...

I have a couple of connections in my package which use configs stored in SQL Server. I am finding that when I open the package in BIDS, the configuration value in the SQL Server table is updated with the information pertaining to the connection in the package. Sounds bizzarre, but I have watched this happen several times. Am I hallucinating or is this intended behavior? I have checked and there is no replication or any process that updates the config tables. Appreciate the feedback.Jagannathan Santhanam

Configurations ...

Here I am back to my most favorite topics, configurations! Configurations are extremely confusing in SSIS. Here is the scenario we have. We have a development server X on which we developed a master package which loops through and executes various child packages. All the child packages use a common configuration which is stored in a table on SQL Server. The master package also uses a configuration table for its connections and the SSIS repository. All packages are stored in the SQL Server repository on X. We want to discontinue using Server X and start using a new server Y, hence we copied the solution, package etc., etc., from file system on X to file system Y. We then changed the SSIS repository parameters for the master package to point to Y and saved it to the Y repository. All child packages were saved on Y and the config table values were also changed on Y to point to itself. WHen we execute the packages on Y, it still dumps data onto X. I am not sure what we are doing wrong. Would appreciate any help or feedback!  Jagannathan Santhanam

Solution File and Projects Settings/Configurations maintenance.

I am using VS2005 and I have a solution file (.SLN) which has 8 projects. I moved the solution file to a different path on a shared folder to have better organization of my projects and to allow access to the solution/projects from any computer on the network. After that, I edited the .SLN file so that the path of the projects in the solution file are correct (all on shared folders). After that, I opened the .SLN and everything seemd to be working fine. However, I notcied that the "Start Options" of the website part of the solution file is missing the "Start Options", ie, the Start Options are reset to default values. I think also, but not sure, some other settings of the Solution/Projects have been reset. Questions: 1. Where the Web Site "Start Options" are stored ? 2. How I can maintain the Start Options and similar settings if the .SLN file is moved or opened from different computers on the network ? 3. I am not using an team development tools, only plain (vanilla) VS 2005 Prof. Edition. Is it possible to have 2 or more developers work on the same solution/projects (shared on the network), if both developers will coordinate manually simultanous access to the porject files/resources/source code ? Tarek.  

Detecting a page close using GetCallbackEventReference IIS6/IIS7 Issue

I have a popup page that when closed,  initiates a server side function that updates a DB table.  After looking at countless posts, I was able to use the following code (partial) to generate the callback when the window closes. The problem I'm having is that it works great on a server with IIS7, but the event doesn't fire on one with IIS6. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load    If Not IsPostBack Then        Dim callBackReference As String = Page.ClientScript.GetCallbackEventReference(Me, "arg", "LogOutUser", "", True)        Dim logOutUserCallBackScript As String = "function LogOutUserCallBack(arg, context) { " & callBackReference & "; }"       Me.ClientScript.RegisterClientScriptBlock(Me.GetType(), "LogOutUserCallBack", logOutUserCallBackScript, True)    End If  End Sub      Public Function GetCallbackResult() As String Implements System.Web.UI.ICallbackEventHandler.GetCallbackResult               Return _callBackStatus    End Function     Public Sub RaiseCallbackEvent(ByVal eventA

detecting users who do not log out correctly

HiI have a web site which uses forms authentication and we have a log out page which will sign out the user and set that they are signed out in the database.  This needs to be done as they use concurrent licences. The problem is that users are closing down the browers without logging out, meaning that the database shows them as logged in.  I would use javascript onbeforeunload/unload functions to call a webservice, but this is unreliable to actually know if they have closed down the browser. or just hit refresh.An idea i had was to have a web service fired every 20 mins to detect if a user has loaded any pages within 20 mins, if they have not then to set them as logged out.Any other good ideas or has anyone had similar issues.ThanksSteve

Using a shared cache in a Web farm environment for detecting replay attacks in WCF

Hello, I'm trying to figure out how to implement a replay attack detection mechanism with WCF in a web farm scenario. WCF provides such detection mechanism by using a nonce cache. Correct me if I'm wrong, but the only way to ensure to prevent this attack in a message security and web farm scenario is by using a nonce cache shared across the servers (i.e.: AppFabric distributed cache). In WSE3.0, it used to be possible to provide nonce cache custom implementations http://msdn.microsoft.com/en-us/library/ff647945.aspx but there doesn't seem to be any way to do so in WCF (No configuration options, besides I found with Reflector that the NonceCache class is marked as both sealed and internal..) Any thoughts?
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