|
The code is copied verbatim from the microsoft site:
http://msdn.microsoft.com/library/en-us/wmsrvsdk/htm/creatingaspserverobj.asp?frame=true
---
// Create a remote WMSServer object from a System.Type object and
// the CreateObject method.
Type tServerType = Type.GetTypeFromProgID("WMSServer.Server", "remote_server_name");
WMSServer wms = (WMSSServer)Server.CreateObject(tServerType);
// Create a remote WMSServer object from a System.Type object and a
// System.Activator object.
Type tServerType = Type.GetTypeFromProgID("WMSServer.Server", "remote_server_name");
WMSServer wms = (WMSServer)Activator.CreateInstance(tServerType);
---
(I realize this is ASP. I am confounded at the interplay between VB froms and ASP pages and the code on each. Half the samples I want are in ASP and half are in VB, and frankly I don't understand how the two work together in Visual Studio.)
In VB, a sample looks like this:
---
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Dim tServerType As Type
Dim RemoteServer As WMSServer
Try
tServerType = Type.GetTypeFromProgID("WMSServer.Server", "server_name")
' Create an instance of the remote server object locally.
RemoteServer = Activator.CreateInstance(tServerType)
---
but, no matter WHAT I try, I get 'access denied'. I have been configuring my systems for 5 days now.
________________________________________________________________________
Dave
Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
|
|
|
|
|
Do you have two servers for your app? One is the web server and the other is a media server with Window Media Services installed? Are they arranged in a domain environment or are they workgroup with each having it's own set of user accounts?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Two servers: one web, one media. Different domains. I could set them up in the same domain if you think thast would make things easier.
________________________________________________________________________
Dave
Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
|
|
|
|
|
DaveC426913 wrote:
Different domains
That's why you're getting "Access Denied". Your web code is running under the ASPNET account on one domain, who's SID does not exist in the other. Your best solution is to get both servers into the same domain.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Iam tryin to create a macro that when run will open a window so I can attatch a file to a protected form within microsoft word. This is doing my head in now becasue Im not sure if it can be done or how and I have no knowledge of VB whatsoever. Any help would be much appreciated.
Many Thanks
|
|
|
|
|
Does Crystal Reports come with any versions of VB .NET?
|
|
|
|
|
I know that Enterprise Architect version comes with some Crystal reporting features but I don't think it is the full blown Crystal Reports.
Hope that helps...
|
|
|
|
|
Hi,
I have to update a program while it is working. First i stop the process of programme then i copy new files and restart the process of program.At this time i see 2 system tray icon of my programme. When i move mouse over them the killed process's icon removes itself. But i want it to be destroyed when i first kill it's process.Could someone help me plz?
--junior coder--
|
|
|
|
|
You can't remove th icon yourself since your application was stopped and/or terminiated by the debugger. There's no way to run any removal code for the icon if your code is no longer running. You just have to put the mouse over the orphaned icon and let it get kicked by the System Tray. No, there's no way to force the System Tray to do this.
Even if you could write an app to force the System Tray to clean itself up, wouldn't it just be quicker to pass the mouse over the Tray, instead of finding and double-clicking another icon?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
got a problem:
table in excel(with names A, B):
A B
----------
1 Hallo
1 wie geht es dir?
2 schlecht!
3 nein,
3 eigentlich gut!
I want the result:
A B Resultat C
-------------------------------------------
1----Hallo----------------
1----wie geht es dir?-----Hallo wie geht es dir?
2----schlecht!------------schlecht!
3----nein,----------------
3----eigentlich gut!------nein, eigentlich nicht
How does the makro-code look like????
Thank`s for helping!!!
nico
|
|
|
|
|
If I want to edit a specific row in a dataset, e.g. I want Column(2)Row(5) to equal 100, How do I go about doing that?
|
|
|
|
|
mydataset.mytable.rows(5).item(2)=100
|
|
|
|
|
Or if you know your dataset field names you could use:
dim myDataRow as DataRow<br />
myDataRow = mydataset.tables(tablename).rows(x)<br />
myDataRow.Item(FieldName) = 100<br />
|
|
|
|
|
Hi,
I need to print my file on printer thru my vb.net application. I created the file with formfeed operations. But while printing, file datas printed are not moved formfeeded properly.
Be simple and Be sample.
|
|
|
|
|
Hi,
I am writing a VB6 program where I need to get the information about a perticular icon. Like, if I keep my mouse pointer over a folder icon under Windows explorer, I should get all the information about that icon(Folder) what is its path, size and so on.
Does any one knows about this?
I was thinking i can get this information from WINDOWS(OS) using some API functions.
I dont know know how to go about this.
Please help me.
|
|
|
|
|
By far, your 2 largest problems are:
1) Determining that the mouse is actually hovering over an icon and not just any old graphic image.
2) There's no API call that says "this icon came from this file". There's no way to determine where the icon came from, be it a filename or resource number in that file.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
|
Hye guys
I have one folder contining N numbers of child folders and all the folders also have N Number of child folders and then files. So in total it is a mess. I want to move the folder from one drive to another which is not supported. I have to copy and paste the complete structure.
Do any one have a generic code for this. Though I can write the code but I am very lazy this week. if any one have please send it over.
|
|
|
|
|
Rizwan bashir wrote:
move the folder from one drive to another which is not supported
Moving files from one volume to another is not supported. You have to copy the file structure over, then go back and delete the originals.
Rizwan bashir wrote:
Though I can write the code but I am very lazy this week. if any one have please send it over.
Not our fault! Why should I send you code for free that cost me money to write?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote:
Why should I send you code for free that cost me money to write?
ok tell me how much you charge for this type of code ?
|
|
|
|
|
You're joking right?
This is not what CP is about guy. We will help you with YOUR code, not sell you ours.
|
|
|
|
|
Try using this
Directory.Move("SourceDirName", "destDirName")
I think this should solve your problem.
Mandar Patankar
Microsoft Certified professional
|
|
|
|
|
this will not work when you are moving the folders from one drive to another.
like
c:\abc to D:\abc
|
|
|
|
|
You can add a DirListBox and FileListBox to a form and set the visible property to False. These controls enumerate the folders and files on a computer. Use these controls to get the file names so that you can move them to the next drive creating folders as needed. If you don't want to add controls to your form and figure out how to use them, learn how to use the API functions FindFirstFile, FindNextFile, and FindClose in the kernel32 DLL. I can give you some examples on how to use these calls if you desire.
|
|
|
|