Skip to Content
0
Former Member
Feb 17, 2009 at 02:54 AM

WebDev.WebServer.Exe has stopped working

180 Views

Hi

I met "WebDev.WebServer.Exe has stopped working" this message when I try to program crystal report.

My work machine is Vista 32bit system with .net develop environment, and installed cyrstal report sever xi client-side application. My program is as following:

private void OpenSampleReport_managedRAS()

{

ReportDocument rd = new ReportDocument();

// Set the search string of the report file to query for.

string sampleReportName = "VehStatusSnapshot";

SessionMgr sessionMgr = new SessionMgr();

EnterpriseSession enterpriseSession;

EnterpriseService enterpriseService;

InfoStore infoStore;

InfoObjects infoObjects;

InfoObject infoObject;

ReportAppFactory reportAppFactory;

// Logon to an Enterprise session.

enterpriseSession = sessionMgr.Logon("Administrator", "1Qaz2wsx", "AVIS-PRODUCT:6400", "secEnterprise");

// Query for the sample report from the Enterprise CMS.

enterpriseService = enterpriseSession.GetService("InfoStore");

infoStore = new InfoStore(enterpriseService);

infoObjects = infoStore.Query("Select SI_CUID From CI_INFOOBJECTS Where SI_NAME='" + sampleReportName + "' And SI_INSTANCE=0");

infoObject = infoObjects[1];

string reportCUID = infoObject.CUID;

rd.EnterpriseSession = enterpriseSession;

rd.FileName = "cecuid:///" + reportCUID;

rd.SetDatabaseLogon("sqluser", "123456", "172.31.69.75", "AVIS_FMIS");

CRViewer.ReportSource = rd;

}

However I don't think it is the code problem, because it works fine on windows 2003 server, It may lead by some dll can not work on Vista, is there any way to fix it?