Thursday, 30 April 2015

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 maxAllowedContentLength="60000000" />
     </requestFiltering>

Then you need to change applicationHost.config

open the %windir%\System32\inetsrv\config\applicationHost.config file

Change this:

From
<section name="requestFiltering" overrideModeDefault="Deny" />

To

<section name="requestFiltering" overrideModeDefault="Allow" />

If still you are facing error..try this..

HttpServerConnection objConn;
objConn.Timeout = 60000000;
ServicePointManager.MaxServicePointIdleTime = 60000000;

Ref:http://ajaxuploader.com/large-file-upload-iis-debug.htm

Tuesday, 28 April 2015

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..
 w.Close(); // Close connection  here.

Case 2: You are running your code from remote system, which is giving time out error..

Case 3: Your AML might be very big, split your AML in to 2 and try it..
Case 4: Your AML might be very big, split your AML in to 2 and try it and try to get only properties which are required in the select, if you don't specify the properties, aras will get all properties which will give time out error




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 operating system (to allow Windows to start, stop or pause it on demand), a regular application without this interface will not function properly as a Service. To solve the problem, Microsoft developed Srvany - an "adapter" (or "wrapper") that can accept the Windows Service commands and translate those into actions that a regular executable can understand.

Like any good adapter, Srvany is installed in between Windows and the application and handles all interaction between them. For example, when Windows says "Start the service", Srvany intercepts the request and starts the application as if you had double-clicked on it yourself.

Srvany was developed in the late 1990's for Windows NT and remains mostly unchanged to this day. It is available as part of the Windows Server 2003 Resource Kit Tools package.

Ref: http://www.coretechnologies.com/WindowsServices/FAQ.html#WhatIsSrvany

create service to run exe file

Open Command Prompt
Go 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  command

Ex: 
sc.exe create ServiceName binPath= "D:\myexeFile.exe" DisplayName= "MyService"

Make sure you give space after =

sc.exe start ServiceName
sc.exe stop ServiceName
sc.exe delete ServiceName

Good one: https://www.youtube.com/watch?v=X6o1AvZ06zc



Sunday, 26 April 2015

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 Versionable
Solution: It should be 1 for latest row

Open Aras innovator
Go to Administration
Go to System Events--> Item Types
Search for your Item type.
Open it.
Unlock
Check "Versionable" check box
Save

Now you will see only one row  is_current =1


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.

Friday, 24 April 2015

An error occurred. Detailed message: 2 conflicts prevent checkout

Git error: An error occurred. Detailed message: 2 conflicts prevent checkout
Solution:

Close all your solutions
Open new visual studio
Connect to team foundation server
Connect to Git
Click on Home
Go to changes
If you see any Untracked files, those file are giving problem to you...
Take the back up of all your projects<Code>
Now delete Untracked files from Git.
Now Pull and sync