Ravindar, Biztalk Developer and Administrator

Just another BizTalk blog

How to View assemblies in GAC folder and take back up of them

run following command

c:\windows\assembly\gac_msil

or based on requirement

C:\Windows\Microsoft.NET\assembly\GAC_MSIL

Advertisements

June 14, 2012 Posted by | Asp.Net, Biztalk Server, Uncategorized | Leave a comment

Enterprise SSO service start failure after installing VS2010

BizTalk and SSO was running smooth before the installation of VS2010 on my machine. I have a 64-Bit machine with Windows Server 2008 R2 and BTS 2009 installed. When I installed VS2010 my SSO was stopped and when I tried to start I started getting the error below

—————————
Services
—————————
Windows could not start the Enterprise Single Sign-On Service service on Local Computer.

Error 0×80131700: 0×80131700

To issue started because it unregisterd SSOSQL.dll which is found on C:\Program Files\Common Files\Enterprise Single Sign-On folder. To register it again run regasm on the VS command prompt from your 32-Bit machine.

regasm C:\Program Files\Common Files\Enterprise Single Sign-On\SSOSQL.dll

On my 64-Bit it worked by running the 64-Bit regasm which is found on C:\Windows\Microsoft.NET\Framework64\v2.0.50727.

So go to the framework64 folder from the command prompt and run

regasm C:\Program Files\Common Files\Enterprise Single Sign-On\SSOSQL.dll

June 10, 2011 Posted by | Asp.Net, Biztalk Server | Leave a comment

Wrap text in grid view

to wrap cell text in a gridview  declare a style for a TD on top of page since the rendered grid cell will be TD.

<style>

.WrapStyle TD
{
word-break :  break-all;
}

</style>

In the grid view set the attribute to RowStyle-CssClass=”WrapStyle”

September 29, 2010 Posted by | Asp.Net, css etc | Leave a comment

Show xml in div from javascript with collapsable nodes

http://www.levmuchnik.net/Content/ProgrammingTips/WEB/XMLDisplay/DisplayXMLFileWithJavascript.html

http://stackoverflow.com/questions/1366179/how-to-display-xml-in-a-html-page-as-a-collapsible-and-expandable-tree-using-java

July 2, 2010 Posted by | Asp.Net, css etc, Java Script | Leave a comment

How to place the pop up div in center of screen

See the below code. you just need to place the name of the div in place ‘layer1’

var scrolledX, scrolledY;
    if (self.pageYoffset) {
        scrolledX = self.pageXoffset;
        scrolledY = self.pageYoffset;
    } else if (document.documentElement && document.documentElement.scrollTop) {
        scrolledX = document.documentElement.scrollLeft;
        scrolledY = document.documentElement.scrollTop;
    } else if (document.body) {
        scrolledX = document.body.scrollLeft;
        scrolledY = document.body.scrollTop;
    }

    // Next, determine the coordinates of the center of browser’s window

    var centerX, centerY;
    if (self.innerHeight) {
        centerX = self.innerWidth;
        centerY = self.innerHeight;
    } else if (document.documentElement && document.documentElement.clientHeight) {
        centerX = document.documentElement.clientWidth;
        centerY = document.documentElement.clientHeight;
    } else if (document.body) {
        centerX = document.body.clientWidth;
        centerY = document.body.clientHeight;
    }

    // Xwidth is the width of the div, Yheight is the height of the
    // div passed as arguments to the function:
    var leftoffset = scrolledX + (centerX – document.getElementById(‘layer1’).offsetWidth) / 2;
    var topoffset = scrolledY + (centerY – document.getElementById(‘layer1’).offsetHeight) / 2;
    // The initial width and height of the div can be set in the
    // style sheet with display:none; divid is passed as an argument to // the function
    var o = document.getElementById(‘layer1’);
    var r = o.style;
    r.position = ‘absolute’;
    r.top = topoffset + ‘px’;
    r.left = leftoffset + ‘px’;
    r.display = “block”;

June 28, 2010 Posted by | Asp.Net, css etc | Leave a comment

wrat text in div(not word wrap, wrap text)

include the div in another div like below and apply style like below

<div>

<div id=”content-sidebar”>

 BLALALALALLAAL

 </div>

  </div>

css for div

#content-sidebar {
    display: block;
    float: right;
    width: 270px;
    height: 400px;
    border: 1px solid red;
}

June 28, 2010 Posted by | Asp.Net, css etc | Leave a comment

Display xml in div instead of as html content

just the string “<xmp>” at the begining of your XML string and “</xmp>” at the end of your XML string before displaying within <DIV> tag

June 28, 2010 Posted by | Asp.Net | Leave a comment

Unable to browse internet when connected to VPN

http://blog.biztalk-info.com/archive/2010/05/12/Cisco_VPN_Client_Version_5.0.01.0600.aspx

May 13, 2010 Posted by | Asp.Net, Biztalk Server | Leave a comment

xml operations in c#

http://www.functionx.com/vcsharp/xml/Lesson01.htm

April 21, 2010 Posted by | Asp.Net, Biztalk Server | Leave a comment

Replace “<" symbol from a not well formatted xml of a particual schema

In the below code the variabl TagsArray, define the tags like .
only include start tag, do not include ending tags lik

public string ReplaceLessThanSymbol(string xmldocument)
{
string ResultingXmlString = xmldocument;
string[] TagsArray = { “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “” };

int firstSearchEndLocation = ResultingXmlString.Length;
for (int i = 0; i 0)
{

//find existance
int k = ResultingXmlString.LastIndexOf(TagsArray[i], firstSearchEndLocation, firstSearchEndLocation);
int substringfrom = k + TagsArray[i].Length;
string CurrentTagEndTag = TagsArray[i].Insert(1, “/”);
//find next existance
int SubstringTo = ResultingXmlString.LastIndexOf(CurrentTagEndTag, firstSearchEndLocation, firstSearchEndLocation);
if (k > 0 && SubstringTo > 0)
{
string output = ResultingXmlString.Substring(substringfrom, SubstringTo – substringfrom);
string substring1 = ResultingXmlString.Substring(0, substringfrom);
string substring2 = ResultingXmlString.Substring(SubstringTo, ResultingXmlString.Length – SubstringTo);
int firstSearchEndingPoint = output.Length;
for (int m = 0; m < output.Length; m++)
{
//to Replace 0)
{

int lastIndexofLessThanSymbol = output.LastIndexOf(‘ 0)
{
firstSearchEndLocation = lastIndexofLessThanSymbol;
try
{
if (output[lastIndexofLessThanSymbol + 1] == ‘/’)
{
}
else
{
bool isItStartingTag = false;
//check if it is starting tag
for (int count = 0; count output.Length)
{
isItStartingTag = false;
}
else
{

//string startingTag = output.Substring(lastIndexofLessThanSymbol, TagsArray[count].Length + 1);
string startingTag = output.Substring(lastIndexofLessThanSymbol, TagsArray[count].Length);

for (int l = 0; l “)
output = output.Substring(0, lastIndexofLessThanSymbol) + “” + output.Substring(lastIndexofLessThanSymbol + 1, output.Length – lastIndexofLessThanSymbol – 1);
}

}
}
catch (Exception ex)
{
output = output.Substring(0, lastIndexofLessThanSymbol) + “” + output.Substring(lastIndexofLessThanSymbol + 1, output.Length – lastIndexofLessThanSymbol – 1);
}
firstSearchEndingPoint = lastIndexofLessThanSymbol;
}
else
{
firstSearchEndingPoint = 0;
}
}

}
ResultingXmlString = substring1 + output + substring2;
firstSearchEndLocation = k;
}
else
{
firstSearchEndLocation = 0;
}
}
}

//ResultingXmlString = ResultingXmlString.Replace(“&”, “amp;”);
return ResultingXmlString;
}

April 20, 2010 Posted by | Asp.Net, Biztalk Server | Leave a comment