Click here to Skip to main content
15,867,568 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 8:01
mveRichard Deeming5-Feb-14 8:01 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 16:09
ven7535-Feb-14 16:09 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming6-Feb-14 1:37
mveRichard Deeming6-Feb-14 1:37 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 6:54
ven7536-Feb-14 6:54 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming6-Feb-14 8:56
mveRichard Deeming6-Feb-14 8:56 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 16:18
ven7536-Feb-14 16:18 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 21:34
ven7536-Feb-14 21:34 
GeneralRe: not able to Deserialize json signature lines Pin
ven7537-Feb-14 7:03
ven7537-Feb-14 7:03 
hi now i aded LinkedResource myimage = new LinkedResource(serpath);
// Create HTML view
AlternateView htmlMail = AlternateView.CreateAlternateViewFromString(str, null, "text/html");
// Set ContentId property. Value of ContentId property must be the same as
// the src attribute of image tag in email body.
myimage.ContentId = "companylogo";
htmlMail.LinkedResources.Add(myimage);
mail.AlternateViews.Add(htmlMail);

so it sorted out and image is embedding to HTML and is working from default page only by accessing html page.

but one problem is again if i redraw or overwrite the image after mail sending i am trying to delete that file by using folowing code
if (System.IO.File.Exists(serpath))
{
System.IO.File.Delete(serpath);
}
but it is giving The process cannot access the file serpath because it is being used by another process.
How to resolve this. Reply me , thanks in advance.


if i create new image with different name means it creating and saving but once again if try for same image name am getting following error
An exception of type 'System.Runtime.InteropServices.ExternalException' occurred in System.Drawing.dll but was not handled in user code

Additional information: A generic error occurred in GDI+.
i need to overwrite same image also.
how to resolve this Reply me , thanks in advance.

modified 7-Feb-14 13:17pm.

GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming10-Feb-14 1:27
mveRichard Deeming10-Feb-14 1:27 
Question3 layers architecture & MVC Pin
kryptong4-Feb-14 3:20
kryptong4-Feb-14 3:20 
AnswerRe: 3 layers architecture & MVC Pin
Eddy Vluggen4-Feb-14 7:55
professionalEddy Vluggen4-Feb-14 7:55 
GeneralRe: 3 layers architecture & MVC Pin
kryptong4-Feb-14 8:08
kryptong4-Feb-14 8:08 
GeneralRe: 3 layers architecture & MVC Pin
Eddy Vluggen5-Feb-14 0:30
professionalEddy Vluggen5-Feb-14 0:30 
AnswerRe: 3 layers architecture & MVC Pin
Pete O'Hanlon4-Feb-14 8:28
subeditorPete O'Hanlon4-Feb-14 8:28 
AnswerRe: 3 layers architecture & MVC Pin
CoderPanda5-Feb-14 6:56
professionalCoderPanda5-Feb-14 6:56 
QuestionGood GC configuration for Web services Pin
Pingala31-Jan-14 11:36
Pingala31-Jan-14 11:36 
AnswerRe: Good GC configuration for Web services Pin
Dave Kreskowiak31-Jan-14 11:58
mveDave Kreskowiak31-Jan-14 11:58 
AnswerRe: Good GC configuration for Web services Pin
CoderPanda5-Feb-14 7:23
professionalCoderPanda5-Feb-14 7:23 
QuestionSending e-mail error-VB.NET Pin
tgkkishore31-Jan-14 5:07
tgkkishore31-Jan-14 5:07 
AnswerRe: Sending e-mail error-VB.NET Pin
Eddy Vluggen31-Jan-14 6:25
professionalEddy Vluggen31-Jan-14 6:25 
GeneralRe: Sending e-mail error-VB.NET Pin
tgkkishore1-Feb-14 4:34
tgkkishore1-Feb-14 4:34 
GeneralRe: Sending e-mail error-VB.NET Pin
Eddy Vluggen1-Feb-14 7:09
professionalEddy Vluggen1-Feb-14 7:09 
GeneralRe: Sending e-mail error-VB.NET Pin
tgkkishore2-Feb-14 1:03
tgkkishore2-Feb-14 1:03 
GeneralRe: Sending e-mail error-VB.NET Pin
Richard MacCutchan2-Feb-14 1:31
mveRichard MacCutchan2-Feb-14 1:31 
GeneralRe: Sending e-mail error-VB.NET Pin
Richard Deeming3-Feb-14 1:40
mveRichard Deeming3-Feb-14 1:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.