connection for vs05 pocket pc emulator

sometimes problems occure with a net-connection of the pocket pc emulator with visual studio 2005

one solution:

start emulator

emulator window – file – configure / tab network – check PCMCIA nw-adapter

Advertisements

System.Net.WebPermission failed

Error raised because the application was executed from a samba-mounted network-drive.

.) do not run an application from such devices

.) Additional configuration in the .NET Framework Configuration (Administrative Tools), but this does not solve this problem.

System.Security.SecurityException: Request for the permission of type System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permToken)

at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride)

at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)

at System.Security.CodeAccessPermission.Demand()

at System.Net.HttpRequestCreator.Create(Uri Uri)

at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)

at System.Net.WebRequest.Create(Uri requestUri)

at System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri uri)

at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri uri)

at System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri uri)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

DataSet

Compute:

int SumAll = 0;

object computeObject;

//sum all Anzahl (without LocalID)

computeObject = this.DataSet1.Table1.Compute

(„Sum(Col3)“

, string.Format(

„Col1 > 0 AND Col2 {0}“

,LocalID.ToString()));

int.TryParse(computeObject.ToString(), out SumAll);

DataView DataView1 = new DataView(DataSet1.Table1);

DataView1.RowFilter = „Col1 IS NOT NULL AND Col2ID IS NOT NULL“;