|
Hope someone can help me configure TaskVisionWS locally so I can access the web service using Pocket TaskVision.
I have TaskVisionWS setup here on a Windows 2000 Server. The web services (DataAccess and Login) all compile without any errors. From my WindowsXP development pc, I add the Login Web Reference to PocketVision and compile. I get zero errors. But after I add the DataAccess Web Reference, I get 30 errors. Here are just a few:
C:\Program Files\.NET Compact Framework Samples\Pocket TaskVision Sample\Source\CS\PocketClient\Web References\DataAccess\Reference.cs(170): The type or namespace name 'Serializable' could not be found (are you missing a using directive or an assembly reference?)
C:\Program Files\.NET Compact Framework Samples\Pocket TaskVision Sample\Source\CS\PocketClient\Web References\DataAccess\Reference.cs(1480): The type or namespace name 'DesignerSerializationVisibilityAttribute' does not exist in the class or namespace 'System.ComponentModel' (are you missing an assembly reference?)
And here is a sample of the offending code from Reference.cs:
[System.ComponentModel.Browsable(false)] [System.ComponentModel.DesignerSerializationVisibilityAttribute (System.ComponentModel.DesignerSerializationVisibility.Content)] public ProjectHistoryDataTable ProjectHistory { get { return this.tableProjectHistory; } }
The development pc where Pocket TaskVision is being compiled is Visual Studio 2003 Ent. The server where TaskVisionWS is installed is Windows 2000 Server with .Net Framework 1.1.
If I add the DataAccess Web Reference to a Windows Forms project, it compiles fine. It is only when I add it to a PocketPC app that I get the barrage of errors.
I created a new web service called Test.asmx and slowly began adding code. After each compile, I tried adding the web reference to PocketVision. The errors began the moment I added a web method which returned a serializable dataset:
<WebMethod(Description:="Returns a project DataSet containing exactly one table named 'Projects'.")> _ Public Function GetProjects(ByVal ticket As String) As DataSetProjects If Not IsTicketValid(ticket, False) Then Return Nothing
Dim ds As New DataSetProjects() daProjects.Fill(ds, "Projects")
Return ds End Function
TaskVision is a great example and exactly the technology I need right now. Hope you can help. |