Raoul_BennetH's Q&A profile
Visual Studio 2008 (Pre-release) EDM and ASP.NET
Hi I am really new to EDM. How can I use it in ASP.NET App After installing vNext August CTP I didn't get ASP.NET vNext Project Templete only Windows and Console. So how can I use it 10x You should have a sample under <install drive>:\Program Files\Microsoft SDKs\ADO.NET vNext CTP\Samples\<language>\WebAppSample that shows how to use the Entity Framework in ASP.NET. This sample shows how to create an assembly (NorthwindLib.dll) that contains your Entity types and add that to your ASP.NET Web project. The sample then shows how to work with product, product details, and categories as Entities from an ASP.NET page or a Web service. -Lance ...Show All
Software Development for Windows Vista Regarding IE6 and Vista RC2
Hi, It would be a big help if you answer the following questions. Is IE6 working in windows vista RC2 Can we have IE7 and IE6 parallely in single Windows Vista OS system Thanks in Advance. Regards, Rajasekaran P ...Show All
SQL Server New SQL 2005 instance using 2000 engine?
Hello, I installed SQL 2005 Standard on the same server (2K3) with SQL 2000. My named instance I installed is coming up with "Version 8.00.2039" in the Server Management Studio and will not let me restore a database back-up I made on a 2005 development workstation (I'm assuming it's because it's trying to use the 2000 engine instead of the 2005). Is there a way I can force this instance to use the 2005 engine rather than the 2000 Thanks, Steve SQL 2005 will not use the 2000 engine. It sounds like your connecting to the wrong instance, try running select @@VERSION you should see something like : Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37 Copyright (c) 1988-2005 Microsoft Corpor ...Show All
Smart Device Development Questions regarding the Virtual Network Switch Driver
Hello All, I am running 2 WinXP Pro computers on a seperate test network. I know the following: 1) The firewall is off on both. 2) Both computers have static IPs configured. 3) Both computers can ping each other. 4) Start a WinCE 5.0 device emulator and configure it's network settings. 5) I can ping the host WinXP from the device emulator and vice versa. 6) I can't ping from the device emulator on the first computer to the second computer. Any ideas on what I can do differently Thanks in advance for any help :) Bob Hanson The fact that you are able to establish a connection to and from the emulator tells you that the network connectivity of the emulator via the virtual switch driver is working properl ...Show All
Visual Studio Team System Checkin changes on behalf of another user
I cannot seem to be able to checkin pending changes performed by another user (schan)using the tf following command: tf checkin /author:schan $/Adventureworks/TPOnline/VBProjects/test.frm /login:mchan,mchan TF keeps coming back with the following: There are no pending changes. No files checked in. But there are pending changes and I have administrative permission and should have permission to checkin other users' changes. I have successfully undo other users' changes. Is there something else I need to do In order to checkin someone else's pending changes you need to have access to the files that have changed. Where are you doing this checkin from Are you doing it from mchan's machine or an ...Show All
Internet Explorer Development Open a new window that has no toolbars etc. when clicking a button on my own IE extension toolbar?
I'm porting a firefox toolbar to IE and I'm having trouble with the following: Creating a new window that has no toolbar When the user click a button on my toolbar, say when viewing www.live.com, I would like to bring up a new html window that contains information about the page, and allows the user to post comments etc. The toolbars and menubar should not be visible. I've tried a couple of approaches: - overlay window using IFrames (which are pretty much useless since IE7 came out) - execScript with showModalDialog (the popup blocker prevents this!!!) - parentWindow.open on IWebBrowser2::Document (again, the popup blocker prevents this!!!) - Navigate2 of IWebBrowser2 (no control over the toolbars etc.) ...Show All
SQL Server Naming Excel Sheets
I have a report with multiple tables that I am rendering in Excel. Each table has a page break. The Excel output has multiple sheets as intended. However, the sheet tabs are labeled "Sheet 1", "Sheet 2" etc. I would like to put my own labels on those tabs to describe the table that is on that sheet. Is there any property I can set to do this By the way, I am running the reports as a console application in VB .NET 2005. So there may be some VB trick for doing this as well. Any idea when this feature might make it into the product One of the first questions users ask me is whether they can get meaningful names on the sheet tabs instead of the "Sheet1, Sheet2...& ...Show All
Visual C# Random in recursive function
Hey, This sucks, I have a recursive function that creates the random class and calls its Next method for every call. Problem: Random doesn't actally generates random numbers. My code looks like this private string getChildrenTree(string fileTitle)\ { string _return = ""; string[] children= dataAccess(fileTitle); string something = "child" + new Random().Next() if (string.Length >0) { _return ="something"; foreach(string child in children) _return = getChildrenTree(child[ i ]) } return _return; } Well, you'd need to do the same thing again - keep hold of a single instance of FastRandom and repeatedly call Next on that, i ...Show All
.NET Development CLR profiler - StringCollection
Hi I have profiled one of my apps using the CLR profiler and it seems to indicate that a StringCollection was converted to an ArrayList which was in turn converted to an object array which then got converted to strings. Why does it behave so.. Does the StringCollection use an arraylist internally Thanks Well, if performance is a concern and you don't need to add/remove strings you can use a string array. Or, if add/remove is needed and you are using .NET 2.0 then it is better to use List<string> instead of StringCollection. ...Show All
SQL Server How to pass results of a SQL FOR XML query to an XML Task?
How do I pass the results of a sql 'FOR XML' query to an XML Task I tried using a user variable of type string. In my Exec SQL Task on the General tab I set the ResultType to XML. Then on the Result Set tab I map it (Result 0) to my user variable (string). Then in the XML Task I use that variable as the Source. However, it fails in the Exec Sql Task with error "End tag 'CustomJob Field' does not match the start tag 'CustomJobField' It looks like some extraneous chars are getting inserted into my tags I also tried setting the ResultType to SingleRow but that failed with error: "The type of the value being assigned to variable "User::ForXmlResult" differs from the current variable type. Variables may not change type during ex ...Show All
Software Development for Windows Vista DefineDosDevice and Windows Explorer
Hi all, I am attempting to use the API call DefineDosDevice (within Vista, obviously) and the call seems to work fine with the exception that my newly defined device does not show up in Windows Explorer like it does when called in Win2k or WinXP. When I enumerate the drives, it appears in the list. When I open a folder browse window to choose a save location it also shows the defined device in the list of available drives (it also allows me to format said device/drive). Is there something extra I need to do in Vista to make the newly defined device (which is defined as h:\) appear within Windows Explorer Any help would be greatly appreciated. Regards, Daniel After poking around a bit on the newsgroups I came acros ...Show All
Smart Device Development LineGetCallStatus?
Hi Theres, I have send lots of Post on the topic but still didnot get any replly so please take a look personaly. I think i have simple prob. whenever i call a number at this time i just want to know at present the status of the phone where i did call. Status means; its busy. its out of range. its switch off. others. actualy fot it i get a function name is LineGetCallStatus. but i dont have any idea to use it. where r u, life is calling u. Rajat Well, this could take a little bit long... You need to convert all needed structures to VB.NET. I'm not very familiar with VB, so I can't help you there. Best thing is to search in this forum for TAPI, at least for C# a wrapper for the TAPI-functions exists. ...Show All
SQL Server VS 2005 Report Designer
Somethings seems to have happened to my toolbox items. Under Report Items they all say "Toolbox". How can I correct this Thanks, Trish I did that. It didn't work. I also tried to "repair" Visual Studio and that didn't work. I've tried to do an add/remove programs/change on SQL SERVER 2005 and it says that I have to reboot due to a previous installation. I've rebooted several times and it keeps saying the same thing. HELP. I have a report I need to do. ...Show All
Visual Basic How do I add a flash movie/game into the form?
Hi, this is probibly a very obvious question but how do I add a flash game into the form I have just started to use visual basic express edition so please, an english response, not technical jargon. Thanks! IT WORKS ! but in bad way.. that i was looking for better as i see a lot say it worked but i just didn't get it how.. what i do is...... in v.s 2003 i add this com. & give it url to swf existing in the application then i take the html from the source and put it in the html in v.s2005 but remember to add the swf file in the project in v.s 2005 like i added it in v.s 2003.. then i works... but i needed to add the component in the toolbox like other controls.. will u tell m ...Show All
Visual Studio Express Editions on my button click i am getting an error
on my button1 click i am getting the error System.Security.SecurityException was unhandled Message="Request failed." Source="ShapeModel" StackTrace: at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet ...Show All
