Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
AnswerRe: Build navigation with routed URL in ASP.NET MVC Pin
Richard MacCutchan19-May-16 21:24
mveRichard MacCutchan19-May-16 21:24 
QuestionASP.NET MVC. Specific URL for partial views Pin
Member 1204569219-May-16 14:02
Member 1204569219-May-16 14:02 
AnswerRe: ASP.NET MVC. Specific URL for partial views Pin
Richard MacCutchan19-May-16 21:23
mveRichard MacCutchan19-May-16 21:23 
QuestionHow can I download a picture in powershell and display it in C#? Pin
turbosupramk319-May-16 10:34
turbosupramk319-May-16 10:34 
AnswerRe: How can I download a picture in powershell and display it in C#? Pin
Richard MacCutchan19-May-16 21:22
mveRichard MacCutchan19-May-16 21:22 
GeneralRe: How can I download a picture in powershell and display it in C#? Pin
turbosupramk324-May-16 9:11
turbosupramk324-May-16 9:11 
QuestionRe: How can I download a picture in powershell and display it in C#? Pin
Richard MacCutchan24-May-16 9:23
mveRichard MacCutchan24-May-16 9:23 
AnswerRe: How can I download a picture in powershell and display it in C#? Pin
turbosupramk324-May-16 10:46
turbosupramk324-May-16 10:46 
No I am not, do you have a suggestion on another way I can check?

The code under the Exception snapshot, always has the same error message with the Parameter is not valid at

Quote:
at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
at System.Drawing.Image.FromStream(Stream stream)
at Updator.PictureUpdater.btnViewPicture_Click(Object sender, EventArgs e) in c:\Users\xxxx\Documents\Visual Studio 2012\Projects\Updator\Updator\Form1.cs:line 245
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Updator.Program.Main() in c:\Users\xxx\Documents\Visual Studio 2012\Projects\Exchange Picture Updator\Updator\Program.cs:line 19
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()


modified 24-May-16 17:25pm.

GeneralRe: How can I download a picture in powershell and display it in C#? Pin
turbosupramk324-May-16 12:04
turbosupramk324-May-16 12:04 
QuestionIDisposable with COM Pin
hpjchobbes19-May-16 5:13
hpjchobbes19-May-16 5:13 
AnswerRe: IDisposable with COM Pin
Gerry Schmitz19-May-16 5:35
mveGerry Schmitz19-May-16 5:35 
AnswerRe: IDisposable with COM Pin
Dave Kreskowiak19-May-16 5:36
mveDave Kreskowiak19-May-16 5:36 
GeneralRe: IDisposable with COM Pin
OriginalGriff19-May-16 6:16
mveOriginalGriff19-May-16 6:16 
GeneralRe: IDisposable with COM Pin
hpjchobbes19-May-16 7:19
hpjchobbes19-May-16 7:19 
GeneralRe: IDisposable with COM Pin
Dave Kreskowiak19-May-16 7:23
mveDave Kreskowiak19-May-16 7:23 
QuestionEnumResourceLanguages return false for resource type identified by Name Pin
noelblanc18-May-16 10:14
noelblanc18-May-16 10:14 
AnswerRe: EnumResourceLanguages return false for resource type identified by Name Pin
noelblanc18-May-16 22:15
noelblanc18-May-16 22:15 
QuestionDraw 2 lines in a picture box and automatically measure the angle between the line Pin
Shithun NK18-May-16 6:23
Shithun NK18-May-16 6:23 
AnswerRe: Draw 2 lines in a picture box and automatically measure the angle between the line Pin
Pete O'Hanlon18-May-16 6:47
mvePete O'Hanlon18-May-16 6:47 
AnswerRe: Draw 2 lines in a picture box and automatically measure the angle between the line Pin
Matt T Heffron18-May-16 6:54
professionalMatt T Heffron18-May-16 6:54 
AnswerRe: Draw 2 lines in a picture box and automatically measure the angle between the line Pin
OriginalGriff18-May-16 8:10
mveOriginalGriff18-May-16 8:10 
Questionread blob from database Pin
teddddddddddd18-May-16 3:27
teddddddddddd18-May-16 3:27 
AnswerRe: read blob from database Pin
koolprasad200318-May-16 20:44
professionalkoolprasad200318-May-16 20:44 
AnswerRe: read blob from database Pin
Eddy Vluggen18-May-16 23:11
professionalEddy Vluggen18-May-16 23:11 
AnswerRe: read blob from database Pin
Member 120300006-Jul-16 14:58
Member 120300006-Jul-16 14:58 

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.