Hi

I'm a new user in Rebex. I downloaded RebexSecureMail-Trial-1.0.4050.0-DotNet2.0 and installed it.

In my VS 2005 project, I put these code below

Imports Rebex.Net
Imports Rebex.Net.Smtp
....

        Try
            'Smtp.Send(_from, _to, _subject, _body, _server, _port)
            Smtp.Send("def@gmail.com", "abc@gmail.com", "Sending Successfully", "Hello Win CE", "smtp.gmail.com", 25)
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try

But got the error below

There is no source code available for the current Location.

Could not load type 'Rebex.Net.Smtp' from assembly 'Rebex.Net.Smtp, Version=1.0.4050.0, Culture=neutral, PublicKeyToken=1C4638788972655D'.

How to fix this?

Thank you.

asked 10 Feb '11, 10:19

soclose's gravatar image

soclose
181
accept rate: 0%


It seems you have bad references to Rebex assemblies in your project. Please try to remove all Rebex references and add them all manually again (Project->"Project name" Properties->References->(remove all Rebex assemblies than)->Add->Browse->brows to assemblies in the installation folder).

If you are still unable to debug your code, please download this simple project (it only includes your code and Rebex trial assemblies) and let me know whether you are able to debug this project or not.

EDIT:

I only mention the cause of the asked problem here: It is due to referencing .NET Framework assemblies in .NET Compact Framework project (or vice versa).

link

answered 10 Feb '11, 15:24

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
90117
accept rate: 28%

edited 16 Feb '11, 14:19

I put KeyView.exe, 3 dll and xml under my project's assemblies together. But I still got the same error. Debugging your simple project, I got this error - http://mail.google.com/support/bin/answer.py?answer=14257 o13sm125307vch.16 (530). I already changed actual gmails into from and to. Does this Smtp.Send function support for WinCE 5.0? Thank you.

(11 Feb '11, 01:33) soclose

Now I could send gmail from your project after setting SmtpConfiguration. But in my new ce project, I still got the bad reference error.

(11 Feb '11, 02:40) soclose

I wrongly made a reference PC dll to ce project. Now I got these errors - "No symbols are loaded for any call stack frame. The source code cannot be displayed." and "A socket operation encountered a dead network." I test it with gmail.

(11 Feb '11, 03:52) soclose

Is it possible for you to send us your CF project? We try to fix it and tell you what was wrong. It seems to be the simplest way. Please send us your project to support@rebex.net

(11 Feb '11, 13:26) Lukas Matyska ♦♦

The first error "No symbols are loaded..." is message of the VS telling you, that an exception was thrown in a place of which you have no source code.

The second error "A socket ... dead network." is tipically thrown when running in CE Emulator with network connection configured not properly.

(16 Feb '11, 14:27) Lukas Matyska ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×19
×13

Asked: 10 Feb '11, 10:19

Seen: 827 times

Last updated: 30 Mar '11, 14:22