Quantcast
Channel: Microsoft Techies
Browsing all 430 articles
Browse latest View live

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 Article


aras 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 Article


create 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 Article

Windows 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 Article

aras 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 Article


System.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 Article

xml 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 Article

XML add root element

XmlWriterSettings settings = new XmlWriterSettings();settings.Indent = true;settings.NewLineOnAttributes = true;settings.OmitXmlDeclaration = true;string...

View Article


1 uncommitted change would be overwritten by merge

If you have  any excluded changes, Undo and Pull, It will resolve your problem.

View Article


C# Math.Ceiling

  try            {                string ss = "1.2677";                             int d = (int)Math.Ceiling(float.Parse(ss));                Response.Write(d);                double[] values = {...

View Article

create 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 Article

Aras 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 Article

powershell create file and write to it

Param([string]$fileName = $(get-date -f yyyy-MM-dd-hh-mm-ss))write-host $fileName".txt"

View Article


powershell 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 Article

Aras 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 Article


Powershell 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 Article

Aras Innovator get all Identity values

View Article


C# Append lines to a file using a StreamWriter

View Article

C# xelement change attribute value

View Article

Error: 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
Browsing all 430 articles
Browse latest View live