Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

April 08, 2013

Tridion permission to access protected database section MMC, RSA Container

Tridion User do not have permission to access  protected database section in MMC console,  Contact your system administrator. or change General setting values.
or
Account has no permission to access the protected configuration section 'tridion.security.

Even though i am local administrator on the Windows 2008 R2 server.

Solution: this is actually problem of  KeyContainer on Windows 2008 R2 server. Whoever create it first became the supreme owner, he needs to give the access to other users to make any change

Step1: login using person's credentials. who actually created that container. eg. in Tridion who installed the Tridion.

step2: aspnet_regiis -pa "TridionRsaKeyContainer" "<domain>\<account>" -full

in case of tridion "TridionRsaKeyContainer" is the container name, but it will work for any container issue. just replace the container name.

Other solution:


1) Login using persons credentilas who actully installed application that created that RSA Container.

2) go to C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys\ 
find the Particular machine key in above folder.
How to search

1) Date on which particular application was installed/ container were created
2) You will see the name of the person in permission list who created it.

give administrator permission to that system file.

it will surely work.

April 05, 2013

Content Porter 2009 SP2 Unable to get list of child items


Error: Unable to get list of child items in Content Porter 2009 Sp2

Communicator returned an error: Could not create or initialize XmlResponder object

Impersonation by this user requires the IIS APPPOOL\DefaultAppPool account to be configured as impersonation user


Solution: In IIS ImportExportService under SDL Tridion website was configured using deafult app pool and my default pool was having different User rather than Network Service, when i changed the user, problem got resolved.

Detailed Error message for reference


<?xml version="1.0" standalone="yes"?>
<tcm:Error ErrorCode="80040302" Category="16" Source="Kernel" Severity="2" xmlns:tcm="http://www.tridion.com/ContentManager/5.0"><tcm:Line ErrorCode="80040302" Cause="false" MessageID="4394"><![CDATA[Unable to Initialize TDSE object.]]><tcm:Token>RESID_4537</tcm:Token><tcm:Token>TDSE</tcm:Token></tcm:Line><tcm:Line ErrorCode="80040302" Cause="true"><![CDATA[Impersonation by this user requires the IIS APPPOOL\DefaultAppPool account to be configured as impersonation user.]]><tcm:Token>IIS APPPOOL\DefaultAppPool</tcm:Token></tcm:Line><tcm:Details><tcm:CallStack><tcm:Location>Tridion.ContentManager.Security.AuthorizationManager.GetImpersonationUserSettings(String)</tcm:Location><tcm:Location>Tridion.ContentManager.Security.AuthorizationManager.LoadAccessToken(String,String)</tcm:Location><tcm:Location>Tridion.ContentManager.Session..ctor(String,String,UserContext)</tcm:Location><tcm:Location>Tridion.ContentManager.BLFacade.SystemFacade.InitializeUserContext(UserContext,String,String)</tcm:Location><tcm:Location>UtilitiesTDS.GetUserContext</tcm:Location><tcm:Location>TDSE.Initialize</tcm:Location><tcm:Location>XMLResponder.Initialize</tcm:Location></tcm:CallStack></tcm:Details></tcm:Error>

IIS overrides Response.StatusCode and showing default error page instead of custom message in ajax

in asp.net/mvc whenResponse.StatusCode is set, IIS 7.5 by default capture the response and inject default page according to the status code.

My following code was working fine on IIS 6, but as soon as i port this code on 7.5 i started getting following issue.

Response.StatusCode = 404; return new ContentResult { Content = "Not Found"}; 

ajax({type: "POST",url: d,data: f,success: function(h, j) {
g.redirectUrl();
},error: function(j, h) {
b._displayError(j.responseText);
}});

404 - FILE OR DIRECTORY NOT FOUND.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.



It should have shown error message "Not Found" message.

Solution: To avoid IIS to inject default page. Add following into the Web.config of your app.

<system.webServer>
    <httpErrors existingResponse="PassThrough" />
  </system.webServer>

October 21, 2011

Bad Request (Invalid Hostname) on web application

Recently i was working on an Tridion application, Tridion is CMS (Content Management System) which got very good feature for multilingual site.
Anyways i got this error multiple times
Reason of error:

1) Application pool was not started (Defaultapppool or any pool)
Just start the application  pool, set the appropriate .net framework
2) you have put some value in  header value in

check following screen shot
Just press edit  and remove any value from the "Host Header value"
it will start working.

if it resolve your issue. Please comment below.


August 08, 2011

An existing connection was forcibly closed by the remote host in .net app

Sometime "An existing connection was forcibly closed by the remote host" occurs in web app to the user, its very strange issue because all module were working yesterday they suddenly stopped working.

Resolution:

1) Reset the IIS, but it will affect all the application on IIS , if multiple sites are hosted. if only single site then open the command prompt with admin rights and type IISReset and enter.

or

2) Restart the default/Required WebSite

3)  Recycle the Application pools

4) Restart any dependent windows service.

if any comment/issue please comment.

August 01, 2011

The server has rejected the client credentials in WCF


"The server has rejected the client credentials"

i have a WCF serviec which is running on my localhost on 9876 port.

i was using nettcp protocol for my WCF windows service, and in client(from which you are hitting the service, say another website or another web service)it was having following entry in config file

<client>

<endpoint address="net.tcp://Something:9876/RajService"

 binding="netTcpBinding" bindingConfiguration="TCPBinding_abc"

 contract="RService.IR" name="RS" />

</client>

the problem here is instead of localhost (or where my service is actually pointing) 

i was using "Something" and "Something" do not have any entry in the host file.

i changed it to localhost:9876 and this error was resolved.

May 25, 2011

Error 1053: The service did not respond to the start or control request in a timely fashion.

Error 1053: The service did not respond to the start or control request in a timely fashion.
linked server
Some times you get this error while starting or restarting the windows service especially in .net wcf window service.
Two reason for this error
1) Config file of windows service has some issue. clearly check it for
a) Unclosed Tags
b) any xml comment error
c) any character not allowed in like. any character without tags.

2) the new code you wrote has some issue. Like on start of service you call a method, which do some action like read a file or anything which throw some exception.

in these scenarios service did not start error can occur.

You can also try once or thrice before checking above steps. because sometime resource allocation can cause this issue.
at last restart you system and try :)

if it solve your problem comment with what kind of issue it was.

April 28, 2011

There is no Unicode byte order mark. Cannot switch to Unicode

Issue: {There is no Unicode byte order mark. Cannot switch to Unicode}

Reason:  Data/xml/text is in different encoding & you are trying to read/process it in different encoding.


Steps: it can occur with Microsoft .net application, asp.net mvc or any java, php applicaiton.


Just confirm that. if you are reading a stream or file, explicitly specify the encoding rather that rely on default encoding select by CLR. 
You may have to put some more lines in the code because some time the method you are using does not have parameter for that. so you have to go additional step to provide stream which is having that parameter and supply it.


Example: 


Default: 


XmlSerializer xs = new XmlSerializer(typeof(T)); return (T)xs.Deserialize(reader);


Explicitly:


XmlSerializer xs = new XmlSerializer(typeof(T)); MemoryStream memoryStream = new MemoryStream(StringToASCIIByteArray(xml)); XmlTextWriter xmlTextWriter = new XmlTextWriter(memoryStream, Encoding.ASCII); return (T)xs.Deserialize(memoryStream);



July 29, 2010

Properties/Settings.Designer.cs could not be opened

Problem: Properties/Settings.Designer.cs could not be opened
this is file created in properties folder by visual studio. If somehow it get deleted by asp.net developer. Visual studio throws error Properties/"Settings.Designer.cs" "could not be opened".

Solution: just create a new text file on the required locatin and rename it to "Settings.Designer.cs". compile in visual studio 2008/2010. it should show "Build succeeded".

December 29, 2008

This row already belongs to another table Exception in dataset, datatable, ado.net

Error / Exception:
This row already belongs to another table

This error occur when a row from a datatable is added to another dataTable.

as a row can only belong to only one table. so this exception occurs.
Source row may be selected using dataTable.Select() or find. or direct dtTable.Rows[0] etc.

in every case it will generate error. so to avoid this error.
You can use following to methods

1. add a new row in destination table and copy field one by one from source to destination.

2. using ImportRow
firsly clone the table.

DataTable dest = source.Clone() // it will copy the structure to the dest table.

now dest.ImportRow(dest.Rows[0]);

it will run sucessfully.

any doubt please comment