Bnjneer's Q&A profile
SQL Server How to stop automatic Replication Validation?
Under EM's Replication Monitor/Publishers/pub1/publisher1 there is a "Validate Subscriptions" option on the right-click menu. Since I see unexplained Replication Validation activity I think that the "Validate Subscriptions" option is turned on. But there is no "turn-off" button or way to say "stop." Does anyone know how this "feature" works Thanks Thanks for your response. I did what you suggested and I see nothing suggestive of validation. It must be hidden elsewhere! ...Show All
Visual Studio 2008 (Pre-release) Binding name to column header
I have the fallowing xaml for my column headers: <GridViewColumn x:Uid="IDS_TXT_1" Width="80" DisplayMemberBinding="{Binding Path=Col1}"> <TextBlock x:Name="GridViewColumnH1" TextAlignment="Center"> Secured </TextBlock> </GridViewColumn> <GridViewColumn x:Uid="IDS_TXT_2" Width="80" DisplayMemberBinding="{Binding Path=Col2}"> <TextBlock x:Name="GridViewColumnH2" TextAlignment="Center"> Secured </TextBlock> </GridViewColumn> .... Then I've aplied the fallowing template (taken from this sample: http://www.infusionblogs.com ...Show All
Visual C# How to retreive the line number and file name of C# source code
hi all I want to log information about the method currently running. I want to get name of method that is currently invoked. Also I want to get line number which is currently running. I can get line number for exception occurence... but i want to log a method information if exception is not occured.....& method is going to complete its operation well. it is top urgent hoping any one can help me. Thanx in adavance hi rauhanlinnake thanx for ur reply... but when i complied & run this program. i get the following out put... it shows me method name correctly but line number is 0. for each method it shows 0. can u help me . using System; using System.Diagnostics; namespace Con ...Show All
SQL Server Problem in importing data from excel to sql2005
Hi I have to import data from a number of excel files to corresponding tables in SQL 2005. The excel files are created using excel 4.0. I have created an excel connection manager and provided it with the path of the excel sheet.Next i have added an excel source from the toolbox to the dataflow. I have set the connection manger, data access mode, and the name of the excel sheet (the wizard detects the sheet correctly) in the dialog window i get when i double click the excel source. Every thing goes fine till here. Now when i select the 'columns' in this dialog window or the preview button, i get this error TITLE: Microsoft Visual Studio ------------------------------ Error at Data Flow Task [Excel Source [1]]: An OLE DB error has occurre ...Show All
Smart Device Development random TypeLoadException
I am having real issues with a TypeLoadException that occurs generally randomly. I've been working on a .NETCF 2.0 app all day, debugging and generally being productive. All of a sudden, with no changes to the assemblies, I get a TypeLoadException on one of the types in one of my referenced assemblies. It's one of my own assemblies, and I checked the manifest and didn't notice anything untoward. // Metadata version: v2.0.50727 .assembly extern mscorlib { .publickeytoken = (96 9D B8 05 3D 33 22 AC ) // ....=3". .ver 2:0:0:0 } .assembly extern retargetable System.Data { .publickeytoken = (96 9D B8 05 3D 33 22 AC ) // ....=3". .ver 2:0:0:0 } .assembly extern retargetable System.Xml { .publickeytoken = (96 9D B8 05 3D 33 22 AC ) ...Show All
Visual C# How to parse database address
My application must accept single string database address. I think the best form for this is servername:port/databasename parts other than servername may be missing. So legal forms are also servername servername:port servername/databasename samples: 143.44.454.45:33/mydb myhost@mycomp.com myhost@mycomp.com/mydb How to extract servername, port and databasename to separate variables servername, port and databasename does not contain : and / characters. There is no need for syntax check. The Uri class is definately your friend here: Uri uri = null ; if ( Uri .TryCreate( "http://servername:8080/other" , UriKind .Absolute, out uri)) { D ...Show All
Visual C++ Disassembling
Hi all, I know how to do this: foo.cpp=====> foo.asm I want to do: foo.asm=====>foo.exe and: foo.exe======>foo.asm Can I do these by VS2005Pro IDE or its bundled softwares Or I need to get another software I found them, but when I disassemble an exe and make an asm and then give the asm to ml.exe to generate an exe, it doesn't work and gives me errors like "nondigit in number" and "instruction or register not accepted". Why What should I do ...Show All
Software Development for Windows Vista Problem with IShellFolder::GetAttributesOf
Hi, In vista RC1 I'm seeing a really odd problem with IShellFolder I have some fairly simple code which does something like: sfg = SFGAO_FOLDER|SFGAO_FILESYSTEM|SFGAO_BROWSABLE; pShellFolder->GetAttributesOf(1,&idl,&sfg); if(!(sfg&SFGAO_FILESYSTEM)) { continue; } What I'm observing is that in RC1 SFGAO_FILESYSYSTEM is only ever set for shared folders! On all other OS's it works as expected (and documented). I'm guessing this is an RC1 bug - where can I report this to make sure it's fixed for the release Tony This appears to still be happening - just tested on the final production Vsita build. I don't have time to do any further debugging until ...Show All
Windows Forms where can I find the publishing wizard
I was following a walkthrough and it said I could use the publishing wizard if I right click the project and select properties. In my case I can't find the publish option, and after some research, I think this is only a feature of Visual Studio Professional, whereas I have the Standard version. Is this wizard available in any other form, to download and install thanks I'm pretty sure Standard SKU has ClickOnce publishing, the Express SKU's do! Try selecting your project in the Solution Explorer. Right-click, and select Publish from the context menu. If you are looking for the properties, you might not see the publish tab since it's near the bottom of the list, if your screen resolution is ...Show All
SQL Server Report Model Generating Out of Memory Error
I am creating a report model of a large database with a few hundred tables, the idea being that the users can report on any part of the database and create perspectives for the areas they want users to have access to (In the past the users have moaned about report models in a CA product called Eureka as the models are too small, perspectives seemed a way of allowing one large model but limiting each perspective to a set of users ). Unfortunately presumably due to the size of the model visual studio is giving me an out of memory error when adding new tables. I have a two dual core xeons with 4Gig of ram and I'm running XP Pro 64bit with the developer edition of 2005 with service pack 1 and VS2005 is using around 1/2 a Gb. Is this a known i ...Show All
.NET Development database not updating 'some other bug now
hi, i am using vb2005 and oracle 10g as database...i want to update changes made on a datagrid to update i use following codes DataSet11.AcceptChanges() OleDbDataAdapter1.Update(DataSet11) here only the dataset is being updated and the actual oracle database is not being updated... any help is appreceable...tanx in advance.... regards, rohit hi, i have changed the code to : DataGridView1.EndEdit() Me .ORDERSTableAdapter.Update(DataSet3) still not working pal... rgrds, rohit ...Show All
.NET Development How to get information of all the network adapters in a machine?
Hello, could anyone tell me how to get information of all the network adapters in a machine by using "NET Framework 2.0" class (Just like the win32 API GetAdaptersInfo can do) Mariya, Thank you for your advices. I have tried the IPInterfaceProperties class. But when I use IPInterfaceProperties class, I can only get the informations of network interfaces but not network adapters(cards). In a sense, they are different, I think. In fact, I want to know how many network adapters(cards) are installed in a machine as well as there MAC. Besides, I tested my program in Vista. ...Show All
Windows Forms Adding Row header a text in datagridview
hi all, Can anyone tell how to add the rowheader a text in datagridview using visual c# Thanks. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=298522&SiteID=1 please look at that thread ,i hope it will help ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I load a 3d mesh (.x file)?
How do I load a .x mesh into my scene The space game seems to use its own format (which it names .swm), and there's nothing in the help. I've been scanning through through the classes in the Framework namespace, but I can't see anything obvious! Is .x the recommended format for objects like this (If not, I change my question to be about the recommended format :D) If anyone knows anywhere that has some nice .x meshes I can play with, that'd be cool too. The only one I have lying around is a chair, and that's going to look a bit funny running around my game :D I didn't think the content pipeline stuff was in the beta I just added this code, which compiles: ContentManager contentManager = new ...Show All
Visual Basic Excel Process Won't terminate
I have seen loads of information on this but none seem to resolve my problem. Here is the situation: I am using Visual Studio 2005 and using SQLBulkCopy to copy a certain range of Excel values into SQL 2000 table. The copy process is successful but I need to have the Excel file opened - otherwise I get "External table is not in the correct format". When I finish the copy I try to release all Com objects but Excel process is still active. I tried changing my connection string, using both Marshal.releaseComObject and Marshal.FinalReleaseComObject. Neither of which are successful. I then began looking at killin the Excel Window that I open by using a GUID. This works but when the user closes the other Excel windows which they hav ...Show All
