João S. B.'s Q&A profile
Windows Forms getting error when running install for windows service
I'm writing a C# windows service and I created an installer using Visual Studio 2005. But when I run the installer it gives me the following error message: "Unable to get installer types in the C:\service.exe assembly. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information." I added all the Dlls the service uses to the Primary Output in the setup and they are all contained within the same directory as the service. Any ideas Global Assembly Cache. A place where assemblies can be places which should be "findable" by all other assemblies and which might get special security treatment, as their installation is an administrative task - ...Show All
.NET Development Not showing command prompt window on a system() call
Is it possible to not show the command shell while executing a command line executable using the system() call Why doesnt this work - ProcessStartInfo ^myproc = gcnew ProcessStartInfo(); myproc->FileName = "diskpart.exe" ; myproc->Arguments = "/s disk.txt > diskout.txt" ; myproc->WindowStyle = ProcessWindowStyle::Hidden; myproc->UseShellExecute = true ; Process::Start(myproc); The output file diskout.txt doesnt get created. Something is not right.... ...Show All
.NET Development Porting from saxon
Hi, First off...I am very new to xslt, and I am really just doing an investigation here to determine which XSLT transfor object we are going to use in a client application we are going to be writing (think client). We already have a web application that uses xslt to transform xml files that contain data gathered in a lab. That web app uses saxon, perhaps partially due to the fact that saxon implementents XSLT 2.0. Regardless, since I am going to be interested in displaying the same data (in an environment where we don't necessarily have access to this web application) using the xml files and xslt templates, it would be nice If I could get away with modifying these as little as possible. I have already found out that the element xsl:f ...Show All
SQL Server Initialize Subscription Failing
When I create a subscription for a Publication I am receiving the following error: Concurrent snapshot for publication <Name> is not available because it has not been fully generated or the Log Reader Agent is not running to activate it. The snapshot has completed, and I have recreated the snapshot multiple times. The Log Reader is running without apparent problems, but continue to receive this error message. Does anyone have any ideas why this error is occurring Looks like the logreader agent is not activating the snapshot for some reasons, you may want to try the following: 1) Does logread.exe show up in task manager at the distributor You may want to check when was the last time the logreader agent log a history mes ...Show All
Windows Live Developer Forums I released a native SDK for MSN Messenger and Windows Live Messenger.
It's powerful if you want to write a MSN Robot by yourself. It's a Delphi VCL component now. I would like to convert it to other language if you like. Best regards! ...Show All
SQL Server ForEachLoop and Object-Variable
Hi there! I want to use a ForEachLoop. I've an object variable what i fill before going into the ForEachLoop. It contains 4 columns and in my testscenario it has two rows. In the ForEachLoop i want to set the current row values to 4 package variables (within package scope). So i set the Enumerater as "Foreach-ADO-Enumerator", the Ado-source-variable is my objectvariable (what contains the recordset), and the enumerator-configuration i set to "rows in all tables" ("rows in the first table" works with equal result). The variable-mapping looks like that: Mypackvar1 - Index 0 Mypackvar2 - Index 1 Mypackvar3 &nbs ...Show All
Visual Basic Problem to registered a component
Hello, I need someones help to register a component - TwainContolX in visual studio 2005. After i installed the component, add it to the project and drag the icon to my application form, I gut this message : "Faild to imprt ActiveX control, Please ensure it is properly registered" There is anyone who know how to fix this problem I even registered it with the command line "Regsvr32 twaincontolx.ocx", and nothing .... Thank u for your help. What is this product - normally 3rd party components are registered as part of an setup/installer package. This handles everything and wouldnt require you to do anything except add the reference to the component in the proje ...Show All
Visual J# setup program +NET 2 +Microsoft Visual J# Version 2.0 Redistributable Package
Hi, I am having a small problem, when creating a setup you can specify that setup program will actually download and install.NET framework and J# redistributable prior to installing an application. However, while installing .NET 2 Framework it fails to install redist. for J#. I believe it says it is unavailable or something like that and redirects IE to J# page. Any suggestions If you don't have VS.NET 2005 installed and internet connectivity in the machine where you are going to consume Setup.msi or Setup.exe then go for publishing your application. Say you have one windows application - WinApp1 Go to properties of WinApp1 project and click on Publish (last on left pan ...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
Software Development for Windows Vista Regarding CompositeActivityValidator
Hi All, Can anybody please provide an example for using CompositeActivityValidator Regards, Chakri. You can find examples on custom activities and validators over here: http://wf.netfx3.com/files/folders/control_flow/default.aspx Foreach activity has a composit activity validator. Here is the link to the CompositeActivityValidator api: http://msdn2.microsoft.com/en-us/library/system.workflow.componentmodel.compiler.compositeactivityvalidator.aspx You can also find some starters information here: http://msdn2.microsoft.com/en-us/library/system.workflow.componentmodel.compiler.compositeactivityvalidator.aspx Hope this helps Elif ...Show All
Visual Studio 2008 (Pre-release) Requiring parameters in messages
If I have an operation like: int AddIntegers(int int1, int in2), it seems like I can invoke this message by sending a message that does not have the int2 parameter, i.e. a message that looks like: <soap:Envelope><soap:Body><int1>2</int1></soap:Body></soap:Envelope>. WCF will assign the default value to int2 (= 0) and it will work as if nothing was wrong. What is the best way to make parameters required I find it strange that parameters are optional by default and not required. I know that the DataMemberAttribute has a IsRequired property, but how do I make the method parameters themselves required I was hoping to do something like: [OperationContract(RequireParameters = true)] int AddIntegers ...Show All
Software Development for Windows Vista Invoke another workflow
Hi, I know it is possible to invoke a workflow from another workflow. But is it possible to invoke a custom Sharepoint Workflow from a "normal" workflow Thanks Thomas Maybe the context would help better answer this, but from what I understand, the SP Workflows have to run on the SP server, because it's tied in to all the SP assemblies etc., so theoretically, you should be able to invoke a new SP workflow from a "normal" workflow, so long as it executes on the SP Server. ...Show All
Software Development for Windows Vista Security Shield "Unidentified Publisher"
After searching everyplace I could think of, this is the last hope. When installing my application on Vista (every version so far) I get a dialog box that pops up stating "An unidentified program wants access to your computer". On this dialog box, it states "Unidentified Publisher". I don't mind the "...program wants access to your computer" part. I just want to try and switch the "Unidentified Publisher" to state my companies name. Does anyone know how this is done Is it done by the installer software, or is this what "digital signing" is supposed to handle If it is done by the installer software, does anyone know which installers currently support this I currently have acces ...Show All
SQL Server ODBC Driver for SQLServer Everywhere/Compact from Access
So far I've been unable to connect to a test SQLServer Everywhere/Compact database with MS Access. I installed the new SQLServer 2005 Native Client to no avail. Has anyone done this You can only connect to an instance of a SQL Server 2005 Mobile Edition database when it is running on a Windows CE-based OS or Tablet PC (you can create a SQL Server 2005 Mobile database in Visual Studio and, I believe, SQL Server Management Studio as part of the development process). When SQL Server Everywhere becomes available, it should, as you've surmised, fit your needs. In the meantime, you can check out the development experience using SQL Mobile today...take a look at http://msdn.microsoft.com/library/default.asp url=/ ...Show All
Visual Basic Problem with msgbox
I have a problem in VB.Net with the msgbox function. When it runs, it does not always display. Sometimes it just pops onto the taskbar, but and I have to click it to get it to display. The msgbox is coded as follows: Dim Reply As Integer Dim style As MsgBoxStyle style = MsgBoxStyle.YesNo Or MsgBoxStyle.Question Or MsgBoxStyle.DefaultButton2 Reply = MsgBox( "You have made changes to this record, do want to save them " , style, "Cancel" ) If Reply = vbYes Then SaveRecord() End If This is a Web based project Hi Can any one help me I have developed web applications that uses msgbox, when I run the application from server side under the VS2005 it ru ...Show All
