lt777's Q&A profile
Visual Studio 2008 (Pre-release) Is it possible to pre-fetch data from a relationship or make it fetch on-demand instead of requiring a call to .Load()?
While on the subject of loading foreign key references... Is there some mnemonic I can throw into the LINQ query to tell LINQ to Entities that I want to pre-fetch all of the type data because I want to filter on it When I do: var filteredQuery = from game in gamesDb.VideoGames where game.Type.Name == "Nintendo Wii" select game; foreach (VideoGames g2 in filteredQuery) Console.WriteLine("{0} : {1}", g2.Title, g2.Type.Name); That thing works fine, and I don't have to loop through and call TypeRef.Load() Is there something I can stuff in the query when I'm not using a where clause that will force the TypeRef to pre-fetch Oh, something else occurred to me.. The ORM.NET code I used and modified h ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Render to Texture Inside Shader?
I'm sorry if this is a stupid or obvious question, but I am completely new to shaders. Is it possible to render to a texture inside of a shader For example I want to render to a texture in the first pass and then use that texture in the second pass. I am currently using XNA's render to a texture successfully. However I was wondering if it was possible to implement it inside of a shader, because I feel it would be faster, not to mention make the XNA code simpler. My gut feeling is that it is not possible, however I am kind of confused by RenderMonkey. It uses Render Targets which appear to do what I want. However, I think it may just be doing some DirectX render to a texture operations in the background. Y ...Show All
.NET Development Visual Studio 2005
Hi All, I am using VS 2005 (ASP .NET 2.0 using C#) with SQL Server 2005 to develop a web app. There is only one dataentry screen in my app and rest are all queryable screens. The database is small. I created an MSI and released in on the server.( I am maintaining different servers for the application and the db). For some reasons, the application is slow when accessed remotely. Help will be appreciated. Besides, are there any patches available for the VS 2005 since grid view is new to the version Thx, A there are no .NET Framework 2.0 updates, except for perhaps a couple of security updates but nothing else. How slow is this performance So you are stating that when you deploy the website/sql on different machi ...Show All
Visual Studio Team System How to setup TFS MSSCCI plugin to connect to SSL-enabled TFS Server?
I am unable to get the TFS MSSCCI plugin to connect to an SSL-enabled TFS Server. How can this be done I followed the following 2 walkthoughs to enable and require SSL: http://msdn2.microsoft.com/en-us/library/ms242875.aspx http://msdn2.microsoft.com/en-us/library/aa395285.aspx We were recently required to put all web trafic under SSL and now we are unable to have our VS.NET 2003 clients to connect to TFS. To elaborate my question: can you connect to this TFS server using SSL using the command line and Team Explorer (or Visual Studio 2005) can you connect to TFS server using SSL using Msscci 1.1 by v1 you mean Team Explorer or Msscci If Msscci, is there any reason why not use the latest version Thanks ...Show All
Windows Forms Handle a textbox outside the form
Hi all, I'm new in C# and I'm still learning basic function. I'm sure this one is very simple but I can't find any help. I want to change the value of a textbox from a public class that is outside the form that contains the textbox. So, I cannot use this.textbox.text = ... I try to declare the textbox as a static variable like static System .Windows.Forms.Control Status = System .Windows .Forms .Form.ActiveForm.Controls[12]; but it is not working, Anybody has a idea Thanks in advance! Bertrand Well, it's a similar problem to what I was facing some time back. The form doesn't refresh itself automatically. What I did was to put up a button, which when clicked, refreshed the RichTextBox's content (my problem ...Show All
Software Development for Windows Vista SUA Errors on certain Application(C++ based)
While testing my application through Standard User Analyzer tool on Windows Server 2003 platform, I got these following errors(stop code mentioned): 1) Access was restricted to trusted user only. RemoveDirectoryA: Directory (\Device\HarddiskVolume1\Program Files\Common Files\InstallShield\Professional\RunTime\11\50\Intel32) only grants requested 'DELETE' to 'NT SERVICE\TrustedInstaller, NT AUTHORITY\SYSTEM, BUILTIN\Administrators' StopCode: 0x331B 2) The application called a Writeprofile API with LUA issue Ini: WritePrivateProfileStringA called with Ini file 'C:\Program Files\InstallShield Installation Information\{75D956F1-EF1D-4917-A082-1B97ABBF3DF1}\setup.ini', Secti ...Show All
SQL Server Database mail configuration
I have configured database mail using the wizard, but when I try to send a test message I receive the following error: The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 3 Exception Message: Cannot send mails to mail server. (Failure sending mail.) Is there some more configuration I must do I have enabled mail using the surface area configurator. Thanks I would try using xpsmtp mail and forget standard SQL mail...it is a pain in the rear. You can get it (yes it is free) here http://www.sqldev.net/xp/xpsmtp.htm It is easy to set up and use and has teriffic documentation. I know this is not an answer to your question but I hope this ...Show All
.NET Development RedirectStandardOutput in Process class is not working until the process is killed
string instlLocation = @"C:\Program Files\Cisco Systems\VPN Client\vpnclient.exe"; ProcessStartInfo psInfo = new ProcessStartInfo(instlLocation, "connect " + sStoreName); psInfo.RedirectStandardInput = true; psInfo.RedirectStandardOutput = true; psInfo.UseShellExecute = false; psInfo.CreateNoWindow = true; Process process = new Process(); process.StartInfo = psInfo; process.Start(); vin = process.StandardOutput; I am not able to get the output stream with the above code using vin.Read(), until the process is terminated or I kill the process using below code. Any right help will be greatly appreciated. p ...Show All
SQL Server OLE DB Source to Flat File Destintation using Fixed Width Columns - determining source column width
Hi, I am trying to create a program that transfers tables to flat files. At this point in time, I have suceeded in created one that creates delimited files. However, I am now trying to create fixed-width files as you can do with the SSIS designer, but programatically. Is there a way to programatically determine the width of a column from the source table I can not seem to find any kind of function or member that stores this information or allows me to retrieve it. I know what I need to change in order to set a width for a column, but I just don't know how to find the width without just asking the user to provide one. I've continued my research in trying to figure out a way, but I can't seem to find anythin ...Show All
Visual Studio 2008 (Pre-release) netTcpBinding wsHttpBinding which is better for a LAN environment?.
Hello, I was programming a WCF service only for clients running inside a LAN, i tried out both the netTcpBinding and wsHttpBinding endpoints. I would like to get experts opinion on which one is better for my case. My clients are standalone applications(windows desktop clients) running in a Windows 2003 LAN environment. Also incase in the future some webclients client wants to talk to our service, can a netTcpBinding expose the wsdl interfaces . I tried the following and got some errors. net.tcp://localhost:8000/Myservice/service1 wsdl. is this possible or, wsdl can be exposed only for http based bindings . Thanks, Tha ...Show All
Visual Studio 2008 (Pre-release) Creating a panel style with default styles for child controls.
I would like to create a style that sets default styles for a panel's children based on their type, such as a default style for buttons, labels, etc. I tried creating styles in the panel's style's Resources property. For example: <Style TargetType="Grid"> <Style.Resources> <Style TargetType="Button> <!--...snip...--> </Style> <Style TargetType="Label"> <!--...snip...--> </Style> </Style.Resources> </Style> This seems to work fine for buttons, but doesn't work for labels. I can't figure out why. I've tried just about everything I can think of. Please help. Thank you. -Kevin It looks l ...Show All
Visual Studio Team System Unit Test Adapter threw exception: System.NullReferenceException
Hello, maybe anyone can provide a solution to the following scenario. I have a device project that compiles fine and I have a unit test project for this device project that was working well too. After signing the assemblies the tests do not run anymore. But it's not the tests that are failing. If I debug the tests I see that all my test code is executed without any failure. After the test the TestCleanup method is also executed. The code within this method is executed fine too but when the method is finished the test immediately displays the Error result with the following error message: "Unit Test Adapter threw exception: System.NullReferenceException: Object reference not set to an instance of an object.." Code coverag ...Show All
SQL Server Need Comments
Can someone please give me comments to every lines to this code: (I think I know, but Iam not sure): Dim ConnString As String = ConfigurationManager.ConnectionStrings( "Connectionstring" ).ConnectionString Dim strSQL As String = ( "INSERT INTO Tabel3( City) VALUES ( @City )" ) Dim Conn As New SqlConnection(ConnString) Dim Command As New SqlCommand( "" , Conn) Command.CommandText = strSQL Conn.Open() Command.ExecuteNonQuery() Conn.Close() ------------------------------------------------------------ By the way, I got a question about the DetailsView in ASP.NET 2.0 (none answearing me at forums.asp.net .....: I want to hide a <TemplateField> in Edit-mode of the Detailsview. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unable to render mesh
Hello there, guys! I've a little problem with Direct3D9. I'm following a book written by Jim Adams, called "Advanced Animation with DirectX" This book show you how to extend the classes D3DXMESHCONTAINER and D3DXFRAME, and using them to render meshes. Now i'm trying a my example, that you can see here http://phpfi.com/182098 But there are some problems: At first, the mesh is not rendered, i've tryied so much position with camera but nothing i can't find it., but the Device->Clear works... I'm also using a simple shader, here is it... float4x4 matWorld; float4x4 matView; float4x4 matProj; float4x4 matTotale; texture TextMesh; sampler2D STextMesh = sampler_state { texture = <TextMesh>; MIPFILTER = linear; ...Show All
SQL Server newbie - user permissions
I have added a new user to a database without any explicit permissions, but when I view their effective permissions inside the Microsoft SQL Server Management Studio, they have a whole host of permissions. How can this be Is it a bug in SQL Server Or could it be that the public role has all these permissions If new users are inheriting these permissions from the public role, how do I view the public role permissions Thanks. This is what I did (all using the Microsoft SQL Server Management Studio): - Firstly I created a new login (Security -> Logins -> New Login) selecting Windows authentication. Whilst still in the New Login dialog, I selected the User Mappings page and mapped the user to t ...Show All
