Bern McCarty's Q&A profile
Visual Studio Express Editions VB Express 2005 Build a Program Weather Tracker
I publish the Weather Tracker application. When I double-click the setup.exe, it start the installation. It fails with the error message "Weather Tacker.exe has a different computed hashthan specified in the manifest" How do I resolve Try this: IN VS2005 in your soultion explorer window 1> click "Properties" a new window will open 2> click signing on the left tab row 3> then place a check in the box that says "click once manifest" 4> then click the "create test certificate button" 5> then rebuild your project 6> then publish it. I dont know why this works but its the only way I can get my apps published in VS2005. I neve ...Show All
SQL Server Appropriate Data Type
I want to save some serialized data in a SQL Server 2005 table. What is the appropriate field type for this I won't be associating a schema with the data. The data could vary in length--even up to several MB. I'm not sure whether to use text, NVARChar(MAX) or XML. Brian Brian, A couple of SQL Server 2005 MSDN aritcles talk about when to use XML and some of the best practices. Some relevant ones are " XML Best Practices for Microsoft SQL Server 2005 "; " XML Options in Microsoft SQL Server 2005 "; " Performance Optimizations for the XML Data Type in SQL Server 2005 ". In short XML is very useful 1) when you want schema validation (may not apply to your case); 2 ...Show All
Visual Studio Tools for Office Buffering for MS Word
Hi All, 1. im writing a application in which i'm hoocking the API of MS Word & using my method for Save As of MS Word. In Save As i'm trying to buffer the data in _WriteFile API & my buffer size is 64 kb. Till 64 kb im buffering the data in buffer & then write it into file. If _WriteFile function is getting data more than 64 kb then im old buffer & then new buffer. Buffering is right but im getting the error "the save failed due to out of memory of disk space (FilePath\Filename.doc)" If im not using buffer then its working perfectly. 2.There server & client based application. User opens the file on server side from client side. Now user wants to save the file on client side(after changing the ...Show All
Visual Studio 2008 (Pre-release) Transform a WCF contract to a xml message
Hi, I have a entity which is decorated with WCF DataContractAttribute to make it serializable. By marking the class and methods with this attribute serialisation is done automatically. Now my situation is I need to serialise the entity to xml and then post the xml to a MSMQ queue. Is it possible Thanks Sai Thanks for your reply. Is it possible to directly get a converted xml string instead of creating a xml file and then loading it. I want to create something like a ToString. So when I get the particular data contract to my utility it will give me the xml representation of it aka kind of textual representation of XML ...Show All
Visual C# Not finding a web proxy class that should be auto-generated
I'm having difficulty running my web app. It was working correctly, but I had to move the project files around. After moving them, I added the web site and service back into the project. My service works perfectly but my site can't seem to find the class UserService.UserService (which I believe is auto generated by my web reference). I tried removing the web reference, closing VS, opening and cleaning the solution, closing, then adding it back in and deploying - but no luck. The disco, discomap, and wsdl files are added to the project correctly. Here is the exact error message C:\philipd\Visual Studio 2005\Projects\...\Global.asax(5,5): error CS0246: The type or namespace name 'UserService' could not be found (are you missing a using direc ...Show All
Visual C++ The com component problem when upgrading from vc6 to vc2005?
When I upgrading a vc6.0 project into vc2005, there is the following error:" Error 31 error C2039: 'BorderEffect' : is not a member of '_Chart' d: etrumform.cpp 1034 ". The code is as follows: _ChartPtr pChart; pChart->BorderEffect = BorderEffect_None; I check the definition of _ChartPtr as follows: typedef _com_ptr_t<_chart>_ChartPtr; I think that it is a com component here, can you tell me how should I solve this problem I appreciate your help. I'm a bit rusty at this COM business, so bear with me. The tlh file is a result of importing a type library and generating corresponding a header file that can be used against your C++ code. Since debug and release builds can differ, that's a ...Show All
Visual Basic ShellExecute() question...
Hello. I'm trying to use shellexecute() to open a directory... This is the code portion having to do with it... Option Explicit On Private Const SW_NORMAL = 1 Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim FOLDER As String = My.Computer.FileSystem.SpecialDirectories.MyDocuments ShellExecute( Me.hwnd , "open", FOLDER, vbNullString, vbNullString, SW_NORMAL) End Sub error BC30456: 'hwnd' is not a membe ...Show All
Visual Studio Express Editions Update
Hi everyone I have built an application that is published via vb 2005 x and I connected the .mdf file to sql express 2005 but the infoemation in my application will not show in sql 2005x. I try to check the check box in the edit datasource with designer but the check box will not retain the check in the check box. Anyone have any ideas Thank you in advance. David (newb) Public Class Form1 Private Sub SYSIDBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.Validate() Me.SYSIDBindingSource.EndEdit() Me.SYSIDTableAdapter.Update(Me.PcDataSet1.SYSID) End Sub Sub CreateDataSet() Dim ds As New DataSet AddTable(ds) ' ' The message box displ ...Show All
Software Development for Windows Vista Beta2_2 set_up needed
Dear sir Please give the URL for the Workflow beta2_2 set up vijil Here is a link to where you can download and install Workflow Foundation and VS.NET Extensions for Beta 2.2: http://www.microsoft.com/downloads/details.aspx familyid=5c080096-f3a0-4ce4-8830-1489d0215877&displaylang=en Thanks, Steve Danielson [Microsoft] This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Visual Studio 2008 (Pre-release) Multiples Services in the same Host
I am using netTcpBinding and I need to have multiple EndPoints from different services. but without having to use a different host for each one. A possible solution is having mi services inherited by multiple interfaces like: // Define a service contract. [ ServiceContract (Namespace= "http://Microsoft.ServiceModel.Samples" )] public interface ICalculator { [ OperationContract ] double Add( double n1, double n2); } // Define a second service contract. [ ServiceContract (Namespace = "http://Microsoft.ServiceModel.Samples" , SessionMode= SessionMode .Required)] public interface ICalculatorSession { void SubtractFrom( double n); } // ...Show All
Visual Studio Express Editions object reference?
i typed this: (dno if it works yet tho, was just trying it out) object Timo = Database1DataSet .Tables[1].Rows[1].ItemArray[2]; in a buttonclick event but there is an error that says: An object reference is required for the nonstatic field, method, or property Test.Database1DataSet.Tables.get what is an object reference thx in advance Assuming that Database1DataSet is a class (and if the IDE is showing it in a different color, it most probably is), you would do something like this: Database1DataSet myInstance = new Database1DataSet(); A bit of theory here, to let you understand it better: Classes are a mean to create custom data types that are not already in the language. When you ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Custom Content Manager - Generics Question
Greetings & Salutations: I am trying to put together my own kind of "Content Manager" as the current one appears to only work with content that has been added to the project, and not with say, a file on a network drive somewhere. I really like how the "XNA ContentManager" uses generics, and was trying to implement it myself, but encountered some errors. I looked on the net but couldn't find the answer I was looking for. Basically, I would like to be able to fetch any kind of asset from my own content manager, regardless of what it is . The following function does not work as it is written. Could someone point out the proper way something like this is supposed to be implemented (PS. The content is stored in dicti ...Show All
Visual Studio Team System Serialization Exception
When my unit test is completing, I get the following exception: Unit Test Adapter threw exception: System.Runtime.Serialization.SerializationException: Type 'System.Net.NetworkCredential' in Assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.. My code does instantiate a NetworkCredential class - if I remove that code, all is OK. I'd appreciate any thoughts on this one. Thanks, Scott. Hi Scott, Try adding the property [Serializable] to your class, that should make it. Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
SQL Server Problems With SQL 2005 SP1 (x64)
Hi, After installing SP1 onto our SQL x64 2005 box (running Server 2003 x64 R2), I have come across two problems. The first is that the install seems to fail for database services (and I see I'm not the only one), declaring the following: Hi I had the same problem and found the solution in KB 918695 "The problem occurs because the master database file is not in the same location as the Resource database file for the instance of SQL Server 2005 on which you install SQL Server 2005 SP1. You may have previously moved the master database from its originally installed location. When you move the master database, you must make sure that the master and Resource database files are located in the same folder. If you only ...Show All
SharePoint Products and Technologies Re-Parenting
I have a SharePoint Services v3 site collection that needs to be re-parented. I keep finding that this is a feature but can't find where you would actually preform the re-parenting. Is this a SharePoint Designer task To me it's also not clear enough what you would like to do. Do you need to move the whole site collection under another existing site collection Moving sites within a site collection is possible in SharePoint Designer as well as via the interface in MOSS. Could you give more details on what you require ...Show All
