Eppz's Q&A profile
.NET Development Strange behaviour of JET Database Engine
Hi, JET says, that my INSERT INTO-command, which has been generated by a CommandBuilder, has a syntax error. Is it possible to find out the SQL-command, which is sent to JET from a DataAdapter Thanks! Have you tried using OleDbCommandBuilder.GetInsertCommand() This will give you an OleDbCommand object, and you can look at the CommandText. Jet itself doesn't have much tracing, but we do have tracing in .NET in 2.0 that should show you the actual value being used at runtime. I think using GetInsertCommand is the easiest first step. For more on the new tracing, see: Tracing Data Access http://msdn.micro ...Show All
.NET Development Logon failu unknown user name or bad password
Hello, Using VS 2005 Beta (VB) I would like to read a network share in the form of: \\192.168.1.10\c$\ - Using the DirectoryInfo object. However when I try that I get the error: Logon failure: unknown user name or bad password How can I either popup a box for the user to type in the username or password or embed it into the program I hope this helps others who received this error message. When I debugged my .net application on my local computer everything worked, however, when copying the same application to the server I received the error message Logon failure: Unknown user name or bad password All the proper permissions were se ...Show All
Visual Studio 2008 (Pre-release) Trips to the database
I have a general performance question that needs clarification. Assuming an object graph of Customer, Orders, OrderDetails and assume I am retrieving one customer with 10 orders and each order has 5 orderdetails, how many trips to the database will be required Is it 3 or 12 Thanks, Dave Foderick If you use the Including() operator to specify immediate loading of Orders and OrderDetails then you will get all your data in 3 queries. If you don't use Including, it will take many more. ...Show All
.NET Development Why the Compiler Invoke the PermissionAttribute object's CreatePermission Method On Compile Time?
I be at loss to CodeAccessSecurityAttribute from same document,i knowed when i create a class with PrincipalPermissionAttribute(inherited from CodeAccessSecurityAttribute) signed and then C# Compiler Compile the code, it do below steps: 1.Net Compiler scans the Application Codes and finds CodeAccessSecurityAttribute 2.Compiler Create the Attribute Object and set properties 3.Compiler invoke the Object's CreatePermission Method,get a Permission object returned then set properties then return it to Compiler. 4.Compiler then Invoke the Permission object's ToXml method and Get a SecurityElement returned. 5.finally, Compiler ...Show All
Visual Studio VSS and MSVS2005
Halo all. I have a small nucance going here. I had VS 6 with VSS6C I then Installed VS2005 Beta 2 and it installed VSS2005 so both VSS versions looked at the same VSS DB and all worked OK. BUT one of my 2003 projects that was in VSS6 did not connect propperly to 2005 Beta 2, this is 2005 thought it WAS in some source control BUT it could not connect and do checkin/out the project. I have Un installed 2005 Beta 2 and Installed 2005 Pre Release. The same problem, 2005 Pre saw it was in Source Control but could not connect or check in/out the project. I still have the project in VSS and do not want to RE add it to VSS and loose my history. Is ...Show All
.NET Development How do we restrict 3rd party access to an assembly's functionality?
We are writing a dll we would like to use for multiple applications. We do not however want a third party to access and use it's functionality. We have discovered a few exciting items that seemed to be the direction we were looking for; StrongNameIdentityPermissionAttribute InternalsVisibleToAttribute These items would let us view internal methods across assemblies or specify which assembly could use a given public method. We have since learned however that these can be disabled/removed using ILDASM and are back to the drawing board. How can we create an assembly that we can access from our applications and restrict other appl ...Show All
Windows Forms AppUpdater component remove microsoft office program short cut
I used the AppUpdater component to develop our auto-update windows client application. It worked great. If you have not read the article, here it is: http://windowsforms.net/articles/appupdater.aspx However, I just found when I uninstalled the windows client application, it removed microsoft office program short cut and ms visual studio.net short cut. I am not sure if that&nb ...Show All
Visual Studio Team System Debugging unit tests running on ASP.NET Development Server
Hi, we're having issues while attempting to debug our unit tests for ASP.NET apps, i.e., there is no support for automatic debugging in VS2005. The current msdn documentation on the subject has been deemed incorrect, with forthcoming amendments posted here: http://blogs.msdn.com/vstsue/articles/556002.aspx#DebuggingOnIIS The procedure for IIS works, but after following the steps for Cassini to the letter, i still cannot get the debugger to attach. the Break() is ignored in the unit test, and the Debug dialog never appears. However, another post suggested using this as a workaround: System.Threading.Thread.Sleep(10 * 1000) - givin ...Show All
Visual Basic unbound text boxex and dates
I am writting a small VB6 system to track employee check-in and check-out times and dates. The entry form uses unbound text boxes. I have gotten most everything to work except the dates. 1) how do I use an unbound text box to capture a date input by the user, use it to compare to date fields in an MSAccess table (date fields) and to write to the MSAccess table I keep getting type mismatch. 2) how do I put an input mask on the text box to format the entry with "/" as it's being entered Any help would be appreciated. Bill C wrote: I am writting a small VB6 system to track employee check-in and check-out times and dates. The ...Show All
Visual Studio suppressing section question
I have two page header sections and a subreport in the details section. What I want to do if the subreport goes over several pages is showing header section a on every page, but only showing header section b on the first page. How do I suppress header b based on the page of the subreport I am not able to figure it out in the designer. I actually found a solution just putting header section b into the details section. As long as there are only one "section" that depends on the page of the subreport that will work. ...Show All
Windows Forms We ship web sites and also .net clients that consume webservices from that shipped web site.
I'd like to get a check on our current ClickOnce line of thinking... We ship web sites and also .net clients that consume webservices from that shipped web site as a package. Unfortunately, we do not know what the URLs to shipped sites will be until installation. We need to run as a full trust app and be signed. Method A: If we what the clickonce deployment to live on the particular instance of the shipped site, I believe we need to some how update the .application file and then sign it with our private publisher-key. Since the private key can not leave our building, I presume the only way is to rebuild the .application fi ...Show All
Visual Studio Creating A SubReport
Can you point me in the direction of how to create and populate a SubReport Why does the footer not display at the bottom of the page You can see the VB version here: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=13691 ...Show All
Windows Forms App Settings & configurations
Hi, I am new to windows development and I was wondering, what would be the best way to save an application settings without being accessible to app users. I thought of XML config file but this defeat it being "hidden". Will embedded resources file do the job I hope so but how :) I was reading about resx files and found out it's d ...Show All
Visual C# Chinese words in DataGrid
Hi, I use a DataGrid to display data drawn from a database. And I set CurrentCulture = new CultureInfo( "zh-CN", true ); CurrentUICulture = new CultureInfo( "zh-CHS", true ); But, I changed some field data as chinese words, then called command 'update' to update the database, the field in DataGrid changed to show instead of the input Chinese words. I checked the database, it also has data . How to solve this problem. sizhen Probably this might provide a solution for you, Please let me know once you find the right answer for this. http://www.codeproject.com/aspnet/Local ...Show All
Visual Studio Team System Recommended setup and hardware requirements?
Reading my question please note, that I haven't yet received Beta 2 and consequently haven't read the documentation included in Beta 2. Problem: We would like to establish a test environment with the Team System Foundation Server that is as similar to the final production environment as possible. I have searched the web for descriptions of the recommended setup and hardware requirements and the closest I got to answers is the following links: http://msdn.microsoft.com/chats/transcripts/vstudio/050223_vstf.aspx (search for "requirement") http://blogs.msdn.com/brianwh/archive/category/7742.aspx ...Show All
