New-Bee's Q&A profile
.NET Development .ASMX page design view
I got a WebServices project on VS2005, modified the generated class name from Service1 to Service, run it and got the following error: Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not create type 'CabWebService.Service1'. Source Error: Line 1: Source File: /Service.asmx Line: 1 I need need to view the .ASMX page to change the class above to 'CLASS="CabWebService.Service", on 'design view' I got a blank page on 'view code'I got the .cs display. How can I change the above line in .ASMX page Thanks, Ben ...Show All
.NET Development Linking to libraries not in GAC or application directory
I'm writing an application that needs to link to assemblies that another application has in its application directory. I know anyone installing my application will have this application, so having the binaries isn't an issue. I can't install into the application's directory, and I can't package the assemblies with my app (copyright) nor can I copy them into my app's directory on installation (the assemblies may be updated by the other app after installation). Is there any practical way I can link to them, short of having a bootstrap program that starts up a new appdomain, loads in the assemblies, and loads my actual library into it Just deploy your app with its own copies of the assemblies. If that violat ...Show All
Visual C++ load and time
dears i need an axample how to get time and how to load numbers from file in the disk i found this in the help but it is not printing #include <stdio.h> #include <dos.h> int main(void) { struct time t; gettime(&t); printf("The current time is: %2d:%02d:%02d.%02d\n", t.ti_hour, t.ti_min, t.ti_sec, t.ti_hund); return 0; } i replace printf by cout then the statment is printed but the time no pls help thanks the time still not printed , only " the current time is" i want to see the time, i think they are empty , what is the problem thanks ...Show All
Visual Studio Slow loading Guidance Navigator
Has anyone run into an issue with a project taking for ever to load when using Guidance Packages (like Web Service Factory). I have a project that sites on the Guidance Navigator for ever (30+ minutes). I recreated the project and loaded in seconds ... then i went in and enabled the Web Services Factory (ASMX) & the DATA ACCESS the Guidance Navigator opens starts loading and never comes back. This issue is a killer ... any ideas on what to look for Tanks, I close all items and now the project load fast! My problem was Visual Studio Source Control and Guidance Navigator ...Show All
Visual Studio Express Editions How to get Serial number on usb flash drive
I am unable to get the serial number on usb flash drives. I'm using vC#.net, but I don't know what to use for get it. I need your help, please! Thanks all..! I actually tried with WMI just now and for my flash USB disk there was no serial number, apperently some USB flash drives do have them, some don't. Give this a shot: //import the System.Management namespace at the top in your "using" statement. Then in a method, or on a button click: ManagementObjectSearch theSearcher = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive WHERE InterfaceType='USB'"); foreach (ManagementObject currentObject in theSearcher.Get()) { ManagementObject theSerialNumberObjectQ ...Show All
Visual Studio 2008 (Pre-release) Relationships with payloads
I know that at the moment there is no support for relationships that carry their own payloads, but I was wondering if there was something I could do perhaps with views or with the entity model to give me the same functionality without resorting to a simple 1:1 mapping between my objects and my tables. Basically my schema works like this: table A : field, field, field, etc table B: field, field, field, etc. relationship_table: A_ID, B_ID, UserID, DateTime So, I basically have table A, table B, and a relationship table that contains a mapping between table A and table B, as well as the user that created the mapping and when that user created the mapping. The use cases for my application almost always involve filtering the content ...Show All
Visual Studio Team System More Continuous Integration problems
I need to have my team builds which run on CI to build higher level applications if a lower level framework component is changed. For example, I have a framework Component and I have an application which has a binary reference to this framework component. If the framework component is changed, I would like this to be built. I would also like the application which has a binary reference (and any others which do) to be built. Is there a way which I can do this You didn't specify how your CI build was being kicked off, whether through some custom web service notified by the TFS app tier or through some other mechanism like CruiseControl.Net. In my case, each dev team has a CI process running. The team t ...Show All
SQL Server Fresh SQL 2000 to SP4 gives error
Hi, I'm trying to Service Pack 4 a fresh installation of SQL 2000 (a named instance called 'SQLSERVER2000') and get the error "Installation of the Microsoft Full-Text Search Engine package failed. (-2147467259) 0x80004005 Unspecified Error" towards the end of the process thus I cannot service Pack my fresh installation of SQL 2000. I have done this many times before on other machines, but its not working for me this time. At http://www.dbforums.com/ ( http://www.dbforums.com/showthread.php t=1198047 ) someone ran into this problem and mentioned to re-install Microsoft Full-Text Search. I have followed the article http://support.microsoft.com/kb/827449 but run into problems at step 2C. At step 2C it says to start the Microso ...Show All
Visual Studio Express Editions How do I delete changes
I pasted code into a project from a web site and could not compile it. When I could not resolve all of the errors I closed the solution without saving anything. But when I re-opened the project, there was the new code I did not want. I tried the undo button but its buffer ran out before the removal was complete. How do I exit without saving Well, I guess that's good to know. But it can be more than a little inconvienient. After I do a compile, is there any way to go back to where I was Are all the files of a solution kept within the one solution directory The significance is that if I copy the entire solution directory to somewhere else I could restore it with no ill effects. Maybe I out to just try that. Thanks for taking ...Show All
.NET Development [C#] shell extension : IContextMenu.GetCommandString
i am looking into the SDK\v1.1\Technologies\Interop\Applications\ShellCmd which come with VS.Net 2003 (guess, me copy it somewhere from internet) the sample work well except the IContextMenu.GetCommandString, it should show the description on the Explorer statusbar, but it not. me have try to add MessageBox.Show() to check whether it have fired or not, and it fire when me rollover the menuitem. me running Windows XP SP2 is there any idea to make it work :: code copy from the sample :: void IContextMenu.GetCommandString(int idCmd, uint uFlags, int pwReserved, StringBuilder commandString, int cchMax) { switch(uFlags) { case (uint)GCS.VERB: commandString = new StringBuilder(m_items[idCmd - 1].command.Substring(1, cchMax - 1)); ...Show All
Visual Studio Express Editions String question
I know this is a stupid question but I can not find the answer. Visual Basic 2005 Code: Replace(ARR(1), *********, "") ********* is the string I need to replace. The problem is that the string that needs replacing is ". A single double quote. I have tried everything from " ' " ' " to ' " ' " ' " ' to " ' " " " ' " and nothing has worked. I am reading in Strings from a .txt file and am needing to change the strings to Integers. The problem is that each string is saved like "90000". I need to replace the quotes with a NULL value or a space before my Val(Arr(1)) will work. What is the correct quote configuration to make it search for the string " and replace ...Show All
Visual Studio Express Editions Webbrowser Progress bar
can someone please point me to some code that will trigger a progress bar when a webbrowser control is navigating and return to 0 when complete. Thanks Trucker. It worked great. But the progressbar moves too fast. I found this code http://www.vbforums.com/showthread.php t=390724 and amended it to work with vb2005e. Hope you find it useful. Private Sub WebBrowser1_ProgressChanged( ByVal sender As Object , ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged ToolStripProgressBar1.Visible = True Dim p, d, t As Integer d = e.CurrentProgress t = e.MaximumProgress If d <= 0 Then ToolStripProgressB ...Show All
Visual Studio Express Editions entering down line
how can i enter down line while writing in a multilined textbox and how can i execute a program Hi, 1) If you want to start a new line in a textbox use the AppendText method after a NewLine or use VbCrLf Textbox1.Text = "Hello" & vbCrLf Textbox1.AppendText("world!") If you put this line at the top of your code window >> ImportsVisualBasic.ControlChars Microsoft. ' you can use the keyword NewLine instead like this >> Textbox1.Text = "Hello" & NewLine Textbox1.AppendText("world!") Textbox1.Text = "Hello" ' on it's own will always overwrite the textbox. Textbox1.AppendText("world!") ' always use AppendText to add any text to a text box. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh animation with directX (c#)
Hi, that makes one week that I try to animate tiny.x in a window without result using c#. I looked on many forums and i just found pple who are in the same situation as me...The SimpleAnimation example in the directX SDK is helpless, I get an Direct3DXException when I try to insert the code wich handle what I need from the SimpleAnimation example. i have an Exception somewhere here : // Use ConvertToBlendedMesh to generate a drawable mesh MeshData data = mesh.MeshData; data.Mesh = mesh.SkinInformation.ConvertToIndexedBlendedMesh(data.Mesh, flags, mesh.GetAdjacencyStream(), mesh.NumberPaletteEntries, out influences, out bones); and then if I click to continue here : // Now load the mesh hierarchy rootF ...Show All
.NET Development How to add a file as a value in an xml?
I need an xml structure where filedata is a valu of an element. How do I build it I use C# with Visual Studio 2005 It is not clear to me what you want to achieve. Do you want to embed binary data from a file (e.g. JPEG graphic) in an XML document Then you need to encode the binary data, .NET supports binhex encoding and base64 encoding, see the XmlWriter methods WriteBinHex and WriteBase64 . ...Show All
