Return to LanScape's home page Go back a page...       Active TopicsActive Topics   Display List of Forum MembersMember List   Knowledge Base SearchSearch   HelpHelp  RegisterRegister  LoginLogin

LanScape VOIP Media Engine™ - Technical Support
 LanScape Support Forum -> LanScape VOIP Media Engine™ - Technical Support
Subject Topic: Passing in InitializeMediaEngine pData in .Net Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
TJMcMeley
Intermediate
Intermediate


Joined: April 19 2007
Location: United States
Posts: 20
Posted: May 25 2007 at 11:22am | IP Logged Quote TJMcMeley

Hello,

I promise this will be my last question today, i believe it's all that stands between us and the first test install. I'm just confused with the data type of InitializeMediaEngine's parameter in Dot Net.

In the Dot Net version, 'InitializeMediaEngine' is decribed in Object Browser as:

InitializeMediaEngine(ByVal InitData As UInteger)

The Redistribution Code is two lines of alphanumerics, instead of integers. What is the method we need to use to pass in the redistribution code value in .Net?

Thank you;
TJ

__________________
TJ
Back to Top View TJMcMeley's Profile Search for other posts by TJMcMeley
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 25 2007 at 1:02pm | IP Logged Quote support

Hi TJ,

You are correct. The .NET wrapper you have did not support the redistribution initialization string.

We put the latest .NET wrapper in your support FTP account. Look for it at the path:

“Media Engine\DotNet Support\v5.12.3.30 .NET update”

Make sure this new wrapper works with your media engine version and your VOIP application. The new wrapper should be backward compatible but we have goofed before.

You should shoot us an email when you get a chance so we can understand what you are working on. We would like to hear what you are doing.

Let us know how your VOIP install goes this weekend.


Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 25 2007 at 1:06pm | IP Logged Quote support

Wait a moment, the image we just put into your FTP account is wrong. Wait until we repost.

Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 25 2007 at 1:17pm | IP Logged Quote support

TJ,

Ok, Now we are set. Go ahead and download it.

Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
TJMcMeley
Intermediate
Intermediate


Joined: April 19 2007
Location: United States
Posts: 20
Posted: May 25 2007 at 2:05pm | IP Logged Quote TJMcMeley

Hello again,

Well, i lied, i d have another question.

I am receiving this error after rebuilding the project install from the application ona clean box:

Could not load file or assembly 'LMEVoipManaged, Version=1.0.2701.22182, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

1. The version of 'LMEVoipManaged 1.0.2701.22182 is in the install directory.
2. LMEVoip.dll and LMEVoip.lib are both copied to the install directory. (Does LMEVoip.dll need to be registered?)

Any suggestions?

Thanks
TJ

__________________
TJ
Back to Top View TJMcMeley's Profile Search for other posts by TJMcMeley
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 25 2007 at 3:05pm | IP Logged Quote support

TJ,

We will check... hang on.

Support

Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
TJMcMeley
Intermediate
Intermediate


Joined: April 19 2007
Location: United States
Posts: 20
Posted: May 25 2007 at 3:26pm | IP Logged Quote TJMcMeley

Possibly could the issue be 'LMEVoIPManaged.dll' needs to have a PublicKey & PublicKeyTolken set in the Install package's "File Installation Properties' for 'LMEVoIPManaged.dll'?

__________________
TJ
Back to Top View TJMcMeley's Profile Search for other posts by TJMcMeley
 
TJMcMeley
Intermediate
Intermediate


Joined: April 19 2007
Location: United States
Posts: 20
Posted: May 25 2007 at 4:48pm | IP Logged Quote TJMcMeley

This maybe useful information.

1. On a clean box I installed the Voip Media Engine developer's product, and the compiled install of my project. Same error.

2. On a clean box that previously has installed only the Voip Media Engine developer's product and Visual Studio 2005, the install functions. (after updating the 'LMEVoIPManaged.dll').

Let me verify again please the process of installing the developer's product, to make sure i didn't miss anything in #1.

1.     Run the LanScape Install

2.     After you install the base product, locate the LMEVoipManaged.dll and place it with LMEVoip.dll in the install “C:\Program Files\LanScape\VOIP Media Engine\5.12\Bin” directory.

3. LanScapeVME.vb is already in the compiled project.




__________________
TJ
Back to Top View TJMcMeley's Profile Search for other posts by TJMcMeley
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 25 2007 at 5:02pm | IP Logged Quote support

TJ,

We don not see a problem. Here is what we just did:

1)
We took your product install image and installed it to a machine.

2)
Replaced the “old” managed code wrapper with the one in your FTP support account.

3)
Copied the “SimpleMakeCall” vb.NET sample app to the samples directory.

4)
Opened the sample in VS2005.

6)
Updated the reference to the LanScape media engine managed wrapper.

7)
Changed the debug working directory for the project in VS2005 to be the same install dir that holds the native DLL and the managed wrapper.

8)
In the InitializeMediaEngine() API proc, we passed it your redistribution string.

9)
Rebuilt the vb.net sample.

10)
Executed the sample – no problems.


Maybe we are missing something.

If you want, VOIP call us via the LanScape web site (use the sales line) so we can speak with you.

Otherwise, we are not sure what you are seeing. This should be straight forward. Minimally, we need to see the exact text of whatever error you are experiencing.

Call us via the web….

Our office here is getting ready to close.
(If we had a support contract established, we could assist until we get it figured out)    )


Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
TJMcMeley
Intermediate
Intermediate


Joined: April 19 2007
Location: United States
Posts: 20
Posted: May 25 2007 at 5:07pm | IP Logged Quote TJMcMeley

What is your sales line's number?

__________________
TJ
Back to Top View TJMcMeley's Profile Search for other posts by TJMcMeley
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 25 2007 at 5:08pm | IP Logged Quote support

TJ,

The Error you reported:

Could not load file or assembly 'LMEVoipManaged, Version=1.0.2701.22182, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

Simply tells us that when you ran your .NET app, it could not locate the LanScape managed wrapper DLL (“LMEVoipManaged”).

The only other possibility is that your native lanscape media engine VOIP DLL could not be found.

Maybe you should rebuild your app against the new updated wrapper DLL and then try your install test.


Support


Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 25 2007 at 5:10pm | IP Logged Quote support

VOIP call us via the web page here:

http://www.lanscapecorp.com/ASP%20Files/SalesAndMarketing.as p

Login to the web site and press the "Call Sales" button.

You need a headset and mic on your PC to do this.

Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
TJMcMeley
Intermediate
Intermediate


Joined: April 19 2007
Location: United States
Posts: 20
Posted: May 25 2007 at 5:16pm | IP Logged Quote TJMcMeley

Unfortunately i do not have a headset. Is MSN Messenger a possible alternative?

__________________
TJ
Back to Top View TJMcMeley's Profile Search for other posts by TJMcMeley
 
TJMcMeley
Intermediate
Intermediate


Joined: April 19 2007
Location: United States
Posts: 20
Posted: May 25 2007 at 5:18pm | IP Logged Quote TJMcMeley

Or do you have a list of dependencies for LMEVoipManaged.dll that i can use to verify the install?

__________________
TJ
Back to Top View TJMcMeley's Profile Search for other posts by TJMcMeley
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 25 2007 at 5:47pm | IP Logged Quote support

TJ,

For checking dependencies, check out this free utility:

http://www.dependencywalker.com/

We have to close now for tonight. Sorry. We will check back in the morning.

Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 26 2007 at 9:59am | IP Logged Quote support

Hi TJ,

Thanks for waiting. We really hate to close the shop and leave a customer hanging with a problem. That is why a support contract would be good. We could have solved this yesterday.

Now that we have had some time to think about what your problem is, it finally occurred to us. You probably need to install the “Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)”

The VOIP Media Engine managed code assembly is a mix of native and managed code. It requires certain VC++ runtime support.


This is what we did to test the situation:

Machine #1:
Took the vb.NET SimpleMakeCall app and rebuilt it using your redistribution code on a plain old development workstation with VS2005 installed. The VOIP Media Engine development package (your actual product image) was also installed.

.Net versions installed:
v1.0.3705
v1.1.4322
v2.0.50727

Results: It ran no problems.


Machine #2:
Manually hand copied the test EXE and media engine DLLs over to another development machine.

.Net versions installed:
v1.0.3705
v1.1.4322
v2.0.50727

Results: Again, everything ran no problems.


Machine #3:
Used another test machine that had a fresh Windows XP Pro OS install.

.Net versions installed:
v1.0.3705
v1.1.4322
v2.0.50727
v3.0

Results: The app crashed. Here is the error info from the DOS box console window:

Code:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl
y 'LMEVoipManaged, Version=1.0.2701.22182, Culture=neutral, PublicKeyToken=null'
or one of its dependencies. This application has failed to start because the ap
plication configuration is incorrect. Reinstalling the application may fix this
problem. (Exception from HRESULT: 0x800736B1)
File name: 'LMEVoipManaged, Version=1.0.2701.22182, Culture=neutral, PublicKeyTo
ken=null' ---> System.Runtime.InteropServices.COMException (0x800736B1): This ap
plication has failed to start because the application configuration is incorrect
. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x
800736B1) at SimpleMakeCall.Module1.Main()



The key error info is “System.Runtime.InteropServices.COMException”. This says to us the host machine does not have the required VC++ redistribution package support installed. It is required because the managed code wrapper for the media engine was developed using VC++ and is a mix of managed and unmanaged code.

You can read additional information here:
Redistributing the .NET VOIP Media Engine


Thanks TJ,


Support

Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
TJMcMeley
Intermediate
Intermediate


Joined: April 19 2007
Location: United States
Posts: 20
Posted: May 26 2007 at 12:51pm | IP Logged Quote TJMcMeley

Thanks,

I included all the merge modules for VC++ last night after looking at the dependencies, and the install worked. I can whittle out un-needed merge modules with the data you sent.

Thanks,
TJ

__________________
TJ
Back to Top View TJMcMeley's Profile Search for other posts by TJMcMeley
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum






Contact LanScape Hear what the Lawyers have to say How youm may use this site Read your privacy rights