laiseng's Q&A profile
SQL Server Server names or instance names
Hello there. I'm trying to populate a drop down box with a list of all available instances of SQL server (express or not) available on a network. To list all instances I'm using EnumAvailableServers() in SmoApplication. The issue is that the Instance column in the returned data table is always empty, and both the Name and the Server columns contain the same string -- the name of the computer the SQL server is installed. Locally I have SSE installed, the instance name is <computer_name>\SQLEXPRESS, however, using Smo I can't seem to get to the either full instance name or just the instance name. I can't assume SQLEXPRESS, since there may be more than one installed. Alternately I used EnumRegisteredServers() in SmoApplication.S ...Show All
.NET Development RSAProtectedConfiguration Provider Use In Windows Forms Apps
Hi folks, I've been developing two enterprise apps for deployment to selected users within the company. Both of the applications have sections of their App.Config files encrypted using the RSAProtectedConfigurationProvider. It all works fine. The problem is this: These apps will be deployed to run from the network, and will not live on the user's machine. This is also true of the App.config files. What this means is that I need to be able to create and export an RSA key container to be imported on each authorized user's machine which will be used to decrypt the encrypted sections of App.config. During development, the default .NET key has been used. Once the new key has been imported, I need a way to tell the RSAProtectedC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .. Tridex VB.NET ##UPDATE 14# XNA .... Hi a strong reminder for XNA developers ....
Hi, A warning for all do not forget your state blocks or you can get some serious rendering issses so this is what you need before you render!!!! its a real must even with directx!!!! Dim Tempstate As New StateBlock( Me .Device.GraphicsDevice, StateBlockType.All) Tempstate.Capture() 'do your render/passes e.t.c here 'the bottom lines reapply original settings Tempstate.Apply() Tempstate.Dispose() ...Show All
SQL Server Merge replication and CLR Stored Procedures
I am using SQL 2005 merge replication and have CLR stored procedures that are needed on the publisher and subscribers. I may be missing something, but there seems to be a hole in the functionality at the moment as you can’t publish assemblies for replication. Ideally I want all my database code mastered on the publisher and pushed out to subscribers when it changes. It appears that for CLR stored procedures and functions that I can’t do this. To get round this, I am contemplating the following on subscribers: Prior to each synch, connect to the publisher to see if there is an updated version of each DLL available – in a directory (as I don’t think I can get the DLL from the publisher database directly) I ...Show All
Visual Studio Express Editions page setup dialog box
hey. I have a small issue. I put a PageSetupDialog box into my application, but it wont open. It doesnt show any errors when i am in code view, but then when i try running it, it comes up with this error.. PageSetupDialog needs a PageSettings object to display. Set PageSetupDialog.Document (preferred), PageSetupDialog.PrinterSettings, or PageSetupDialog.PageSettings. from this code... PageSetupDialog.ShowDialog() I dont understand what its looking for when it says it needs pagesettings object and why PrintSetupDialog.showdialog() works just fine. Help! Unless you want to be selective about what page sizes and printers you let the user select, start with this: With PageSetupDial ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do you handle the whole thing with getting models and maps into XNA?
I don't have XNA yet, but I need to know about doing models and maps. So, how do you handle the whole thing with getting models and maps into XNA First off, I will move the post into the XNA Groups. To load content into your applications for the moment you are going to have to work on your own code as these functions where not really implemented in the Beta. Going forward you will have the content pipeline that will assist you. This pipline will have functions that will load and import the contnet from different formats. If you have a look at the webcast that was talked about on the xna team blog you will get some more information. ( http://blogs.msdn.com/xna/archive/2006/10/06/XNA-Spacewar-Starter ...Show All
Visual C# Sending emails from my application - Not working
Hi, <code snippet> public static void SendEmail() { string MSGBody = "My Message"; string MSGSubject = "My Subject"; SmtpClient smtpClient = new SmtpClient("localhost"); // OR use the following line instead //SmtpClient smtpClient = new SmtpClient("my email client"); string AddressFrom = "me@myemailaddress.com"; string AddressTo = " them@theiremailaddress.com "; MailMessage mailMessage = new MailMessage(AddressFrom, AddressTo, MSGSubject, MSGBody); smtpClient.Send(mailMessage); } </code snippet> The above code works fine from my development environment whether I set the SmtpClient to localhost or my actual ...Show All
Visual Studio Express Editions String question
I know this is a stupid question but I can not find the answer. Visual Basic 2005 Code: Replace(ARR(1), *********, "") ********* is the string I need to replace. The problem is that the string that needs replacing is ". A single double quote. I have tried everything from " ' " ' " to ' " ' " ' " ' to " ' " " " ' " and nothing has worked. I am reading in Strings from a .txt file and am needing to change the strings to Integers. The problem is that each string is saved like "90000". I need to replace the quotes with a NULL value or a space before my Val(Arr(1)) will work. What is the correct quote configuration to make it search for the string " and replace ...Show All
Architecture book about group motivation and leadership
I know this is not the forum, but well, hope it won't be banned. At least I always find answers here . I am a young project leader (Avanade speech) who want to improve not technically, I want to improve my human factor. My first project is going ok, but I want people to work more and harder (without using latigo:P). I would like to buy a book about motivation and group leadership. I just want to know which is the best one. In my project people is going through differents moods, and I want to direct it if it is possible. Thanks in advance. thanks for the response. But that isn't what i am looking for. I want something more psicological. People works better if they are happy and motivated. I am agree with you in the smarter ...Show All
Visual Studio Express Editions registration key, invalid e-mail
hi! I'm trying to get a registration key after I downloaded Microsoft Visual Studio c# Express Edition, and it alway writes when I try to register Invalid e-mail, can someone help me thanks Check this thread, jluca777's solution seem to work for others. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=567005&SiteID=1 Found a solution. Goto profile.microsoft.com, signin and make sure all info is correct especially the email address. When the profile is successfully updated, try registering again. should work. ...Show All
Windows Forms Windows Error while running under ClickOnce - runs fine as stand alone app
Hello, I have developed an application that I deploy using ClickOnce, and it works great everywhere, except on one machine. In that machine, if I try to run the ClickOnce-installed app, it starts and suddenly I get a Windows error dialog and my app ends. I have checked the event log and there is an error on the .NET Runtime 2.0 Error Reporting, with event ID 5000 and the following details: EventType clr20r3, P1 sic.client.exe, P2 1.0.0.313, P3 44ebbbab, P4 system, P5 2.0.0.0, P6 4333ae87, P7 575, P8 1d, P9 n3ctrye2kn3c34sgl4zqyrbfte4m13nb, P10 NIL. If I go and look for the Sic.Client.exe file in C:\Documents and Settings\User\Local Settings\Apps\2.0\...... and run it, my app works just fine, but if I run it through the .ap ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A C++ version of the XNA Framework?
Are there any plans for an unmanaged C++ version of the XNA Framework (along the same lines as the managed and unmanaged versions of the sample framework) I forgot to mention: 1. For the "no D3DX" version, there is no effects stuff. But shaders are behind a simple and unified interface... Maybe I am doing some effect class replacement this weekend. 2. There is some overload magic: RenderDevice& device = RenderDevice::Instance(); device->SetRenderState(...); or you can do: IDirect3DDevice9* pD3DDevice = device; and something like: Texture2D texture; texture.Load("...."); device->SetTexture(0, texture); Yes, operator overloading rocks :-D ...Show All
Visual C# The first time that a ActiveX is loaded in IExplorer causes a long delay
Hello, I have implemented a complete application using the ActiveX technology and works correctly. But when the ActiveX is loaded in IExplorer the first time causes delay, of approximately 10 to 22 seconds and when the ActiveX is loaded for the second time then do not exist any delay. In order to assure that this problem is not own of my application, I have implemented a simple Activex and when is loaded the first time in IExplorer also causes delay, of approximately 10 to 15 seconds. This delay is generated only the first time that IExplorer loads the ActiveX and in the following cases: 1. When the client machine, where Activex was installed, is restarted 2. When the new version of ActiveX is installed How I can avoid this ...Show All
Visual C# NetworkStream doesn't support seeking
I want to play sound from network stream. For playing sound i use directsound, but when i try to create SecondaryBuffer: try { ApplicationBuffer = new SecondaryBuffer ( this .netStream, ApplicationDevice); } catch ( Exception ex) { MessageBox .Show( ex.ToString()); } i'm getting error that netStream doesn't support seek operation. I know that property "Seek" of NetworkStream is ReadOnly... how can i work around this problem public class DirectSound { private SecondaryBuffer applicationBuffer = null ; private Device applicationDevice = null ; private NetworkStream netStream; private byte [] networkBuffer; private MemoryStream memoryStream; ...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
