Dario Galvani's Q&A profile
SQL Server SQLAgent2005 not starting
I installed SQL 2005 successfully but sqlagent is not starting, giving the following error: SQLServerAgent could not be started (reason: Error creating a new session). And in the agent log I see the following error. Message [298] SQLServer Error: 208, Invalid object name 'msdb.dbo.syssessions'. [SQLSTATE 42S02] Can anybody give any ideas how to solve this Thanks... If you fisrt stop the SQL Server (MSSQLSERVER) service and then start SQL Server Agent (MSSQLSERVER) service it will work just fine. ...Show All
Windows Forms How to add custom pre-requisites to ClickOnce ?
How can I add new items to the list of pre-requisites shown in dialog from the ClickOnce properties Prerequisites button Guy These two links should have the information you are looking for. http://msdn.microsoft.com/msdnmag/issues/04/10/Bootstrapper/ http://www.gotdotnet.com/workspaces/workspace.aspx id=ddb4f08c-7d7c-4f44-a009-ea19fc812545 ...Show All
Visual Studio Team System Error 32000
Hi All, I keep on getting error 32000 when installing foundation server. what could be wrong The exe causing the exe is SetupWarehouse.exe. Any ideas Rudi I am also getting error 32000 while installing team foundation server beta 2. This is the detailed error: [10/26/05,06:37:53] vs70uimgr: DisplayMessage_START:Error 32000.The Commandline '"D:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\sdk\bin\tfsadaminst.exe" /install HOME-CIYPZXT178 2420 TFGSS HOME-CIYPZXT178\Administrator' returned non-zero value: 1. ...Show All
Visual C++ How to write two nested classes extend the other parent class each other
Hello. I tried to convert the following C# code into C++/CLI. namespace ConsoleApplication { class Class1 { public class NestedClass1 : Class2 { } public class NestedClass2 : Class2.NestedClass2 { } } class Class2 { public class NestedClass1 : Class1 { } public class NestedClass2 : Class1.NestedClass1 { } } } At first, I supposed the following code, but it was failed to compile. Anyone know how to write it namespace ConsoleApplication { extern ref class Class1; extern ref class Class2; extern ref class Class1::NestedClass ...Show All
.NET Development How to download a file over HTTP
Hello, How do i download a file over HTTP from my Windows form app., and how do i use a progress bar to determine how many bytes left..... thanks alot in advance Take a look at the WebClient or HttpWebRequest objects: http://msdn2.microsoft.com/en-us/library/system.net.webclient.webclient.aspx http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.httpwebrequest.aspx To handle progress change notifications see the progress changed events on the Web Client class. This post has the exact code you are looking for: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=94501& ...Show All
Windows Forms Does anyone know where I can get the last stable build of the Terrarium Setup for v1.0 that worked?
Does anyone know where I can get the last stable build of the Terrarium Setup for v1.0 that worked I wanted to start building in my own sandboxes locally but obviously with the overflow error thats a little impossible. If some one has the latest build before the upgrade to v1.1 I would love to get my hands on it. Thanks. Sent th ...Show All
Visual C# The display of "Create a C# Console Application"
I copied the codes of Create a C# Console Application but the result dose not dis[lay in the dos window, it shows in a little window called "fast control platform" (in Chinese version). Why Can you try "running" the program, instead of "debugging" it Ctrl+F5 instead of F5 ...Show All
Visual Studio Express Editions Preventing updating database with empty string
Hope you're not fed up with me yet! My next problem is this. I'm adding records to my database but I noticed that if I don't enter data on the form the database is still updated with empty strings. I have put NULLS NOT ALLOWED flags on the fields that should have data but this allows empty strings. How can I check to make sure that the textboxes text contain none empty string before they pass the values on Does that make sense Thanks Ron, I had thought about that but I thought maybe there was a AND/OR way instead of the IF/ELSE IF I shall follow your example and try it out ...Show All
Visual Studio 2008 (Pre-release) Exception
While trying to learn about PeerChannel I came across Kevin Ransom's blog. When I try to run the example he posts here http://blogs.msdn.com/kevin_ransom/archive/2005/09/14/466534.aspx I get a SocketException that says "Unknown error (0x2ced)" Server stack trace: at System.ServiceModel.AsyncResult.End(AsyncResult asyncResult) at System.ServiceModel.Channels.PeerNodeImplementation.SimpleStateManager.OperationBase.End(IAsyncResult result) at System.ServiceModel.Channels.PeerNodeImplementation.SimpleStateManager.EndOpen(IAsyncResult result) at System.ServiceModel.Channels.PeerNodeImplementat ...Show All
Visual C++ lnk 2019 error
hey guys, i was wrapping a native dll inside a managed c++ dll. i was compiling to test how i was going, and it got a weird lnk error. it is the following: error lnk2019 : unresolved external symbol _main referenced in function _mainCRTStartup. so how am i suppose to solve this issue imusing the VS 2003. thx and the way i experienced until now, in order to load or make an object from native dll in managed C++, u have to put __nogc before the managed class that will wrap the native, right but by putting __nogc this also means that the class isnt managed, so C# not seeing its contents might be abit obviou ...Show All
SQL Server Sending Data from SQL 2005 to and from C# code
Hi Background: I am a post-graduate student developing a model of the way HIV/AIDS spreads in communities. The data sets I am using are large (eg census data - 50m records) and the manipulation is complex (eg deciding which individuals will begin a sexual partnership, and with whom). Problem : I need to process a table of data in code written in C# that will insert the results which are also a table of data into a table in the database. In the example set up below, a table with rows comprising an Integer and a Real is the input. The output is a table where each row also comprises an Integer and a Real. Each row of input, say (Inti, ...Show All
Visual Studio Team System Associating data with a test - selected records
Is there a way to select what rows are used on a data driven test I made the mistake of connecting to a table witn 10,000 records! Yes, you should be able to use a view for data-driven unit tests. With SQL Server 2005, at least (I tried this on the Express edition), views should appear in the dropdown for the Data Table Name property (they may actually appear twice, due to a known bug, but both copies will work). If you don't see them there for some reason, you can also just type in the name of a view as the tableName argument to the DataSource attribute. A view specified there should be treated the same as a table. ...Show All
.NET Development Autogenerated .NET WSDL files
Hi, Here's my concern. I have wrote several classes that I share between two different webservices. Some of the public properties are used in one webservice but not the other. But the autogenerated .NET WSDL files of both the webservices list the properties(private variables) that I am not using and don't want users to see. Is there a way to prevent showing un used properties(private variables) on the WSDL file. Any help in this regard will be highly appreciated. ...Show All
Smart Device Development Cradle emulator
Can anyone tell me how to cradle Windows Mobile 5.0 Pocket PC Emulator please Inside VS.NET 2005, I go to Tool->Device Emulator Manager->(Right click on the emulator)->Cradle, nothing happened. I am using ActiveSync 4.1. Any responses are appreciated. In the activesync connection settings, check the "Allow connections to one of the following" checkbox and select from the combo-box below that "DMA". Then try to cradle emulator from Device Emulator manager. Hope this helps. -Thanks, Mohit ...Show All
Windows Forms Listbox refresh problem
Hi all, I have a wierd problem with listbox refrsh event. I've created panel contains 2 listboxes: first contains all available items taken from database , second contains desired items user choose. Data taken from database stored in ArrayLists. The main idea that user chooses one item from available list clicks button and item moves from available ListBox to de ...Show All
