|
And people in Hell want ice water!
Try searching Google[^] first.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi there,
I am having a problem (sure-stopper) referencing a web service method exposed via COM+ 1.5 default SOAP service from VS.NET 2003 project IF either the return or byref parameters of the method contains DATASET type.
The error returned when referencing via vs.net 2003's Add WebReference is:-
-------------------------------------------------
d:\ComPlusWs\Tester\Web References\Goober\Reference.map(1): Custom tool error: Unable to import WebService/Schema. Unable to import binding 'Class1Binding' from namespace 'http://schemas.microsoft.com/clr/nsassem/ComPlusWs/ComPlusWs%2C%20Version%3D1.0.1890.25047%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db416c1d7cba26960'. Unable to import operation 'HelloWorld'. The datatype 'DataSet' is missing.
-------------------------------------------------
I am using VS.NET 2003 via VB.NET, i have tried on both Windows XP SP2 and windows 2003 server.
To re-generate the problem:-
1. create a vs.net 2003 library project called TestLibrary
2. Reference System.EnterpriseServices Imports System.EnterpriseServices. Inherits ServicedComponent for the class. Create a public function with at least one byref parameter or return value as DataSet.
3. Sign the project with Strong-Key
4. build the project and make sure it's successful.
5. Fire up vs.net cmd prompt, go to project's BIN directory
6. TYPE "gacutil /i testlibrary.dll" ENTER
7. TYPE "regsvcs testlibrary.dll" ENTER
8. Fire up Component Services
9. Fire up the property page of TestLibrary
10. go to Activation Tab, check "Server's Application", check "Run Application as NT Service"
11. Check "Uses Soap", provide a name for the virtual directory to host the Web Services (eg. MyTestVD, will then appear as http://localhost/MyTestVD). Disable security checking if u have problem
12. Save and applied all settings.
13. Now, create a vs.net 2003 Windows Application project as a Caller for the Web Service.
14. add web reference by pointing to the address http://localhost/MyTestVD/default.aspx
15. then click on the link appear on the page found by "Add Web Reference" page.
16. once u see the address is suffixed with ?WSDL, you may then add the reference to the project.
17. Similar ERROR as described above will appear.
Why does it behave this way? i suspect the WSDL engine used by COM+ 1.5 is different from the one incorporated by VS.NET 2003? Please kindly suggest the turn around for this problem. Thanks!!!
Best Regards,
Derek Tan
|
|
|
|
|
Hi,
My problem is as below:
I have a windows service viz. MyService it has a class MyServiceClass
It is controlled via a Snap-in MySnapinConsole using DCOM and it uses the CreateObject() to create an instance of the MyServiceClass.
Now I need to run multiple instance of this service on the same machine i.e. I want create Multiple Instance of the MyServiceClass and also
control each instance of the class using the respective Snap-in "MySnapinConsole".
Can anyone help me out with how to go about working on the above.
I also need to know as to how I could use the Namespace concept in VB 6.0
I know some of you have the right solution to my problem.
What you CANnot VISUALIZE you CANnot ACHIEVE.
|
|
|
|
|
As this is the first time I'm using the Webbrowser control, there's a lot I don't know. It is an instance of IE within VB app - is it ? So I beleive everything applicable/available to IE applies to the webbrowser control ? And IE is required to be installed - is it ? What if Opera or Firefox is the primary browser ?
So fundamentally, the question comes to what is the relationship between IE (or any browser on the system) and the Webbrowser control ? Dependencies ?
|
|
|
|
|
Can anyone explain to me how to display the current month. I have an applicatuion that I want to display the month but I don't want the month's number.
I have tried these line of code:
Label1.text = System.DateTime.Today.Month.ToString
and I have also tried
Label1.text = MonthName(3) But the problem with this is that it doesn't update when the month change. I would the my code to refect when the month changes just like it does for the days of the week and year.
Can anyone please help me...
Thanks cPod....
|
|
|
|
|
Not sure if I understand you correctly but if Im right you just have to combine your two statements:
<br />
Label1.Text = MonthName(DateTime.Today.Month)<br />
|
|
|
|
|
Hey Robert thanks a lot man. I thought I had tried that but I guess I didn't...
Thanks again....
Thanks cPod....
|
|
|
|
|
Install Framwork for Net 1.1 and my applications runs, however I cannot run my crystall reports.
I checked the help text and looked under deploying w/crystal reports. Told me to add a new project and do some addmerges, etc. However, that didn't work either.
When I try and run the crystal reports it says that it's trying to find some run.dll's.
Does anyone know how to deplosy or install where it will pick up the objects that are needed for crystal?
|
|
|
|
|
hi.. i used WMI to collect information from the remote pc's such as available disk space.. but the thing is 2 pc's has this exception:
System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) at System.Management.ManagementScope.InitializeGuts(Object o) at System.Management.ManagementScope.Initialize() at System.Management.ManagementObjectSearcher.Initialize() at System.Management.ManagementObjectSearcher.Get() at AutomationProject.WebForm4.diskdriveKMMARS() in C:\Inetpub\wwwroot\AutomationProject\WebForm4.aspx.vb:line 146
why is that so? the pc's were setup as " copied exactly from each other... any help? thanks...
|
|
|
|
|
RPC needs a windows service to be running. Look at the services list (somewhere in your control panel - Im using a german windows so I dont know how it is exctly called), find the RPC service and check if it is running.
|
|
|
|
|
The RPC service should always be running. I'd check to make sure that the two machines in question have the Windows Management Instrumentation service running, and that they are running with the latest service packs and patches.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
will, when i work with TextBox control on vb6,
i can writte from right to left or from left to right.
but, what is the problem?
the problem that i can not chang the direction of cursor itself?
can any one help me,i am waiting online..
|
|
|
|
|
Hi...,
1:I want to fix printer and paper seeting in Vb.Net or C#.
I want that when user click on Printpreview button than Paper size automatically fix on A4 and Margin left and right 0.3 and top and bottom margin 0.5.
Does any body now how to do this job.
2: In VB or C#.net how i export sql database data in access database file as in Sql own feature.
|
|
|
|
|
i want to ask if anyone can help me in the datagrid, how to save a record in the datagrid to the data base,
|
|
|
|
|
hi
im trying to make a combo box with a series of roof pitchs. 1 to 12, 12.5 to 22, 22.5 to 45 degrees
this all neds to work with cosign formulas.
every roof pitch has a different cos value.
ie 10 degrees cos = 0.984807753.
15 degrees cos = 0.965925826.
so in the end the formula would be somthing like this>
1/2 the span of the building / pitch.
pitch has to be in cos.
i have just started learning vbnet so any help would be appreciated
toe
|
|
|
|
|
OK, assuming you have created a combo box that has user friendly angles, like 10, 12.5. 15, etc, and your user has selected an angle here is how you would perform the calculations:
------------------------------------------------------------------------------------------
'Dim doubles to hold values
Dim dblAngle As Double = 0
Dim dblPitchCos As Double = 0
'Get the selected angle in degress from the ComboBox
'and cast the text value to a double
dblAngle = CType(MyAngleComboBox.Text, Double)
'Cos function requires converting the angle from degrees to radians
dblAngle = (dblAngle * System.Math.PI) / 180
'Calculate the cosine of the pitch angle
dblPitchCos = System.Math.Cos(dblAngle)
'Continue calculations ...
------------------------------------------------------------------------------------------
Robert
|
|
|
|
|
Hello basicly I'm working on a project where I need to save a file with one program and open it with a different program. the problem is it throws an error when I try to open the file in the second program
this is the save code:
<br />
Dim fs As filestream = New filestream(filename,filemode.Create,fileaccess.ReadWrite,FileShare.Read)<br />
dim sc as new StreamingContext(streamingcontextstates.File)<br />
Dim bf As New BinaryFormatter(nothing,sc)<br />
bf.serialize(fs,cmap)<br />
fs.close
this is the load code:
<br />
Dim fs As filestream = New filestream(filename,filemode.Open)<br />
Dim bf As New BinaryFormatter()<br />
variable.cmap = ctype(bf.deserialize(fs), gamemap)<br />
fs.close
I need to use binary because i don't want people editing the file
also if it helps bolth programs are using the same key
|
|
|
|
|
disks86@gmail.com wrote:
I need to use binary because i don't want people editing the file
So what? It can still be edited! A little hex editor and time and...
disks86@gmail.com wrote:
the problem is it throws an error when I try to open the file in the second program
And that error would be?
First, don't open the file in the first program as FileShare.Read. You don't want a serialized object being read while it's still being written.
Second, after your done writing the file, .Flush() , .Close()</code), then <code>.Dispose() the FileStream object. Calling .Dispose() will garantee the underlying unmanaged file handle is released when you want it to be, not when the Garbage Collector gets around to it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi im trying to write a small program that deletes the contense of the temp internet folder on xp home ed and the folder seems to have a spechial lock on it
i looked at the attrib's for it and they are all fine and as an experiment i tryed to drag and drop a .txt folder in to it and it wouldnt have it
im pritty new to vb but it works on all other folders so i dont think im over looking somthing stupid but it has been known heres the code im using...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Kill("C:\Documents and Settings\Chris\Local Settings\Temporary Internet Files\*.*")
End Sub
thanks for looking
if it aint broke u cant fix it........so break it first
|
|
|
|
|
Actually, you are missing something. You not really looking at a folder, but rather an extension to the file system, that in Explorer, LOOKS like a folder. Open a command prompt and use CD to navigate your way down to the same "folder", do a DIR and you'll see what I mean.
The Temporary Internet Files folders are managed by WinINet[^]. You'll be doing a bunch of calling into the Win32 API to get at this functionality.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanks for your help
i think i was jumping in at the deep end
if it aint broke u cant fix it........so break it first
|
|
|
|
|
how can i read any sector from hard disk
in visual basic.
i mean, if i want to get data of any sector
defiened by head,cylinder,sector, can i
do this. if i can what is the function or procedure
|
|
|
|
|
It can be done. How much work do you want to put into this is the real question? You can start by reading CreateFile[^] on MSDN.
Keep in mind, your doing something that is best left to C++. 99% of the examples of DeviceIoControl you come acrossed will be in C++. It's up to you to do any translation of code to make it work inside VB6.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How can I disable the file download dialog box of IE so that when I click on Word, powerpoint files it will directly open within IE without having to explicitly click on the 'open' button ?
|
|
|
|
|
You can't. You can't control how the client reacts to having these file type thrown at it. Security restrictions in IE will dictate how what it is capable of displaying and how it should handle file streams.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|