haihtomy's Q&A profile
Smart Device Development Problem when serializing messages to be sent over the net
Hi all, I'm developing few .NET client/server applications that all use the same model of communication - it sends and receives messages using Sockets. When I serialize/deserialize the message I'm using the BinaryFormatter class. Now I need to build my app so that it is executable on Pocket PC. My first problem was that Compact framework 2.0 SP1 does not contain BinaryFormatter. I was looking for any other serializer-class feasible in the CF and have found only XmlSerializer. So I'm using this class. My actual problem with the XmlSerializer is that it does not serialize my object automatically - I mean that I have always to add the XmlInclude attribute. My class structure is like this: [XmlInclude(typeof(NetMessageBase))] ...Show All
Windows Forms why invoke IComponentChangeService.OnComponentChanging method did not work?
hi all. i now create a custom designer for my custom component Type. and the designer implement IRootDesigner , IToolboxUser.. when i modify the component properties then invoke IComponentChangeService.OnComponentChanging method ,but it did not work why? please help me... thanks. my code like below... MyComponentBase _com = this.Component as MyComponentBase; _com.Names.Add(new Class1(tool.DisplayName)); IComponentChangeService _icc = (IComponentChangeService) this.m_component.Site.GetService(typeof(IComponentChangeService)); _icc.OnComponentChanging(this.m_component, TypeDescriptor.GetProperties(this.m_component)["Names"]); Matt Lin wrote: yes. the desig ...Show All
SQL Server Multi-Valued Parameters
Hi: I have this page, it is runing fine for single value parameter. Now I am trying to pass multiple values from that parameter and to do so I checked mark the multivalued box for that report parameter. But, I am not able output any of the selected Items...please explain in detail. Thanks, Rohit I tried that but it didn't work. I am still getting the same name repeated, also non of the charts and tables repeat either. The only thing that repeat is the text box where I have the name of the parameter. Can you show me how can I get the charts and tables and every thing in the list to repeat also I also have this hidden parameter which gives me the selected parameter. When I clicked on the multi value f ...Show All
Visual Studio EXECUTE permission denied on object 'sp_sdidebug', database 'master', owner 'dbo'.
Debugging asp.net application gives a strange error Hello - When i try to debug asp.net application (Framework 2.0) a strange error is logged in the eventviewer. EXECUTE permission denied on object 'sp_sdidebug', database 'master', owner 'dbo'. And I ensured that the Enable Sql Debugging flag is unchecked in the project properties Can anyone please help how to get rid of this error. Thanks- Shyam It appears the user you are using to contact the database with does not have execute permissions to the sp_sdidebub stored procedure in the SQL database. Here is instructions to grant permission: SQL 2005: http://msdn2.microsoft.c ...Show All
SQL Server SQLEVN70.rll error
When I boot my system , I get the message that my sqlserver installation is either tampered or corrupt. As a result when I try to restore my system to previous checkpoint I am not able to do so. Please let me know solution for this. I tried installing and uninstalling but that did not work....this is very very imp...please respond ASAP Hi Amitkumar, I'm assuming you are trying to install SQL Server 2005 RTM version, correct Which SKU are you trying to install Enterprise, Developer, SQL Express Is this an upgrade from a SQL Server 2000 installation If so which is your current SQL2K version and sku Which OS are you using WinXP, Win2k or Win2k3 server Would you also please attach the setup log files They are usual ...Show All
Visual Basic How do I format user input (1 shows up as 001)
I need to know how to convert numerical data so it always shows up in the format of 001,002, 003, 004, etc. when a user enters 1, 2, 3, 4, etc. Using VB.NET 2003, how do I write the code to convert it like this Thanks. Private Sub Textbox1_Validating (...) Handles Textbox1.Validating if IsNumeric(Textbox1.Text) Then Textbox1.Text = Textbox1.Text.PadLeft(3,"0") else Msgbox("Please enter a number.") e.Cancel = True End If End Sub ...Show All
Visual Studio Team System Linking to a work item inside team explorer
I need to create a link that when clicked, will bring up a specific work item inside Team Explorer. I'd like this to happen whether or not Visual Studio is running. I've done a little bit of preliminary work, and it seems feasible with the VSIP linking code. Can anyone provide insight Is this do-able Thanks, Jonathan Cran jcran@iastate.edu Are you talking about having a web url, clicking on which opens VS TE and shows a specific workitem We do not have protocol handler for this yet and is not possible in V1. You can open a query though by giving a path to a ".wiq" file. There is no equivalent for workitem like wiq file in V1. One option is to create a wiq file with a query that says "id = <id-number ...Show All
Smart Device Development "project creation failed" in vs2005 & WM5.0 SDK
can't create smart device projects, while native win32 projects are ok. when i press ok button in the New Project dialog, the windows disappered and quickly went back, and there is a "Creating project <name>... project creation failed" msg in the status bar. i searched the forum and found this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=277896&SiteID=1&PageID=0 there were two users( kidjan and Alpha W ) encountered the same question. repair the WM5SDK didn't help, any solution i tried delete the whole CoreCon dir, didn't help anyway i reinstalled windows and got that prob solved while reinstall vs didn't help. ...Show All
Visual C++ HEAP: Free Heap block modified after it was freed
hello everyone, i came across this problem: HEAP[core.exe]: HEAP: Free Heap block 3af2a8 modified at 3af2d0 after it was freed Windows has triggered a breakpoint in core.exe. This may be due to a corruption of the heap, and indicates a bug in core.exe or any of the DLLs it has loaded. the problematic line is new Log(....); the Log is a class i defined. i maintain a std::vector as a history log to keep a record of every step. also i maintain a bool type variable to enable the user to choose wether or not to keep records. so the code is something like this: class Log { ... } std::vector<Log *> history; bool keepRecord=false; void record(Log *theLog) { if(keepRecord) { history.push_back(theLog) ...Show All
Visual Basic updating data grid connect to ms access database.
I have a ms access database with a table consisting of the fields user_id and password. i have a datagrid binded with this information that is displayed in a vbform. i have added an "add" button. when i press this i want the new data entered in the datagrid to be updated in the msaccess database as well as the datagrid. so far i have the following code: Dim connStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source = C:\Documents and Settings\Owner\My Documents\Telephone.mdb" Dim con As New OleDb.OleDbConnection(connStr) con.Open() Dim objcommand2 As SqlCommand = New SqlCommand objcommand2.CommandText = "INSERT INTO Users" & _ "(User_ID, ...Show All
SQL Server Report Manager not responding
Hi, I'm hoping to get some help here. I've spend countless hours trying to get Reporting Services running without success. When I run the Report Manager it does not respond. Coming up with Opening page http://localhost/reports/Pages/Folder.aspx . . . The progress bar ticks along but the page never actually loads. The Configuration tool shows green icons everywhere. No errors in the Event viewer. I am running Windows XP Professional with SP2. I have uninstalled and re-installed IIS, ASP.NET and SQL2005 numerous times. Varying the order, all without success. What else is involved I have loaded Service Pack 1 and the latest hotfixes. What else can I try Thanks in advance, Claude Some further ...Show All
Visual Studio Team System Filtering work item with a data range and returning the date as part of the datasets fields simultaneously
Hi, I'm able to filter based on a date range. The problem is that I can't find a way to add the Date dimension to the list of column returned by the dataset. In other words, I want to return a list of work item that is filtered based on a "from date" and "to date" and have the date of each work item records in the returned list. Here is the query I am using (sorry I am pretty new to MDX...): SELECT NON EMPTY { [Measures].[Current Work Item Count] } ON COLUMNS, NON EMPTY {( (StrToMember(@StartDateParam):StrToMember(@EndDateParam)), [Work Item].[System_Id].[System_Id].ALLMEMBERS * [Work Item].[System_Title].[System_Title].ALLMEMBERS * [Area].[Area Path].[Area Path].ALLMEMBERS * [Work Item].[System_ ...Show All
Windows Forms Generic Bootstrapper - SQL Express Named Instance
I'm using the bootstrapper to install a named instance of SQL Express as a prerequisite. If SQL Express is installed on the computer but my instance isn't, the bootstrapper will bypass the installation of my named instance. 1. Is there a way of passing an argument to the SqlExpressChk.exe to look for the named instance instead of any SQL Express installation 2. Is there a better way of accomplishing my installation goal Thanks, Wayne I'm pretty sure he's correct. I have one possible idea... I don't know what happens if you run SQLExpress installer with command line arguments for an existing instance... if you know what that exit code is you could edit the Exit Codes section for that exit code and ...Show All
.NET Development Can someone explain what happens when you run query?
If I use a data table and use its select method it does an in memory select. If I have a query in c# with parameters and then use execute nonquery what happens Is it slow I guess I dont know anything about what it does behind the scenes. ...Show All
SQL Server Groups: keep together -> can't find it
Hello there. I've got a little problem. I'm deploying reports in RS. I also have to rebuild old CrystalReports-Rreports in RS. 90 % of them are using a "keep together" function. I've read a lot in forums that there must be similar function in RS. I also found descriptions where this property should be, but there isn't. For report-developing I used (RS2000 with VB.NET2003) and (RS2005 with VB.NET2005). Neither of them have this property for table/report. Do I have to install a ServicePack Any other ideas Thanks, Tobi I am having the same problem basically because SSRS does not have a "Keep Together" functionality. I am trying to devise a way to simulate this as it is in Crystal. BJ ...Show All
