Goto Default Web Site in Internet Information Services and right click to open the Properties Tab . Click on Advanced and change the Host Header name . Save and Close. Open ur soultion project and add the existing web site pointing to the WCF service . The service will be added as
http://newhostheadername/foldername/servicename.svc
To run this service , you have to goto c:\winnt\system32\drivers\etc\host file and edit the host name for 127.0.0.1 change localhost to the newhostheadername . save build the web site
Finally add a cherry to the pie do an IISRESET !!!!!
You will be able to browse the WCF service as
http://newhostheadername/foldername/servicename.svc
http://msmvps.com/blogs/bernard/archive/2004/07/29/10855.aspx
References : http://www.developersdex.com/asp/message.asp?p=4100&r=6155011
Friday, October 24, 2008
Tuesday, October 14, 2008
How to Install MSMQ
Hi All ,
Most of you would have tried installing MSMQ and faced with a common error
"The MSMQ service could not be started " . Well, the MSMQ service depends on the NTLM Security Support Provider Service . You got to set that to Manual and start it . It also depends on Distribution Transaction Coordinator (DTC) . This service needs to be started too . Sometimes when you start this service you will be faced with an error with error code 1073737712
For resolving this please follow the steps given in the link below
http://windowsitpro.com/article/articleid/85807/jsi-tip-10458-when-you-start-the-distributed-transaction-coordinator-service-in-window-xp-or-windows-server-2003-you-receive-error--1073737712.html
Once these two services are up and running , you can select Message Queueing from the Add/ Remove Windows Components Box and click on Install .
Regards
Most of you would have tried installing MSMQ and faced with a common error
"The MSMQ service could not be started " . Well, the MSMQ service depends on the NTLM Security Support Provider Service . You got to set that to Manual and start it . It also depends on Distribution Transaction Coordinator (DTC) . This service needs to be started too . Sometimes when you start this service you will be faced with an error with error code 1073737712
For resolving this please follow the steps given in the link below
http://windowsitpro.com/article/articleid/85807/jsi-tip-10458-when-you-start-the-distributed-transaction-coordinator-service-in-window-xp-or-windows-server-2003-you-receive-error--1073737712.html
Once these two services are up and running , you can select Message Queueing from the Add/ Remove Windows Components Box and click on Install .
Regards
Wednesday, September 3, 2008
Delete all Items inside a list
foreach (SPWeb childweb in web.Webs)
{
childweb.AllowUnsafeUpdates = true;
SPList PagesLIST = childweb.Lists["Pages"];
if (PagesLIST.Items.Count != 0)
{
for (int p = 0; p < PagesLIST.Items.Count; p++)
{
if (p == PagesLIST.Items.Count)
{ p = -1; continue; }
PagesLIST.Items[p].Delete();
}
}
PagesLIST.Update();
{
childweb.AllowUnsafeUpdates = true;
SPList PagesLIST = childweb.Lists["Pages"];
if (PagesLIST.Items.Count != 0)
{
for (int p = 0; p < PagesLIST.Items.Count; p++)
{
if (p == PagesLIST.Items.Count)
{ p = -1; continue; }
PagesLIST.Items[p].Delete();
}
}
PagesLIST.Update();
Monday, August 25, 2008
To get a dashed horizontal line
<hr style="height :0px; color:Black; border-bottom: 1px dashed #000; " />
Thursday, August 21, 2008
Get Previous Page Form Values
To get the previous page form element values follow the steps below
Parent page do a Server.Transfer instead of Response.Redirect
Server.Transfer("ChildPage.aspx", true);
true for preserving the form element values
In the ChildPage.aspx access the values from ParentPage.aspx like thus
((TextBox)(PreviousPage.FindControl("TextBox1"))).Text;
Parent page do a Server.Transfer instead of Response.Redirect
Server.Transfer("ChildPage.aspx", true);
true for preserving the form element values
In the ChildPage.aspx access the values from ParentPage.aspx like thus
((TextBox)(PreviousPage.FindControl("TextBox1"))).Text;
Subscribe to:
Comments (Atom)