Friday, September 29, 2006

access denied while consuming webservice

use:
com.w3schools.www.TempConvert o = new Websvc1.com.w3schools.www.TempConvert() ;
o.Credentials = System.Net.CredentialCache.DefaultCredentials ;
o.Url = "http://localhost/SampleApps/TempConvert/Service1.asmx";

Tuesday, September 12, 2006

NANT BUILD FAILED Primary Interop Assembly "stdole",

Couldn't find Primary Interop Assembly "stdole", referenced by project "CSP".


Copy stdole.dll on your build machine
regasm /codebase stdole.dll
and
gacutil stdole.dll







Tuesday, September 05, 2006

The Messaging engine failed to process a message submitted by adapter:FILE
Source URL:C:\BizTalk
Projects\SimpleOrchestration\SimpleOrchestration\In\*.txt. Details:The
published message could not be routed because no subscribers were found. This
error occurs if the subscribed orchestration schedule or send port has not
been started, or if some of the message properties necessary for subscription
evaluation have not been promoted.


if you are receiving a xml message then you must verify that the pipeline
configure to Receive Location is XmlReceive pipeline.... or if you are
receiving a flat file.. then you must have a custom pipeline configured to
this message type...

the reason to this error in this case is that BTS.MessageType context
proporty was not promoted by disassembler pipeline components....

Monday, September 04, 2006

'GridView' must be placed inside a form tag with runat=server.

when export gridview to excel.

add this statement in the page, it will work.
public override void VerifyRenderingInServerForm(Control control)
{

}


how to export gridview to excel
protected void btnExportExcel_Click(object sender, EventArgs e)
{
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=myexcel.xls");
Response.ContentType = "application/vnd.xls";
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
GridView1.RenderControl(htw);
Response.Write(sw.ToString());
Response.End();
}