Answered by:
Resource designer Parameter not valid error

Question
-
Hi. I'm working with VS2017 EE, and after adding a couple of images to a resource file, when I try to edit it again, I get the following message
Parameter not valid (See image).
Any clues?
TIA
Dani Seara
Looking at the Event Viewer, I found this ErrorInformation.
------------------------------------------------------------------------------------
Error Information
AppInsightsEvent Name = vs/ml/proppages/editors/utils-fault
Description = MapBitmapColor
TelemetrySession = '0da91da2-31ac-4e02-8a23-b68e9212a725' Started = True OptIn=True IsInitialized = True Cloned = False
UTC time = 2017-07-31T10:59:22Exception:
System.ArgumentException: Parameter is not valid.
at System.Drawing.Image.get_Width()
at System.Drawing.Bitmap..ctor(Image original)
at Microsoft.VisualStudio.Editors.Common.Utils.MapBitmapColor(Image unmappedBitmap, Color originalColor, Color newColor)
Telemetry Session Shared Properties:
VS.Core.Locale.ProductLocaleName = en-US
VS.Core.User.Id = 26c76082-f056-468a-863b-0bc1f6190863
VS.Core.BuildNumber = 26430
VS.ABExp.Flights = spmoretempsbtn1;tn-none-14u3;fwlargebuffer;refactoring;tn-none-15b;asloff;vswlaunchchkcf;lazytoolboxinit;vswpkgfailurescf
VS.Core.User.IsMicrosoftInternal = False
VS.Core.ExeName = devenv
VS.Core.Machine.Id = e0931bea-0530-4c3a-84b3-7b951d213bb6
VS.Core.TelemetryApi.ProductVersion = 15.0.778-rtm41F76B1D
VS.Core.OS.Version = 10.0.15063.483
VS.Core.ManifestId = VisualStudio/15.2.0+26430.16
VS.Core.User.Location.GeoId = 217
VS.Core.BranchName = D15SVC
VS.Core.MacAddressHash = 584f41dfce0b4f3453173e94af2b87b6c5318e9f034647208a0425486a7f98fc
VS.Core.ChannelId = VisualStudio.15.Release
VS.Core.User.Type = External
VS.Core.User.PersonalizationVsid = 1b45810d-1b6a-4e57-9616-94f8bb6c47bd
VS.Core.User.IsMicrosoftInternalDeprecated = False
VS.Core.ChannelManifestId = VisualStudio.15.Release/15.2.0+26430.16
VS.Core.User.IsOptedIn = True
VS.Core.ExeVersion = 15.0.26430.16
VS.Core.SkuName = VS Enterprise
Telemetry event 'vs/ml/proppages/editors/utils-fault' properties:
[VS.Fault.Exception.MethodDef] = '33a'
[VS.Fault.Exception.AppStamp] = '5968f055'
[VS.Fault.Exception.ModStamp] = '589c0722'
[VS.Fault.Exception.Offset] = '0'
[VS.Fault.Exception.ModuleVersion] = '4.7.2046.0'
[VS.Fault.WatsonOptIn] = 'Unspecified'
[VS.Fault.WatsonReportNumber] = '3'
Telemetry event 'vs/ml/proppages/editors/utils-fault' reserved properties:
[DataModel.Severity] = '10'
[DataModel.Source] = 'DataModelApi'
[DataModel.EntityType] = 'Fault'
[DataModel.EntitySchemaVersion] = '4'
[DataModel.CorrelationId] = 'bf33e741-8c4c-411a-b9b0-fa84e5a62f49'
[DataModel.ProductName] = 'vs'
[DataModel.FeatureName] = 'ml/proppages/editors'
[DataModel.EntityName] = 'utils-fault'
[DataModel.Fault.Exception.TypeString] = 'System.ArgumentException'
[DataModel.Fault.Exception.Message] = 'Parameter is not valid.'
[DataModel.Fault.Exception.StackTrace] = 'System.ArgumentException: Parameter is not valid.
at System.Drawing.Image.get_Width()
at System.Drawing.Bitmap..ctor(Image original)
at Microsoft.VisualStudio.Editors.Common.Utils.MapBitmapColor(Image unmappedBitmap, Color originalColor, Color newColor)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)'
[DataModel.Fault.Exception.ErrorCode] = '-2147024809'
[DataModel.Fault.Description] = 'MapBitmapColor'
[DataModel.Fault.BucketParam1] = 'devenv.exe'
[DataModel.Fault.BucketParam2] = '15.0.26430.16'
[DataModel.Fault.BucketParam3] = 'vs.ml.proppages.editors.utils-fault'
[DataModel.Fault.BucketParam4] = 'System.ArgumentException'
[DataModel.Fault.BucketParam5] = 'System.Drawing'
[DataModel.Fault.BucketParam6] = 'System.Drawing.Image.get_Width'
[DataModel.Fault.BucketParam7] = ''
[DataModel.Fault.BucketParam8] = ''
[DataModel.Fault.BucketParam9] = ''
[DataModel.Fault.BucketParam10] = ''
[DataModel.Fault.IsSampled] = 'True'- Edited by (legacy) MVP Daniel Seara Monday, July 31, 2017 11:02 AM
Monday, July 31, 2017 10:55 AM
Answers
-
Hi Daniel Seara,
According to your screenshot, I create a VB WinForm and add image resource for this project. After I reopen the Resource tab, I get the same error message. I also checked the C# WinForm, it has the same problem.
I have submit this issue to Visual Studio 2017 Developer Community, please vote and add your comments from below link. Please wait for the response from Visual Studio Team patiently. Thanks for your feedback for Visual Studio 2017.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Proposed as answer by Weiwei Cai Thursday, August 3, 2017 1:18 AM
- Marked as answer by (legacy) MVP Daniel Seara Thursday, August 3, 2017 11:49 AM
Tuesday, August 1, 2017 5:08 AM
All replies
-
Hi Daniel Seara,
According to your screenshot, I create a VB WinForm and add image resource for this project. After I reopen the Resource tab, I get the same error message. I also checked the C# WinForm, it has the same problem.
I have submit this issue to Visual Studio 2017 Developer Community, please vote and add your comments from below link. Please wait for the response from Visual Studio Team patiently. Thanks for your feedback for Visual Studio 2017.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Proposed as answer by Weiwei Cai Thursday, August 3, 2017 1:18 AM
- Marked as answer by (legacy) MVP Daniel Seara Thursday, August 3, 2017 11:49 AM
Tuesday, August 1, 2017 5:08 AM -
Thank you, Weiwei
I already did.Thanks again!
Dani Seara
Wednesday, August 2, 2017 10:16 AM -
Hi Dani Seara,
Thanks for your response.
Since this problem has been submit to Visual Studio Community forum, please mark the feedback reply as answer which could let other communities who has the same problem to vote it.
Best Regards,
WeiweiMSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Thursday, August 3, 2017 1:18 AM -
Hi, Weiwei. It is done. Thank you!
Dani Seara
Thursday, August 3, 2017 11:49 AM