The type initializer for 'MyClass' threw an exception
Solution:This problem can be caused if a class tries to get value of a key in web.config or app.config which is not present there.
View Articlearas innovator is current value is 1 for all rows
When i update an item in aras innovator, it was creating new row in the database and when i check the aras is_current value, it was 1 for all rows.Root Cause: you have not enabled VersionableSolution:...
View Articlecreate service to run exe file
Open Command PromptGo to this path: C:\Windows\SysWOW64>Type: sc.exe You will get all help commands..To create a service you have to use..sc.exe create commandEx: sc.exe create ServiceName...
View ArticleWindows will report error #1053
Srvany is a utility developed by Microsoft that can start almost any regular, non-service application as a Windows Service.Since a Windows Service must be specially constructed to interface with the...
View Articlearas innovator System.Net.WebException: The operation has timed out
Case 1:If you are using StreamReader or any request objects, you need to close it. HttpWebRequest r = WebRequest.Create("URL"); HttpWebResponse w = r.GetResponse()Close that objects.....
View ArticleSystem.Net.WebException: The operation has timed out
I have modified below values in my Web.config, it has resolved my issue. <httpRuntime maxRequestLength="60000000" executionTimeout="60000000" /> <requestFiltering> <requestLimits...
View Articlexml remove root node c#
TextReader txtIn = new StringReader("<Root><A>Content</A></Root>");XDocument xIn = XDocument.Load(txtIn);XElement xOut = xIn.Root.Elements().First(); xOut.ToString();Outpt:...
View ArticleXML add root element
XmlWriterSettings settings = new XmlWriterSettings();settings.Indent = true;settings.NewLineOnAttributes = true;settings.OmitXmlDeclaration = true;string...
View Article1 uncommitted change would be overwritten by merge
If you have any excluded changes, Undo and Pull, It will resolve your problem.
View ArticleC# Math.Ceiling
try { string ss = "1.2677"; int d = (int)Math.Ceiling(float.Parse(ss)); Response.Write(d); double[] values = {...
View Articlecreate database permission denied in database 'master'
First logout from SQL with current userLogin as SQL AdministratorExpand ServerExpand SecurityExpand LoginsNow select the account name which you are getting create database permission denied in database...
View ArticleAras Innovator how to get item structure information using AML
If you want to see any item structure in Aras innovator, we can write AML query to get that..This is for Item type: Part<AML> <Itemtype="ItemType"action="get">...
View Articlepowershell create file and write to it
Param([string]$fileName = $(get-date -f yyyy-MM-dd-hh-mm-ss))write-host $fileName".txt"
View Articlepowershell write to log file
Batch FileMy,bat--------------------------------------@echo offSET Today=%date:~4,2%%date:~7,2%%date:~10,4%%time:~0,2%%time:~3,2%%time:~6,5%.logecho %today%echo(PowerShell.exe Set-ExecutionPolicy...
View ArticleAras innovator low performance
Aras innovator performance is not goodCheck are you closing Innovator connection or not.If not close connection like this..HttpServerConnection conn =IomFactory.CreateHttpServerConnection( url, db,...
View ArticlePowershell call exe using batch file
Copy exe in to a folder: Ex:C:\Deploy\MyProject\My exe name: MyProject.exeC:\Deploy\MyProject\MyProject.exeNow Write PS1 file code as: My.PS1My.PS1--------------Param([string]$pathofexe =...
View ArticleError: system.outofmemoryexception. Easy ways to increase the memory...
Open Your projectOpen Solution explorerRight click on projectSelect PropertiesClick on Build EventYou will see: Post-build event command line:Add below lines of script inside that box..call...
View Article