Tryst's Q&A profile
Visual Basic Error binding to target method
This is a change-of-direction from my previous post ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1095934&SiteID=1 ). I didn't get an answer yet on that one, so I'm trying something different. For this code, assume myInstalledModules is a Dictionary(of string, string) that maps a module name key to the assembly path of that component. So I'm trying to eliminate dependencies in my main app, allowing different components to be installed during setup. So when I try to access types in the satellite assembly, I want to load those types dynamically. (See the following code) //Begin code// Dim a As [Assembly] = [Assembly].LoadFile(myInstalledModules( "Pathology" )) Dim types As New Dictionary( Of String , Type) ...Show All
.NET Development xmlwriter->writeelementstring formatting
im using an xmlwriter and its WriteElementString method. if i use it with empty data, i get the short tag as expected (<data />) but i was wondering if its possible to have this method produce the full empty tag (<data></data>) instead Not with WriteElementString, but you can do this if you use StartElement + WriteString + WriteFullEndElement. In XML <data /> is exactly the same in meaning as <data></data>, so you generally don't need to use a full end element tag. -Ryan / Kardax ...Show All
Windows Forms MSBuild ClickOnce Release vs Debug entry point difference/error.
I have a solution that gets built and deployed via Team Build/MSBuild (thanks Alan) and it works fine in Release mode, but if I change the build flavor to Debug I cannot install the application via ClickOnce because the .manifest entryPoint assemblyIdentity has processorArchitecture="x86" instead of processorArchitecture="msil" as in the asmv1:assemblyIdentity node. When I build in Release mode, the value is "msil" in both places. While the Debug build and deployment works fine, when I go to install the application I get the "Specified <entryPoint> is not valid. Check that the path to the entrypoint is well-formed and the entrypoint exists in the deployment." error. Anybody have any ideas ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Big Help and FAQ Post, also contains code to render 2D and 3D lines
Hi everyone. I read through many posts here in the board and I collected quite a bit of resources about the XNA Framework and collected everything in one big monster post on my blog. It contains tips how to get XNA working on 64 bit, how to get it working with VS 2005, many blogs and articles and a lot of personal questions and answers about XNA (fonts, sounds, music, mouse cursor, keyboard text, drawing lines in 2d and 3d, Shaders and debugging and many more issuses). Link to the full article on my blog abi.exdream.com . I hope this helps :) I agree that I didn't made it clear what I mean by the NullReferenceException when compiling a shader. I was comparing c++ DirectX development with c# (MDX or XNA, doesn't matter, both don't su ...Show All
Visual Studio Source code different then the orginal.
Hay, I have make a time ago a copy of my project from the C drive to E drive. when i now open the project on my E drive (the copy) for adding more code, and i put a breakpoint to the code to debug, i receive a debug error. The source code is defferent then the orginal version when i right click the breakpoint en and select "allow the source code defferent then the orginal", nothing is gone happend, and i can not make my code work, and if i can then i recieve this mesage, The source file is defferent from when the module was build. Would you like the debugger to use it anyway . If i select YES or NO it don't care, i cant use my new code. I don't have the original files, only the backup that i have make from the orgi ...Show All
Visual C# what is the difference between .cer/.spc and .pvk/pfx?
Hello, I'm trying to figure out what is the difference between this keys. regards, .cer - states for Certificate used for storing X.509 sertificate. This certificate contains informations about certificate owner, and also public and private certificate key. .spc - states for Software Publisher Certificate. This is just different representation of certificate in PKCS #7 format. You can generate spc file from cer file. .pvk - states for private key and is a private key from sertificate. you can extract the private key from certificate .cer file. Also you can create a certificate based on .pvk private key file. also file extension used with prevous ones is .ctl and this is certificate trusted list. About pfx ...Show All
Visual C# help plz: dynamic procedure
** Please see the code below.. I am using this code to populate data from SQL Server to combobox usng SqlDataReader but I have more than 10 combos to populate and I want to use the same procedure with all combos.. which means I will need to pass the combo object and field data.. can you please help... private void populate_id_type() { try { //ensure the box is cleared cboIDType.Items.Clear(); //Use the SQLServer provider.. //set up the connection and the command... sql_connection = new SqlConnection ( "server=localhost;uid=sa;pwd=;database=Sales" ); string strSQL = "SELECT FirstName + ' ' + LastName as Name FROM Customer" ; sql_command = new ...Show All
SQL Server Creating offline (local) cubes using XMLA, or any other way..
Hi, I realise this subject has been discussed a lot but there seems to be no definitive answer. The company I work for creates many cubes (currently using many SQL statements) for the sales regions at the end of each month and we need to move to a better platform, hence analysis services projects. Is there any "easy" way to take a cube created by an analysis services project and save it to an offline (local) cube Currently I am trying to use VB.NET 2005 to process the XMLA definition from AS2005, which is easy to get at. The VB code is: Dim myClient As New Microsoft.AnalysisServices.Xmla.XmlaClient Dim l_result, l_XmlaCommand As String l_result = "" Try ...Show All
Visual Studio XSLT Debugging
I'm having problems debugging XSLT in Visual Studio 2005. When I click on the "Debug XSLT" button, I get this error: TypeLoadException was unhandled. Method 'Execute' in type 'Microsoft.Xsl.XslPlugin' from assembly 'Microsoft.XslDebugProxy, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation. It does this no matter what kind of xsl file I have specified for the transform, and no matter what xml files I have specified as the input and output. Also, I opened up my XSL and XML files in another editor and the transform worked just fine. Has anyone else had this problem Could this be a problem with having the latest .NET Framework 3.0 installed Or Visual Studio 2005 SP1 Here is my information: Mic ...Show All
Visual Studio Express Editions Form, getting a picturebox to be able to move the form.
This one may be complicated to explain how I mean. But ill try anyway. Lets say I have a Form thats is FormBorderStyle = None, and I want to make my own drag feature witch will use a Picture box as dragging place. So that the user can place the mouse over the Picture Box and then move the form around. Is that possible Stigern wrote: Okai, instead of making a new thread, im asking here. How do I lock a textbox or a variable, to only have numbers like 1000 and not 1000,2343 Use a masked textbox to control user input ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Any 3D tutorials for XNA?
Hi, does anyone know where can I find any tutorials, help etc. for developing 3D games with XNA I've played with 2D sprites, its all nice, now I want to move on :) I would like to be able to create simple things like terrain, skybox , move around map etc. Is this possible or I have to wait for beta2 / final release Thanks, ErnisJ Alright, I have XNA 2.0, and I have written a program to read a simple heightmap and load up the vertices. But I am getting a strange error. It says: Both a valid vertex shader and pixel shader (or valid effect) must be set on the device before draw operations may be performed. And is pointing to: graphics.GraphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, Te ...Show All
Windows Forms datagrid and datetime value
i have 2 datetime fields in SQl table. if i sett the columntype of datagridview as calendercolumn, its showing an error and the datefield is not saving in the database.Specified cast is not valid. is the error.if i give continue all other fields are saving to databaseexcept the datetime fields. whats the solution ...Show All
Visual Studio Tools for Office Creating Word 2007 doc and template projects with VSTO SE
I am trying to complete the setup for a machine I am using for Word 2007 and VSTO SE development. I did a complete reinstall of Visual Studio and VSTO after first removing VSTO CTP v3. (This is in leiu of re-imaging the machine, as the VSTO SE download details suggest might be necessary after running the CTP version). All is well, except in order to complete the full/original VSTO installation, I had to temporarily put Word 2003 SP1 on the machine. So I installed Word 2003 SP1 on my Word 2007 machine, then installed VSTO, then removed Word 2003, and finally installed VSTO SE. VSTO SE runs fine and gives me the new Word 2007 Add-in options as expected. However, the other options for launching a new Word document and Word templa ...Show All
Visual Studio Team System Download a Process Template Programatically
Can anybody help me with the code sample for downloading the specified Process Template as it is done by the Process Template Manager in VS Team Explorer. Any ideas are also welcome. Hello Yogita, Thank you very much for such a quick response. I was looking into IProcessTemplates but could not figure out a way due to lack of documentation. Anyway, thank you very much for the help. ...Show All
Software Development for Windows Vista Wf Performance Questions
I have a console application to host a simple sequential workflow where first activity is PolicyActivity and second activity is Listen activity waiting for human response to complete the workflow. I have enabled default SQL persistence service for the scenario as well. The intent of the PolicyActivity is to perform role assignment and set defautl field settings (i.e. such as Service Level Agreement Due Date). This scenario models a pended claims scenario solution our company's products have handled with an internal custum built workflow/rules condition handling engine. The model must support ability to launch thousands to millions of workflows per day. The rules processing is taking on average around a second per workflow. This numbe ...Show All
