kforrey's Q&A profile
Visual Studio 2008 (Pre-release) WCF & WinForms compatible?
Hi! I have a problem with remote methods invocation in wcf that don't seem to work when called from within a winform... Here's my service : [ServiceContract] public interface IMyContract { [OperationContract] string SayHello(string name); } [ServiceBehavior] public class MyService : IMyContract { [OperationBehavior] public string SayHello(string name) { return "Hello " + name + "!"; } } This worked just fine (ie: s = "Hello World!") : [STAThread] static void Main() { Uri baseAddress = new Uri("net.tcp://127.0.0.1:8080"); ServiceHost host = new ServiceHost(typeof(MyService), baseAddress); NetTcpBinding binding = new NetTcpBinding(); host.AddServiceEndpoint(typeof(IMyContract), bindin ...Show All
SQL Server Create an instance of SQL 2005
Dear friends, I deleted the instance of SQL 2005, and now I want to create and I dont know how! Colud you tell me Thanks. Insert the setup media and install it again, you have the chance to name of new instance there. (don’t forget to patch the system again after installing the instance from scratch) HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development Generating random numbers and Retreaving them in other forms in C#
I admit it, this probably has been answered half a google times before in other threads, but I have not been able to find exactly what I'm looking for. I'm trying to make a rpg (hence the need for a number generator). But, I need to be able to have the spread of the nembers to be between 1 and 20, for example. Then, I need to call these numbers latter on. Obviously I'm learning the language and trying to modernize myself (I've only worked with QBASIC beore!) Can anyone help Oh yeah, I should mention that a psudorandom number would suffice. I didn't read the thread to a T, but the stuff there looks inefficient. James Curran's shuffle technique described above is the standard way of generating permutations of random numbers ...Show All
Visual Studio 2008 (Pre-release) Could i generate web pages using XAML
Hi all, I am new to winfx stuff, i have a question about wpf and XAML... which is If i have a xaml file, could i using the information in this file generates many web pages according to the information stored in the file Thanks a lot Michael How could I reuse the development of the UI so I don't have to code the same interface for design for web Actually, it's impossible, you can reuse your business logic code, but you cannot reuse the UI code, since different application development frameworks have quite different paradigm on how to define the UI. Sheva ...Show All
SQL Server Need to copy All oracle tables to SQL Server 2005
I am racking my brain on this one. I am migrating Oracle data to SQL Server and would like an SSIS package that will copy the oracle data from every table to SQL server. I already have the schema set up in SQL and a straight copy of a specified table works fine between the OLEDB source and OLEDB destination. However, when I set up a loop which sets a global variable for the table names, which are identical on both dbs, and try to set the OLEDB Source and Destination OpenRowsetVariable to the global variable, the process fails with these errors with all validation turned off: [OLE DB Source [18]] Warning: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code ...Show All
Visual Studio Changing image displayed by image shape programmatically
Hi all, The dsl i am working on uses an image shape. I would like to change the image displaed by the image shape at runtime. Is it possible Freddo I cannot think of any way that you can change the image dynamically at runtime. Sorry. I will let you know if I find out about a way to do this. Thanks, Bhavin. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. First XNA project & a question regarding pink outlining
I am creating a old-style RPG with added bells and whistles and it uses XNA. I threw a character in the game and he has a pink outline around him which is actually what I use for the transparent color. Do I need to do anything in code to remove this I thought I did something similar in Direct3D before when I was first creating the texture. Since GSE does it all for me, I'm getting an unwanted result. Screenshot: http://lh5.google.com/image/philvaira/RZ2EQXve37I/AAAAAAAAAAs/rx381x00kQA/Nral_Alpha_Screenshot_1.PNG.jpg imgmax=800 At any rate, this is my first project using XNA. I have a local team and we are finally putting it into production as commercial-based PC game. Using XNA has really boosted our productivity. ...Show All
Windows Forms SQL Database / Windows 98.
Hi, I have created an application that accesses a SQL database and Published and installed on a Windows 98 machine which has .Net framework installed. The SQL Database is directly accessed at run-time it is not included as a Resource File - I have manually copied the file to the Windows 98 machine. My question : Will this application run on a Windows 98 machine. At the moment I get an Error establishing a connection to SQL server. Does the ClickOnce/ Publish include all required files I really don't know what I'm doing, so any help would be great. Thanks Is the SQL server set to allow network connections The default dissallows them. Do you have a meaningful connection ...Show All
Visual Studio Team System Problem in creating the Release Mode Build using Build Type
Hi , I am not getting the Release Mode Build using Build Type even though i specified the Mode of Build as Release in the Build Type Creation Wizard . Where should i change for getting this Release mode build using Build Type. Help me out with this issue. Regards, Anbu Even without the line break I'm still getting a problem with the same symptom. It finishes my previous steps and then runs devenv under the TFSService user and then hangs. This target works if I put it in a separate MSBuild project and call it without using Team Foundation Build. I suspect it's something to do with the fact that Team Foundation Build is calling it as TFSService. My target looks like this (it errors if I don't have a space between t ...Show All
Visual Studio Can the debugger be used to step through a guidance package?
I have a few random questions - any help is appreciated. Note the general sense of frustration. Is it possible to use the debugger to step through a Guidance Package while it creates a solution Is there documentation, other than the chm file (note: this should include a how-to) What is the sequence of how code is executed when a solution is created from a package How does one interpret the below Action < Action Name = " ExportSolutionTemplateRef " Type = " RefCreator " AssetName = " ExportSolutionTemplate " ReferenceType = " Microsoft.Practices.SoftwareFactories.ServiceFactory.References.SolutionPropertiesReference, Microsoft.Practices.SoftwareFactories.ServiceFactory & ...Show All
Visual Basic Illeagal Characters In Path Error.
Hi, I have this error, Illeagal characters In path. I figured out it happend when the FILE NAME had spaces in it, so It took me one week to make it change the spaces to "_". In the debug I didn't have the problem any more. Now I installed the program, and it happend. I don't know the exact line, but if it's because of space it's in the Folder's name. SPACE ISN'T AN ILLEAGAL CHARACTER! Why does it happen Is it a bug in VS How can I fix it Thanks. Well, you are going to have to continue to troubleshoot it. How is FName created Try putting more debugging statements in there. Have you tried replacing FName with the hard coded string You say 'an' error Which error Illegal characters in f ...Show All
SQL Server multiprocessors
HI If the machine running SQL Express has multi-processors (2) - does it have an adverse affect on it's peformance, heavens forbid - do we need to make any settings changes via the Enterprise Manager tool Thanks bruce Hmm that might be the OS not being as smart as we would like, you could try setting the processor affinity (if its supported in Express which I can't remember right now). 60 MB does seem a little low, I'm testing a new sample against adventureworks right now and its using 1.2GB on my desktop with a single user... The memory usage is very workload dependent. If perf does not become more predictable try posting back. ...Show All
Windows Forms DataGridView - Column/Cell Not Selectable
Hi, I have a DataGridView with 5 columns but only want the user to be able to select cells in one column (prevent selection of the other cells) I have tried to find a property for a column to say you can't select it, but can't find anything. Surely you don't have to write a whole bunch of event handlers (cellclick, keydown, etc) and dynamically change the focus to the one columns cell you allow to select. Can anyone help me with this - even microsoft access has the ability to not allow selection of a particular column cell. Thanks in advance, Grant. Hi gJen : we can judge if the column is column2, then cancel celledit event as follow: private void dataGridView1_CellBeginEdit( obje ...Show All
Visual Basic Running a DTS Package in Visual Basic .NET
Hi All, I am having a terrible time trying to run a DTS package in Visual Basic .NET. In VB6.0 it was easy now I get a Security Permissions violation and can't get past it. I am using SQL Server 2000 and Visual Studio 2005. I save my DTS package as a Visual Basic file (.bas). In VB6.0, I could open the .bas file in the VB6.0 environment, compile it, and use the executable in my installation program to make my database changes for a new installation. When I compile my DTS package in VB .NET, I get a Security.Permissions error. I went through the steps of the Article ID:321525, How To: Use DTS Package Events in Visual Basic .NET and get the same error. How do I get past this Any help would be greatly appreciated!! Tha ...Show All
Visual Basic ReadOnly property is "late" and String type variable is loosing value
I have a a class with two ReadOnly Property. The first one chooses a value, depending on a Public Variable, through a Select Case. The second one, calculates a new value, from the first ReadOnly Property. When I first run the code, the first ReadOnly Property is OK, but the second stays null. Re-runing the code, at the same session, makes the second ReadOnly Property to calculate correctly. Is there some trick with multiple ReadOnly Property depending on another ReadOnly Property inside a same class This Class is accessed inside a structure. The second problem, is that I have two String variables inside this same class, and after some Sub's, this values, that where already set, go to "NOTHING". All the subs that ac ...Show All
