Ryn's Q&A profile
Visual C# Windows Service will not run on Windows 2003 Server
Hi, I have developed a Windows Service that installs and runs fine on my XP (Pro) machine. When I install and try to run it on a Windows 2003 Server machine, it installs but does not run . Here is the eventlog entry: EventType clr20r3, P1 MyService.exe, P2 1.0.0.0, P3 452baa7e, P4 system.windows.forms, P5 2.0.0.0, P6 4333aefa, P7 3d21, P8 ee, P9 system.invalidoperationexception, P10 NIL. May I also add that there are no references to System.Windows.Forms in my service. Any help is much appreciated. You might still be referencing System.Windows.Forms indirectly. For instance, Microsoft.VisualBasic does reference System.Windows.Forms (for Interaction.MsgBox, among others, I guess). HTH --mc ...Show All
Visual Basic Clean Up Question
Hello- I am a relatively novice developer with more of a question then a problem. Does anyone know of a tool, utility or code that I can use to make sure that when I close my form(s) / application that any instances of classes and such that were created are being cleaned up quickly and efficiently I just want to make sure I am ‘cleaning up after myself’ correctly and effectively! Thanks- Tony Wissler Hi, I believe Application.Exit() does it all for you from whichever FORM you call it from, it closes down the lot. I presume it does it cleanly. Check your memory usage with a memory monitor type of utility, if you have one. Regards, S_DS ...Show All
Visual Studio Express Editions View source code!!!
Hey, how can i view the source code on a webbrowser ok. 1) did you navigate to a webpage first in the webbrowser Me.theWebBrowserControl.Navigate(" http://www.microsoft.com ") 2) did you do this to display the code in a textbox after the page was loaded Me.theTextBox.Text = Me.theWebBrowserControl.DocumentText remember, you have to wait until the contents of the webpage have been loaded in order for you to view the source/code of that site otherwise you will get nothing, as you currently maybe experiencing. Select the webbrowser control in designer view. View the events (lightning icon in the properties window) and double click "documentCompleted" to create the document completed event so it will ...Show All
Visual Studio Express Editions Ressource editing is not supported...
Hello, New to MS Visual Studio 2005 Express, I was trying to migrate an application made with MS VS 2003 Pro .NET. After installing MS SDK express edition and modifiing the properties of my projects, everything ran fine, I was able to build and run my application. But, I needed to modify something in the .RC file, and was surprised to see a message: "Ressource editing is not supported on the Visual C++ Express SKU" What I can do is there any option to turn on, or any additional software/package/plugin to install Or do I need to upgrade this Express version to a non-Free version Thank you in advance for your answers, Thierry ROBIN PS: for those who asked themselves why such a need, it's because I'd like to co ...Show All
Visual C++ Using floats with % and ^ operators
Why does MC++ .NET 2005 return and error when I try to compile and I use a float type varaible with the % and ^ operators Example: float temp, result; temp = 2.5; result = temp % 1; result = 2^temp; With both of these lines I get an error saying that the type float is not allowed with those operators. I have found a work around for the first but I can not mathmatically figure out one for the second problem. Is there some sort of patch to fix this Yes, these operators only work on integral types. The floating point alternative for '%' is fmod(). There is no alternative for the XOR operator, it just doesn't make sense; you can't do anything reasonable with the fractional part. Best ...Show All
SQL Server Reading value of a Windows variable in a SQL script?
MS SQL Server 2000 Hello Everyone, I am executing a SQL script from a Windows batch program using isqlw.exe as: rem - test.bat set SCRIPTS=C:\Scripts set TMP=C:\Temp isqlw.exe -S dbserver -E -i %SCRIPTS%\test.sql -o %TMP%\test.tmp -FA Is it possible to read the value of the SCRIPTS or the TMP variable inside test.sql Thanks for any suggestions. You can download SQLCMD and use it. In it you can access SQL variables using $(variable): http://www.microsoft.com/downloads/details.aspx familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en But I don't think you can do this interactively. ...Show All
SQL Server question of Insert method,need help!!
Hi, i am using vs2005 and microsoft SQL server mobile edition (.NET Framework Data Provider for SQL Server CE) to develop an application for wm5.0 pocket pc in language C# and now, i'm facing a problem on how to insert a new data into .sdf file with TableAdapter example, i have a combo box and a button (known as AddButton) on my form1.cs, when i click the button, all the data from combo box will automatic insert into a database. How to write the codes for this i tried for a few methods to wrote it and it seems do not work.Does anybody know how to write it Thank you. This excellent article should get you up to speed on starting C# and SQL CE development: http://msdn2.microsoft.com/en-us/library/bb219483.aspx ...Show All
Visual C# Generics in C# - new() cnstraint
Hello... I am trying to play a bit with the generics feature of the .Net 2.0 Framework and I ran into this "Problem" I try to create a Singelton Base-Class, which will create an instance of itself if the instance is accessed. Since I want to create an Instance of <T> inside my generic Base, I need to supply a new() contraint to <T>. This "forces" me to create a public constructor, since that what new() means. I think the scope of new should not be "public" but "protected". Protected would allow me to hide the constructor from the outside world, but it would still allow the creation of the class inside the baseclass. Since I am not able to do this, a direct creation of my Bas ...Show All
Visual C# Converting Double To Integer
Anyone know how to convert double to integer Thanks, Rob I was a little confused about what you meant by "real/true," since the direct cast also converts it to a real integer. From MSDN, it seems that Convert.ToInt32 rounds to the nearest even number when it converts, as opposed to the truncating behavior of casting to int. Personally, I have used the direct cast much more often, in the few situations where conversion is required. ...Show All
Visual C++ AVI Video file
My video file have 2 channel language sound, does C++ can only play one of the channel or drop 1 of the channel Need expert help and explaination how to done it. thanks This question is off-topic for this forum, which focuses on usage of the Visual Studio IDE. Multimedia related questions can be asked in the following MSDN discussion group: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.mmedia&lang=en&cr=US ...Show All
Visual Basic Where is refactor?
Where do I download the free version of Refactor I followed the link in the msdn video, but the download is not available. Jeremy Same behavior here. Is the partnership over between Ms and DevExpress.... If anyonw as a working link, it would be nice to post it. Ciao ...Show All
Smart Device Development strange problems,platform manager server failed
when I compile apps using palm-size pc 1.2 sdk,I always saw a error dialogbox that stated "platform manager server failed".I just reinstall the sdk and several times later it went wrong again.what happend I am sorry this forum is meant for questions related to Device Emulator. Moving this to Smart Devices General where it has got better chances of being answered. -Thanks, Mohit ...Show All
Visual Studio 2008 (Pre-release) Redistributable size
Hi everyone out there. Are there plans for a WPF-only redistributable download I would like the users of my app to be able to download the smallest possible package and the current 30MB of the whole .NET 3.0 story seems sort of bulky. Thx in advance, Alan While I agree that it would be a pretty nice thing for download and installation sizes... such a feature would be like asking for a 2.0 framework that only includes... ASP.NET support for instance. I know it’s big (just like the previous versions)... but it’s also complete, and that is one of the great advantages of the .NET frameworks... every installation of X.Y is just like every other installation of the same version as it reduces the differences ...Show All
SharePoint Products and Technologies No Please Help-Server Farm Configuration Not Complete
I have installed Sharepoint 2007 (advanced), with Sql server 2005 on separate server. Upon completion when go to Central Administration, I get 'Server Farm Configuration Not Complete' on top left corner, click on Admin tasks, get the following:- Administrator Tasks 1 READ FIRST - Click this link for deployment instructions Not Started 1 Initial deployment: Add servers to farm Not Started 1 Initial deployment: Assign services to servers Not Started 1 Configure server farm's shared services Not Started Farm Topology Server Services Running BACSPS02 Central Administration Windows SharePoint Services Help Search Windows SharePoint Services Incoming E-Mail Windows SharePoint Services Web Application BACSQL03 Windows SharePoint Services Dat ...Show All
SQL Server PackageStart/End Events
Just finishing of a large ETL system and have aquestion about the following:- We have 164 child packages being called from a single parent package which is setup to perform logging to a SQL Server table. Anything that Errors or has Warnings is logged accordingly, however, how do you trap the PackageStart and PackageEnd events when the child package knows nothing about logging My first thought was to have the Parent call the AddEvent SP with the appropriate values, but thought I may check here in case I missed something Then I'm stumped! The parent logs its 'PackageStart' , it the executes the 'Execute Package' Task a number of times all packages execute normally and bubble up any Errors or Warnings to the parent. The only th ...Show All
