P.Johansson's Q&A profile
SQL Server ODBC connection failed, but...
Running a database using sql server. User, rights, password set up on the server side and is functioning fine on the users normal desktop. But here is the problem. When the user goes to a different desktop they have never been on before and a new user profile is created on that desktop, they are unable to access the database. When using the front end (access), an odbc connection failure popup occurs when trying to retrieve data. The wierd part is that the odbc connection was set up under admin tools just like it is setup on the working desktop. Also the connection tests successfully. This leads me to believe that it is a desktop side problem and not server side. It is only a problem when a new user profile is setup on a desktop that the us ...Show All
Windows Forms VS 2005 Setup for deploying SSIS Packages
I need to deploy some SSIS packages onto a remote Integration Server machine. Hence I wrote a VS 2005 Setup with Custom Action (C# Installer class) which uses the SSIS DTSX Dlls to deploy the Packages onto an Integration Server. I am shipping all the necessary DLLs in the MSI itself, so that the MSI can run on any client machine having just .NET 2.0 Framework installed. When I run the Setup on a Machine having Integration Server, the Setup works fine and the Packages are deployed. However, if I try to run the MSI on a machine which just has the .NET 2.0 Framework installed, I get the following error. SqlServer.DTS.Runtime.Application could not be created. Retrieving the COM class factory for component with CLSID { ...Show All
Visual Studio 2008 (Pre-release) Call mysteriously hanging
Hello, I'm calling a WCF service method from my client using the net.tcp binding and the client just hangs until a timeout exception is raised. At which point the client terminates and the service then receives the call and seems to process this perfectly normally. The method is correctly defined in the contract and was bizarrely was working OK a day or so ago and I'm at a loss to explain what has changed in the meantime. All other methods on the contract are called fine and there are no timeout issues. The mystery deepens when looking at the message traces. The client receives a SecurityVerifiedMessage and then sends a SecurityAppliedMessage to the service method as expected, however the server receives no message until more than a ...Show All
Visual Studio 2008 (Pre-release) Modify response XML element name using XmlSerializer
Hello, I have a WCF service that returns types using the XmlSerializer (i needed to use XSD to generate types for an exisiting complicated schema). When I define the contract as such: [ ServiceContract ] public class MyService { [OperationContract] [XmlSerializerFormat] public MyOutType DoSomething(MyInType in) } The SOAP Messages (inside the envelope) look like: Request: <MyInType>....</MyInType> Response: <DoSomethingResponse><MyOutTypeResponse>...</MyOutTypeResponse></DoSomethingResponse> I want the response to look like: <MyOutType>...</MyOutType> or at least: <DoSomethingResponse><MyOutType>...</MyOutType></DoSomethingResponse> ...Show All
Visual Studio VB .NET 2005 Solution Files + CVS
Hi, Im trying to import our new VS 2005 projects(ASP.NET 2.0 & VB) into WinCVS. Im having trouble though with checking the project out and then trying to open it. The problem comes from the fact that the solution files have the directories hard-coded into it. Is there a workaround for this I want to be able to put the project on CVS and then allow for other people to check the project out into a directory of their choice. Is this possible Any suggestions/workarounds Thank you. Eric Seidel Thanks for the reply. My folder structure is as follows: H: \food_menu.net\ - aspx pages accessible by intranet users \food_menu.net\Admin - pages accessible by admin only \food_menu.net\MemberPages ...Show All
Visual Studio 2008 (Pre-release) Is there something like RenderTargetXaml?
I'm writing an application that puts the user through a long workflow setting up a large model with many complicated parameters. This application will be generating a report, most likely in xaml based format, and I would like to copy the state of the configuration controls to the report in a vectorized format. So a function like the RenderTargetBitmap but with xaml encoder would be good. I've looked at : System.Windows.Markup. XamlWriter .Save but this saves refereces to my custom controls in the file, which isn't what I want. Any suggestions Have you thought about taking your output (not necessarily your application, just the meaningful output), and rendering it inside a FlowDocument When ...Show All
Visual Studio 2008 (Pre-release) Can't assign MenuItem's icon property using setter. Get Error!
Can someone tell me why this doesn't work <MenuItem.ItemContainerStyle> <Style TargetType="{x:Type MenuItem}"> <Setter Property="Header" Value="{Binding XPath=@Title }" /> <Setter Property="Icon"> <Setter.Value> <Image Source="{Binding XPath=@IconSrc}"/ > </Setter.Value> </Setter> </Style> </MenuItem.ItemContainerStyle> I get the following error... {System.Windows.Markup.XamlParseException: Cannot add content of type 'System.Windows.Controls.Image' to an object of type 'System.Object'. Error at object 'System.Windows.Controls.Image' in markup file 'M ...Show All
Software Development for Windows Vista will there ever be a release for the XOML schema?
i did a search and it seemed that it the schema was not finalized for beta 1. but is there one now if not do you plan on ever releasing one thanks! At one point there was a Xoml editor view for code beside workflows. That feature was cut and there was no longer a need for the schema the feature was cut. One problem with using a schema for activities is that it will only include the one that come with the framework. You need update it to include any custom activity written by you or from an other sources. There has been some customer requests for this, like yours, but at this point there are no plans for releasing a schema. However, if at some point a schema was release be assuted that a posting ...Show All
Software Development for Windows Vista Expanded Memory in Vista for DOS Applications
A DOS application which requires expanded memory (EMS) is required to be run on Vista. In earlier releases the expanded memory could be set to auto using the command.com->properties->memory tab. Vista does not allow to change this settings due to security reasons. Is there a way of increasing the expanded memory to allow a huge DOS application to run in the Vista environment Regarding Vista 64 bit: 16-bit applications, 32-bit installers, and 32-bit kernel mode drivers are not supported by the kernel. DOS apps are 16-bit I don't have access to Command.com on my Vista 64 installation. Matt, its a good thing we have different installations. Matt you may want to use this article as good starting poin ...Show All
Visual C# Generate XML Schema dynamically
Hi all, Does anyone had any idea of how to generate xml schema dynamically \ If there is any relevant examples, please direct me to the link. Thanks What do you want to generate it from If you have a dataset, for instance, you could simply obtain an XML schema representation by doing: myDataSet.GetXmlSchema(); ...Show All
Visual Studio 2008 (Pre-release) Getting list of all dependency/attached properties of an Object
In Visual Studio, in the XAML view when we add a element tag say <Rectangle...> and hit the spacebar, we get a list of all the attached properties and dependency properties of the object. (For e.g. Canvas.Left). How can this be achieved through procedural code I tried using Reflection (on a Rectangle object in above case) but it did not help. Thanks, Niranjan you can try something like this Type t = typeof ( Button ); while (t != null ) { FieldInfo [] fs = t.GetFields(); System.Diagnostics. Debug .WriteLine(t.ToString()); for ( int i = 0; i < fs.Length; i++) System.Diagnostics. Debug .WriteLine( "\t" + fs .Name ); t = ...Show All
Visual C++ Unable to use Edit and Continue feature
hi, Iam working with VS2005 Pro and want to use the Edit and continue feature but iam not able to do so. I followed the steps in the msdn but failed, any help would be great. thanks & regards, srikanth. hi, Thanks for the reply, iam trying to use the normal mfc app, but iam getting some problems. some of my friends are able to edit and continue in managed applications also:( and onemore thing- In my mfc view class i declard a thread fun(UINT Fun(LPVOID)) this i want to assign to a pointer to the member and pass it to the AfxBeginThread(..). is it possible I could assign it to the pointer to the member, but when i pass the pointer to menber to the AfxBeginThread - it says -none of the 2 ...Show All
Visual Studio 2008 (Pre-release) Advice on sdk, WPF, Tool Versions requested (The Battle of the WPF Versions)
I'm having a hard time getting tools installed for WPF. In order to get the most recent version of Orcas installed, I had to back my installed WPF version off to the Sept. CTP version. I *think* that Expression runs (or is available for) either Setp. CTP or RC1. But now, I desperately need to get the RC2 SDK installed (for no other reason than that I need to see if the IIS 7.0 docs have been updated). I may have totally missed something. But, as far as I can make out, Orcas is still tied to the Sept. CTP. Here's the absolute minimum that I'm willing to live with: - Syntax-guided editing of XAML in XAML view in VS 2005 (auto-completion, and validation). (Orcas in visual mode rarely works for me because I'm using customized controls a ...Show All
Visual C# Stuck on ShowDialog
I'm getting some strange behavior in a program that I'm developing. When I call a .ShowDialog() on one of the windows that I have as a child window it will frequently (about 1/3 of the time) get stuck somewhere between the .ShowDialog() call and the Load() for the form. What is going on between those two points and what can I do to fix my code so it stops doing this Thanks, Jebrew Be a little more specific about what your code is doing. Are you passing in parameters to the form, do you have any loops that are possibly infinite loops. What is in your constructor Use a breakpoint on the .ShowDialog() and hit F11 to see what is happening. ...Show All
Visual Basic Unregistering HoyKeys
I have a question about unregistering a hotkey from a listener application. If I don't unregister a hotkey will this be stuck in windows so I do not need a listener application (meaning I can execute the application without a lister application) I have an unregister hot key sub listed below. What I want to do is execute an application based on a hotkey without a listener application. Is this possible Thanks Again! ' unregister a global hotkey Sub UnregisterGlobalHotKey() If Me .hotkeyID <> 0 Then UnregisterHotKey( Me .Handle, hotkeyID) ' clean up the atom list GlobalDeleteAtom(hotkeyID) hotkeyID = 0 End If End Sub Oh, come on. ...Show All
