question

Jackson1990-7147 avatar image
0 Votes"
Jackson1990-7147 asked karenpayneoregon commented

Exceptional error to create message

Hi,
Can you help to the following issue?
109633-1c.png


dotnet-csharpdotnet-visual-basic
1c.png (7.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered Jackson1990-7147 commented

See

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
I run command below (in Nuget)

Install-Package Microsoft.Exchange.WebServices -Version 2.2.0

and still get

109722-1b.png


0 Votes 0 ·
1b.png (10.4 KiB)

Hi,
I run command below (in Nuget)

Install-Package Microsoft.Exchange.WebServices -Version 2.2.0

and still get

109722-1b.png


0 Votes 0 ·
karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered karenpayneoregon edited

If this is a .NET Core project (as shown in ConsoleApp2) see the yellow explanation icon this may be the problem in that the DLL is not compatible with .NET Core projects (and note the DLL is retired, never to be updated by Microsoft). Note ConsoleAp1 has no yellow explanation icon which is a .NET Framework 4.8 project.

See also: Microsoft's response to your error which points to an incorrect entry in web.config.

109849-figure1.png

So if your project is .NET Core this is the problem. Try the code in a .NET Framework project that does not target .NET Core.



figure1.png (20.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jackson1990-7147 avatar image
0 Votes"
Jackson1990-7147 answered karenpayneoregon commented

See my project below
109830-1d.png


It is Console app.


1d.png (20.1 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Then the issue may come from a lack of a configuration file as per the link I provides or Open an Administrator command prompt and run IISreset /noforce as per the link provided.

Seems all the docs point to web projects, not console. With that I have no other suggestions.

0 Votes 0 ·