Nitin Sharma22's Q&A profile
.NET Development Config File Schema - Proper Order Of Elements...
Is there any good documentation on the ORDER that configuration file XML elements must be listed. Thanks. Actually, that's not quite true... if you have a <configSections> element in your file, it MUST come immediately after <configuration> (the opening element) and before anything else, otherwise your program will crash. I'm just wondering what other dependencies in order there are, without having to search through each and every configuration file schema element help topic. ...Show All
.NET Development Dynamic connection strings.. possible?
I know it's not possible to change connection strings at runtime, since they are scoped at the application level, In my code right now I'm building my connection string when I need it from several different user scoped settings, my question is it possible to build a application scoped connection string in my application settings from my user scoped settings James Hi, You can have your connection strings in the .config file, identified by a name. So based on that, you can pick up the connection string you need to perform your actions. You can use the class System.Configuration.Configuration for that porpuses. Here you can find a piece of code example that would help you to do that. Best Regard ...Show All
Smart Device Development compact framework v2 sp1 installation problem
I have been using vs2005 and cf v2 to develop an application. I recently installed the cf v2 sp1 redistributable thinking that it would tie into the vs ide but it did not. A few days later I found the cf v2 sp1 patch for vs 2005 and tried to install it but get an error message. I have uninstalled the cf and tried installing the patch by itself and get the same error. I reinstalled the cf v2 sp1 redistributable and tried the patch and get the same error. Here is the error: "The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that y ...Show All
Visual C# FreeAllUnusedJunk() ? any such method?
I've got a program that runs through a loop, and during this loop, consumes a lot of RAM. of course, .NET is smart, and auto-disposes.. so the RAM usage goes something like.. 40MB, 80MB, 115MB, 230MB, 307MB, then it drops back down to something small again. The thing is, when this loop is over with.. the process could be eating up 40MB RAM, or 300MB. Is there some kind of global method I can call that basically frees up ANYthing that's not in use best practice would be to enclose in the using {} statement, the disposible objects which will try to be automatically freed up/disposed of but no guarentee it will at the time of the call. Example, streams: using (StreamReader sr = new StreamReader( file ...Show All
SQL Server Visual C++ 2005 (C++/CLI) - Newbie with ADO
Hi, I've been working for about 20 years now with databases on other platforms but am at my first step with ADO. I created an application which is drawing as requested different forms on screen using GDI+, eventually DirectX. Now I'm at the stage of saving several infos into a Database. For simplicity, I would like to use a database for which there is no need to install any other components. I thought of using Access Database but I realized that I'm unable to create it except from Microsoft Access which is not installed on my machine... When programming with Clarion (SoftVelocity), apart interfacing with Oracle, any other files (ex: TopSpeed files) could be designed from within application designer and then created from scratc ...Show All
SQL Server Newbie looking for direction
Happy Friday afternoon, all, My task is seemingly simple. I have data on the server in MS Excel Files. I need to get the data into multiple tables in a SQL Server db on the same server. I have been only working with SSIS for a bit, so please bear with me. I can load the data directly from the Excel worksheet to one table, but I need to run an already defined stored procedure on the data from Excel before putting it into tables. I need to loop over all the rows and run the data from each row through the stored procedure. So, I think I need an Execute SQL Task withing a For Each Loop, but neither is available on the Data Flow page, and I don't see how to use them in the control flow page. I don't see that any of the Data Flow tr ...Show All
Software Development for Windows Vista workflows interacting with multiple users
Can anyone suggest a solution for the following scenario: Several clients perform an online auction, an administrator starts the auction. So, which are the mechanisms of synchronization and data transmission These might be separate workflows interacting one with another or the clients might interact with a workflow instance in some way (raising events for the workflow, sending data etc.) Thanks The following link contains an example of routing multiple calls to the same workflow instance. The technique should work for multiple clients to. http://wiki.windowsworkflowfoundation.eu/default.aspx/WF/WorkflowWebService.html Maurice ...Show All
Visual Studio Express Editions Using the EventLog Object in VB.NET
Hi, I am coding an application for analysis of Event Viewers using the EventLog object using Microsoft Visual Studio 2005 (Express Edition). I am only able to analyse the current event log on the local machine or on a remote machinf using the command: Dim Log As New EventLog( "Application" ) or "Security" or "System" as neccessary. However, I would like to be able to analyse Event Logs which have been saved from another machine. Is there any way that I can load an event log by sppecifying the path at which it is saved, or any other way to overcome this issue Any help would be greatly appreciated, Thanks well the "old" Eventlog should be at ...Show All
SQL Server report manager or builder
i cannot get either of these to open. i follow the launch instructions for builder and cannot get past the username and password. when i enter either my system info or server info it fails to connect. thanks ...Show All
Visual Studio .tt file is not creating code
hi , I am using Walkthrough http://msdn2.microsoft.com/en-US/library/aa397537.aspx on VS SDK V 3.0. Error 1 Running transformation: Dsl ExampleModel has no Editor. 0 1 when i am creating *.tt files it is giving me following errors. Tauheed, This answer is similar to the one in another thread ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=887504&SiteID=1 ), basically there is not editor defined in the sample xml. Please let me know if that solves your problem. Thanks, -Yu ...Show All
Smart Device Development mmc.exe Application Error
Hello, Is NET.Framework 2 save I downloaded the NET.Framework 2 (x86) "dotnetfx.exe" version : 2.0.50727.42 After restarting Windows XP Pro SP2, i recieved the message: -------------------------------------------------------------------------------------------------- mmc.exe Application Error: (X) The exeption unknow software exception (0xe06d7363) occured in the application at location (0x7c81eb33). ------------------------------------------------------------------------------------------------- Any comment and advice will be appriciated. Jean Are you talking the .NET Compact Framework 2.0 or the regular, full-blown .NET Framework 2.0 With dotnetfx, I think you're talking the fullblown, r ...Show All
Visual Studio 2008 (Pre-release) Extension method problem
I'm currently build a project intend to take advantage of Extension Method for my model object. What I want to do is add a common method "Save" to all model object. Here is the static class for declaring extension method. public static void Save<T>(this T entity) { ... } I can pass the compilation for these code. However when I try to use this method in the controler code, the compiler raise an exception 'Polease.Enterprise.Common.Persistance.DataContext' does not contain a definition for 'Save' After that, I try to make thing much easier, change the extension method to public static void Save(this object entity) { ... } and then modify my calling code, the compiler still raise the same issue. I hav ...Show All
.NET Development async web method calls being 'lost'
Hi, I am trying to prove the benefit of async calls to web methods over sync calls. I'm working in .NET 2.0/VS 2005. I have a desktop test app, looping round, and calling my web service thousands of times, e.g.: ... For i = 1 to 100 m_objService.TestCallAsync(myparams) m_objService.TestCallAsync(myparams) m_objService.TestCallAsync(myparams) m_objService.TestCallAsync(myparams) Next ... However, when i look at my service logs, only some of these calls have made it through to the service. When I run the same code synchrsonously (e.g. TestCall rather than TestCallAsync), i get the correct number of calls logged in my service. I assume that I am overloading my web service by firing off so many as ...Show All
Architecture Call Logging System
Hi, I am thinking about making a small call logging system to use on our Helpdesk. The Helpdesk system will be used to log client jobs. Work is then completed by Engineers, narrated (in the system), and then passed back to the helpdesk to follow up. Engineers will need access to this Helpdesk system from outside the company. Firstly, I am not really sure where I should start, so if you have, or know of, any online resources I could have a look at that would probably be good for a start. Secondly, I am not sure if I should be building a web application (Web Site) or windows application (Project). I know this is a very high level view of what I am trying to accomplish, but your advice/suggestions would be most welcome. Thanks, ...Show All
Software Development for Windows Vista XPS on PocketPC
Does anybody know resources for using XPS on PocketPC or Smartphones Most wanted: Creating XPS Files on PocketPC or Smartphone. Viewing XPS files on Windows Mobile Devices Is it possible Thanks Mike Buehler Buehler ...Show All
