Hi I'm taking back the lead on a project for an Excel plugin. But I ran into a kind of strange error:
System.Runtime.InteropServices.COMException (0x800A03EC): Parameter not valid at Microsoft.Office.Interop.Excel._Chart.FullSeriesCollection(Object Index)
The corresponding line is:
chart.FullSeriesCollection(1).DataLabels.ShowValue = true;
Any idea of what's wrong in there?
Related
I have this linq query which works perfectly fine but sometimes it throws exception, following is start :
query = table.Include(x=>x.table2)
after applying few conditions in code finally following is the line which throws exception :
var data = await query.Skip(offset).Take(filter.PagingOption.PageSize).AsNoTracking().ToListAsync();
ErrorDetail :
System.Data.SqlClient.SqlException (0x80131904): The column 'Id' was specified multiple times for 't'.\r\n
Mostly it is observed that when IIS is restarted error occurs, but once the error is occurred on refresh this works totally fine. Which I guess is random behavior.
Any ideas ?
The following code:
string pathToVideoFile = "O:\\Byblioteka\\MAH01238.MP4";
var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
ffMpeg.ConvertMedia(pathToVideoFile, "nowyplik.mp4", "Format.mp4");
Is resulting in the following error:
An unhandled exception of type 'NReco.VideoConverter.FFMpegException' occurred in NReco.VideoConverter.dll
Additional information: nowyplik.mp4: Invalid argument (exit code: 1)
How may I resolve this 'NReco.VideoConverter.FFMpegException' error?
This worked for me.
var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
ffMpeg.GetVideoThumbnail(url, destinationThumbPath);
ffMpeg.ConvertMedia(url, destinationVidoePath, Format.mp4);
I'm taking a risk answering this question since it's vague, and I don't know where you downloaded the DLL from.
But from what I know, the 3rd argument should be "mp4", not "Format.mp4":
ffMpeg.ConvertMedia(pathToVideoFile, "nowyplik.mp4", "mp4");
This could cause this exception.
I am trying to generate/run some report by querying work items from TFS using C#.
Referred this link. This code worked fine couple of months back and was able to retrieve the results.
Not sure why am getting below exception at Line 2
var tfsUrl = ConfigurationManager.AppSettings.Get("TfsCollection");
var uri = new Uri(tfsUrl);
var projCollection = TfsTeamProjectCollectionFactory
.GetTeamProjectCollection(uri);
//var workItemStore = projCollection.GetService<WorkItemStore>(); //Line 1
var workItemStore = new WorkItemStore(projCollection); //Line 2
Tried other ways of querying work items like Line 1, but no luck. Any help here would be highly appreciated. Also, is there any better way of querying TFS using C#?
Exception details:
A first chance exception of type 'System.ArgumentNullException' occurred in mscorlib.dll
Additional information: Value cannot be null.
System.ArgumentNullException occurred
_HResult=-2147467261
_message=Value cannot be null.
HResult=-2147467261
IsTransient=false
Message=Value cannot be null.
Parameter name: value
Source=mscorlib
ParamName=value
StackTrace:
at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
InnerException:
My bad. Enabled this option in VS.
Debug -> Exceptions -> CLR exceptions
Code will execute despite of the exception.
I have a C# program that is using QBFCv13 to create 46 customers in QuickBooks Pro 2014.
When the program runs, I get an exception with message "String too long.". I am guessing it's probably caused by one of the customer name is too long so I test the program to create 2 customers with one long name. This time I didn't get an exception. I get a response list with one response containing error code and the other response without error.
I am confused. Why in certain case I get an exception? The message doesn't contain any more message than "String too long". I am wondering if there is something else I can do to figure what is causing this "String too long" error.
Thanks.
Try enabling verbose logging and see if it tells you what the error is.
https://intuitpartnerplatform.lc.intuit.com/questions/177198-troubleshooting-sdk-issues
This is a .NET error:
Error Message: String was not recognized as a valid Boolean.
Error Source : mscorlib
This may be a bit cryptic-sounding but that's all I have to show. How to go about retracing what happened... I really need help on this, how can this come up if it didn't appear before, though the application was the same.
thanks
This error occurs when using bool.Parse() and the input into the method is not convertible to a boolean value of true/false.
For instance:
string testBool = "true";
bool validBool = bool.Parse(testBool);
// this passes fine
testBool = "asdf";
validBool = bool.Parse(testBool);
// Exception: String was not recognized as a valid Boolean.
If you're using .NET 4.0 or higher, you can use bool.TryParse() instead; it will not throw the exception if it receives invalid input. Otherwise, wrap the statement in a try / catch to consume it.