The wait operation timed out
I am getting error The wait opertaion timed out but when i get run linq query to Sql it will run in 5 sec.
And also tried with increasing timeout to 10*60 .
My Sql query is
SELECT
[Project5].[C7] AS [C1],
[Project5].[C6] AS [C2],
[Project5].[C5] AS [C3],
[Project5].[C1] AS [C4],
[Project5].[C11] AS [C5],
[Project5].[C2] AS [C6],
[Project5].[C3] AS [C7],
[Project5].[C8] AS [C8],
[Project5].[C4] AS [C9],
[Project5].[C9] AS [C10],
[Project5].[C10] AS [C11]
FROM ( SELECT
[GroupBy1].[A1] AS [C1],
[GroupBy1].[A2] AS [C2],
[GroupBy1].[A3] AS [C3],
[GroupBy1].[A4] AS [C4],
[GroupBy1].[K1] AS [C5],
[GroupBy1].[K2] AS [C6],
1 AS [C7],
CASE WHEN ([Project4].[C6] IS NULL) THEN CAST(NULL AS float) ELSE ROUND( CAST( [Project4].[C2] AS float), 2) END AS [C8],
CASE WHEN ([Project4].[C6] IS NULL) THEN CAST(NULL AS float) ELSE ROUND( CAST( [Project4].[C3] AS float), 2) END AS [C9],
CASE WHEN ([Project4].[C6] IS NULL) THEN CAST(NULL AS float) ELSE ROUND( CAST( [Project4].[C4] AS float), 2) END AS [C10],
[Project4].[C5] AS [C11]
FROM (SELECT
[Filter1].[K1] AS [K1],
[Filter1].[K2] AS [K2],
[Filter1].[K3] AS [K3],
COUNT([Filter1].[A1]) AS [A1],
SUM([Filter1].[A2]) AS [A2],
SUM([Filter1].[A3]) AS [A3],
SUM([Filter1].[A4]) AS [A4]
FROM ( SELECT
CASE WHEN (1 = 1) THEN [Extent3].[CostCentreDescription] ELSE [Extent4].[DepartmentDescription] END AS [K1],
CASE WHEN (1 = 1) THEN [Extent3].[CostCentreGUID] ELSE [Extent5].[DepartmentGUID] END AS [K2],
CASE WHEN (1 = 1) THEN [Extent1].[CostCentreID] ELSE [Extent1].[DepartmentID] END AS [K3],
1 AS [A1],
[Extent1].[ProRata] AS [A2],
[Extent1].[MonthLineRental] AS [A3],
[Extent1].[TotalCost] AS [A4]
FROM [dbo].[InvoiceCTN] AS [Extent1]
LEFT OUTER JOIN [dbo].[Department] AS [Extent2] ON [Extent1].[DepartmentID] = [Extent2].[DepartmentID]
INNER JOIN [dbo].[CostCentre] AS [Extent3] ON [Extent1].[CostCentreID] = [Extent3].[CostCentreID]
LEFT OUTER JOIN [dbo].[Department] AS [Extent4] ON [Extent1].[DepartmentID] = [Extent4].[DepartmentID]
LEFT OUTER JOIN [dbo].[Department] AS [Extent5] ON [Extent1].[DepartmentID] = [Extent5].[DepartmentID]
WHERE ([Extent1].[InvoiceDateID] = 16) AND (0 = 0 OR 0 = CAST( [Extent2].[DepartmentType] AS int))
) AS [Filter1]
GROUP BY [K1], [K2], [K3] ) AS [GroupBy1]
LEFT OUTER JOIN (SELECT
[Project3].[C1] AS [C1],
[Project3].[C2] AS [C2],
[Project3].[C3] AS [C3],
[Project3].[C4] AS [C4],
[Project3].[C5] AS [C5],
1 AS [C6]
FROM ( SELECT
[Project2].[C1] AS [C1],
[Project2].[C2] AS [C2],
[Project2].[C3] AS [C3],
[Project2].[C4] AS [C4],
(SELECT
COUNT(1) AS [A1]
FROM ( SELECT [Extent11].[InvoiceDateID] AS [InvoiceDateID1], [Extent12].[DepartmentType] AS [DepartmentType1], [Extent14].[CostCentreGUID] AS
[CostCentreGUID], [Extent15].[DepartmentGUID] AS [DepartmentGUID1]
FROM [dbo].[InvoiceCTN] AS [Extent11]
LEFT OUTER JOIN [dbo].[Department] AS [Extent12] ON [Extent11].[DepartmentID] = [Extent12].[DepartmentID]
INNER JOIN [dbo].[InvoiceCTNItemised] AS [Extent13] ON (([Extent11].[MobileNumber] = [Extent13].[MobileNumber]) OR (([Extent11].[MobileNumber]
IS NULL) AND ([Extent13].[MobileNumber] IS NULL))) AND (([Extent11].[InvoiceDateID] = [Extent13].[InvoiceDateID]) OR (([Extent11].[InvoiceDateID] IS NULL) AND ([Extent13].[InvoiceDateID] IS NULL)))
INNER JOIN [dbo].[CostCentre] AS [Extent14] ON [Extent11].[CostCentreID] = [Extent14].[CostCentreID]
LEFT OUTER JOIN [dbo].[Department] AS [Extent15] ON [Extent11].[DepartmentID] = [Extent15].[DepartmentID]
WHERE 'SMS' = [Extent13].[CallType]
) AS [Filter3]
WHERE ([Filter3].[InvoiceDateID1] = 16) AND (0 = 0 OR 0 = CAST( [Filter3].[DepartmentType1] AS int)) AND (([Project2].[C1] = (CASE WHEN
(1 = 1) THEN [Filter3].[CostCentreGUID] ELSE [Filter3].[DepartmentGUID1] END)) OR (([Project2].[C1] IS NULL) AND (CASE WHEN (1 = 1) THEN [Filter3].[CostCentreGUID] ELSE [Filter3].[DepartmentGUID1] END IS NULL)))) AS [C5]
FROM ( SELECT
[GroupBy2].[K1] AS [C1],
[GroupBy2].[A1] AS [C2],
[GroupBy2].[A2] AS [C3],
[GroupBy2].[A3] AS [C4]
FROM ( SELECT
[Project1].[K1] AS [K1],
SUM([Project1].[A1]) AS [A1],
SUM([Project1].[A2]) AS [A2],
SUM([Project1].[A3]) AS [A3]
FROM ( SELECT
CASE WHEN (1 = 1) THEN [Project1].[CostCentreGUID] ELSE [Project1].[DepartmentGUID] END AS [K1],
CASE WHEN ([Project1].[UsageCharge] IS NOT NULL) THEN [Project1].[UsageCharge] ELSE cast(0 as
decimal(18)) END AS [A1],
(CASE WHEN ([Project1].[DataVolume] IS NOT NULL) THEN [Project1].[DataVolume] ELSE cast(0 as decimal(18))
END) / cast(1048576 as decimal(18)) AS [A2],
CASE WHEN ([Project1].[Minutes] IS NOT NULL) THEN [Project1].[Minutes] ELSE cast(0 as decimal(18))
END AS [A3]
FROM ( SELECT
[Extent8].[Minutes] AS [Minutes],
[Extent8].[DataVolume] AS [DataVolume],
[Extent8].[UsageCharge] AS [UsageCharge],
[Extent9].[CostCentreGUID] AS [CostCentreGUID],
[Extent10].[DepartmentGUID] AS [DepartmentGUID]
FROM [dbo].[InvoiceCTN] AS [Extent6]
LEFT OUTER JOIN [dbo].[Department] AS [Extent7] ON [Extent6].[DepartmentID]
= [Extent7].[DepartmentID]
LEFT OUTER JOIN [dbo].[InvoiceCTNItemised] AS [Extent8] ON (([Extent6].[MobileNumber]
= [Extent8].[MobileNumber]) OR (([Extent6].[MobileNumber] IS NULL) AND ([Extent8].[MobileNumber] IS NULL))) AND (([Extent6].[InvoiceDateID] = [Extent8].[InvoiceDateID]) OR (([Extent6].[InvoiceDateID] IS NULL) AND ([Extent8].[InvoiceDateID] IS NULL)))
INNER JOIN [dbo].[CostCentre] AS [Extent9] ON [Extent6].[CostCentreID]
= [Extent9].[CostCentreID]
LEFT OUTER JOIN [dbo].[Department] AS [Extent10] ON [Extent6].[DepartmentID]
= [Extent10].[DepartmentID]
WHERE ([Extent6].[InvoiceDateID] = 16) AND (0 = 0 OR 0 = CAST( [Extent7].[DepartmentType]
AS int))
) AS [Project1]
) AS [Project1]
GROUP BY [K1]
) AS [GroupBy2]
) AS [Project2]
) AS [Project3] ) AS [Project4] ON ([GroupBy1].[K2] = [Project4].[C1]) OR (([GroupBy1].[K2] IS NULL) AND ([Project4].[C1] IS NULL))
) AS [Project5]
ORDER BY [Project5].[C4] DESC
and the C# code is
public DataTable GetCTNInvoiceLoadGroupByLinkSource(string LinkType, int DepartmentTypeID, int InvoiceDateID, int UserID, bool showAll = false)
bool IsLinkTypeCostCentre = LinkType == "CostCentre" ? true : false;
var q1 = (from inv in db.InvoiceCTNs.AsNoTracking()
where inv.InvoiceDateID == InvoiceDateID && (DepartmentTypeID == 0 || inv.Department.DepartmentType
== DepartmentTypeID)
select inv);
if (!showAll)
q1 = (from inv in q1
join ulr in db.UserLinkRels.AsNoTracking() on new { ID = (isCostCentre ? inv.CostCentreID : inv.DepartmentID) } equals new { ID =
ulr.LinkID }
where ulr.UserID == UserID
select inv);
var q2 = (from inv in q1
join invCTNItem in db.InvoiceCTNItemiseds.AsNoTracking() on new { inv.MobileNumber, inv.InvoiceDateID } equals new { invCTNItem.MobileNumber,
invCTNItem.InvoiceDateID } into g_join
from invCTNItem in g_join.DefaultIfEmpty()
select new{inv,invCTNItem});
#region GroupBy
var InvoiceCTN_GroupBy = (from inv in q1
group inv by new { Description = (IsLinkTypeCostCentre
? inv.CostCentre.CostCentreDescription : inv.Department.DepartmentDescription), GUID = (IsLinkTypeCostCentre ? inv.CostCentre.CostCentreGUID : inv.Department.DepartmentGUID), ID = (IsLinkTypeCostCentre ? inv.CostCentreID : inv.DepartmentID) } into g
select new
GUID = g.Key.GUID,
Description
= g.Key.Description,
Count = g.Count(),
ProRata =
g.Sum(inv => inv.ProRata),
AgreedLineRental
= g.Sum(inv => inv.MonthLineRental),
TotalCost
= g.Sum(inv => inv.TotalCost)
var InvoiceCTNItemised_GroupBy = (from g in q2
group g.invCTNItem by new { Guid = (IsLinkTypeCostCentre ? g.inv.CostCentre.CostCentreGUID : g.inv.Department.DepartmentGUID) } into g
select new
GUID = g.Key.Guid,
EligibleSMS = g.Count(i => i.CallType == "SMS"),
TotalUsageCost = Math.Round((double)(g.Sum(i => (i.UsageCharge != null ? i.UsageCharge : default(decimal)))), 2),
EligibleData = Math.Round((double)(g.Sum(i => (i.DataVolume != null ? i.DataVolume : default(decimal)) / 1048576)), 2),
EligibleMinutes = Math.Round((double)(g.Sum(i => (i.Minutes != null ? i.Minutes : default(decimal)))), 2),
#endregion
var q_join = (from q_1 in InvoiceCTN_GroupBy
join q_2 in InvoiceCTNItemised_GroupBy
on q_1.GUID equals q_2.GUID into g
from q_2 in g.DefaultIfEmpty()
select new
GUID = q_1.GUID,
Description = q_1.Description,
Count = q_1.Count,
q_2.EligibleSMS,
q_1.ProRata,
q_1.AgreedLineRental,
q_2.TotalUsageCost,
q_1.TotalCost,
q_2.EligibleData,
q_2.EligibleMinutes
}).OrderByDescending(g => g.TotalCost);
return q_join.ToList().ToDataTable();
Hello Rohit.sindhu90,
>> I am getting error The wait opertaion timed out but when i get run linq query to Sql it will run in 5 sec.
Could you please tell which line causes this exception and what the details exception message is? Currently, it is hard to know why you encounter the timeout exception.
>> And also tried with increasing timeout to 10*60.
Since it is not clear if you encounter the connection timeout:
https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectiontimeout(v=vs.110).aspx or command timeout:
https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.commandtimeout(v=vs.110).aspx, I suggest that you could both set them to be a longer value as 1800s. And from your provided code, your query is a complex query and if your data is
large, it may take more than 10*60 time. You could first reduce the amount of query data to see if it is caused by the amount of data is too large.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
SQL Azure - Intermittent The wait operation timed out
I have a website engine which runs a few hundred "white label" sites. It's hosted on Azure with a SQL Azure Business database. Generally everything is fine - it all works and runs at a good speed.
However, throughout the day I get maybe 40 or 50 of the error:
System.ComponentModel.Win32Exception: The wait operation timed out
Please don't refer me to the connectivity blog at http://blogs.msdn.com/b/sqlazure/archive/2010/03/22/9982979.aspx as this seems to refer to problems where you just can't connect. My problem is that it's fine most of the time, but I still get these
intermittently.
This is sometimes on the main database, but we're also using a database for sessions and this gets the errors too. Both databases are on the same server.
I also get errors like:
An existing connection was forcibly closed by the remote host
and:
System.Data.SqlClient.SqlException: The service has encountered an error processing your request. Please try again. Error code 40143. A severe error occurred on the current command. The results, if any, should be discarded.
and, when evil bots are hammering the site:
System.Data.SqlClient.SqlException: Resource ID : 1. The request limit for the database is 180 and has been reached. See 'http://go.microsoft.com/fwlink/?LinkId=267637' for assistance.
Each website can potentially have a Google footprint of around 10,000 pages. The result it that bots are hitting the sites regularly, indexing lots of pages for hundreds of sites. I also have some worker roles doing data work. The database is clearly busy!
I am hoping to add 2 or 3 times the number of sites that I currently have to the "engine".
I am looking at efficiency where possible, but the sites are clearly under a fair load from bots and visitors.
My question is, will one of the upgrades from Business to S2, P1, P2 or P3 resolve these problems? The financial cost of these database instances stagger greatly so I wouldn't want to update and find I'm left with the same problems but am paying many times
more each month.
Thank you in advance.Hello,
For Web/Business edition database, the maximum limit of concurrent requests is 180. Beyond this limit, you will receive error.
The Max woker threads for Standard(S2) is 100, you should upgrade your database to Permium tier.
The concurrent requests limit of premium database varies depending on the reservation size of a premium database. For example, for P1, the max worker threads is 200.
Reference:Azure SQL Database Resource Governance
Azure SQL Database Service Tiers and Performance Levels
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
2012 R2 Fax Server -- "The Message could not be sent. The wait operation timed out."
I receive the following error on a newly installed 2012 R2 fax server when sending from the Windows Fax and Scan console:
"The Message could not be sent. The wait operation timed out."
The test fax that fails only contains text that I type into the body. However, if I add an attachment, the fax is successful.
Any ideas??Hi,
Would you please let me confirm whether install any third-party application on the Windows Server 2012 R2?
Please perform a clean boot to eliminate software conflicts and monitor the result. Please also check if you install all necessary updates on the server.
Meanwhile, please run
sfc /scannow command to scan all protected system files and check if find issues.
Please also refer to following article and check if can help you.
Troubleshooting Your Fax Server
By the way, there is a similar thread. Please also refer to following thread and check if can help you.
Windows
Fax and scan (Windows 8)
Hope this helps.
Best regards,
Justin Gu -
I have a web app that is backed by a an Azure SQL Database. The problem is that I had multiple issues when connecting to the database mainly when trying to establish a connection, or timeouts. This is the log I just encountered when trying to use the web
app.
[Win32Exception (0x80004005): The wait operation timed out]
[SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=21970; handshake=1; ]
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +671
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +116
System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1012
System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +6712291
System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +152
System.Data.SqlClient.SqlConnection.Open() +229
System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +102Hi Affar2k,
According to your description, we need to verify if there is no network issue and the Sqlclient version is older than .NET 4.5. You can try to connect to the Windows Azure SQL database via SSMS and check if it can run well. When you
connect to the SQL Azure database via ADO.NET, you need to verify that the server name and passwords are right in the connection string.
For more information, you can review the following article about how to connect to Windows Azure SQL Database using ADO.NET.
http://msdn.microsoft.com/en-us/library/windowsazure/ee336243.aspx
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support -
Hi, I have been trying for push Notification Services in Windows 8 Store Apps. I am requesting For notification channel in the following manner
publicasyncvoidregisterChannelForNotification(
try
TileUpdateManager.CreateTileUpdaterForApplication().Clear();
BadgeUpdateManager.CreateBadgeUpdaterForApplication().Clear();
varvProfile =
NetworkInformation.GetInternetConnectionProfile();
if(vProfile.GetNetworkConnectivityLevel()
== NetworkConnectivityLevel.InternetAccess)
varvChannel =
awaitPushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
varvBuffer =
CryptographicBuffer.ConvertStringToBinary(vChannel.Uri,
BinaryStringEncoding.Utf8);
varvUri =
CryptographicBuffer.EncodeToBase64String(vBuffer);
varvClient =
newHttpClient();
try
varvResponse =
awaitvClient.GetAsync(newUri(Constants.SERVER_URL));
if(vResponse.IsSuccessStatusCode)
sendDeviceTokenRequest(vChannel.Uri);
catch(HttpRequestException)
catch(Exceptionex)
This gives me the exception,The wait operation timed out. (Exception from HRESULT: 0x80070102) when requesting for pushNotification channel. What could be the possible reason and how to solve this issue
Nikhil Sharma10Hi,
I have currently the same problem with requesting a push channel.
But iam not sure if it is a problem with my phone, or my application.
I cant get rid of this error. The solution says: "retry the channel request later". But it doesn
matter if I retry the channel request later (triggerd by pressing a button) the same day or the next day.
I resetted my windows phone, installed the newest dev preview, but it is still not working. But the same code worked a few months ago. On the same phone.
Thats why Iam not sure what I changed (accidentally) in my app code which causes now the 0x80070102 error.
Any ideas why the same code is not working any more?
Thanks
Greetings from Germany
Simon -
Disk Erase failed with the error- Operation timed out
I've checked my computer- Mac Book White in Apple store, everything is fine just the hard disk has been corrupted. Needed to erase and reinstall. By the time I wanted to erase it, I can't erase and appears "Disk Erase failed with the error- Operation timed out".
Anyone knows how to solve this question would be nice.
ThanksWell give this a try:
Repairing the Hard Drive and Permissions
Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
Now download a utility like TinkerTool System or Leopard Cache Cleaner - VersionTracker or MacUpdate - and use it to clear out your system, user, and font caches.
And, try this for the software update issue:
Fix for Software Update
See Troubleshooting Automatic Software Update in Mac OS X.
Delete the following files:
/Library/Preferences/com.apple.SoftwareUpdate.plist
/Home/Library/Preferences/com.apple.SoftwareUpdate.plist
/Home/Library/Preferences/ByHost/com.apple.SoftwareUpdate.xxx.plist
"xxx" is a number.
/Home/Library/Caches/com.apple.SoftwareUpdate/ (delete entire folder) -
Dear all,
I am facing one problem with my user pc "The wait operation time out"
ERROR=
Aconnection was successfully established with the server. but then an error occurred during the pre-loging handshake. (provided , SSL providing error-0 , The wait operation time out microsoft SQL server error- 258.
my user-pc use windows 7 and connect VPN by using "Sonic-wall" we connect successfully and get my remote server IP ping reply but when try to access remote server database that time I am getting this error
At the same time using same network and id can connect the server from vpn and access database from other
system.
please help me sort it out this issue.
thanks
sajalHi Sajal,
It is possible that remote machine(server) is up but please check whether database server is up or not.
Please contact database administrator to know the status of database. This will help you to know the cause.
If database is down you cannot connect it. -
I am getting the error when trying to convert a word file to pdf.
My Adobe Lifecycle ES is installed on 2GM RAM . Is this the issue for the below error.
ALC-PDG-001-000-ALC-PDG-010-015-The conversion operation timed out before it could be completed. Please report this error to the system administrator.
Please provide me a valuable solution. I am new to Adobe ls es.This is a forum for Acrobat desktop product. For LiveCycle, try this forum
http://forums.adobe.com/community/livecycle/livecycle_es/pdf_generator_es -
IIS Manager 6.0 Wait Operation Time Out on connecting to remote server
I'm looking to configure SMTP on Server 2012 Core, I've installed the feature and remote management/administration tools and web management console and web management compatability. When I attempt to connect via IIS 6.0 Manager I immediately receive "The
wait operation timed out"
I've removed and re-installed the SMTP-Server feature without success
any suggestions would be appreciated.I encountred this issue the IIS 6.0 requires the SMTP if you want to configure the remote management of the Server Core then try to follow this youtube podcast
watch?v=Pim1T6z6DJM Configure a Win 7 machine to control
of this serie that shows how to install and configure a web server core from A to Z
http://www.youtube.com/playlist?list=PLzayUN5B2cXMoyziV4oUs94P6EZT6QVmc
watch?v=5z1NiWUJdGU Wipe generation
watch?v=Q3BoLkWWAC4 hard disk preparation
watch?v=lOPvy-cn0Uk server core installation
watch?v=gTnOUJfRkDg configure the web server
watch?v=0ofvknXMNsc install .net framework in the webserver
watch?v=K4ADBzZeM6E install the web server role
watch?v=oGHC0sbe17Y remote control the server
watch?v=SpzAsRkjV40 continue the remote configuration
watch?v=XjPD8U_y29I Create and alias for the web server
watch?v=Pim1T6z6DJM Configure a Win 7 machine to control
Enjoy the vids
The complexity resides in the simplicity Follow me at: http://smartssolutions.blogspot.com -
Reading azure table - The request has timed out
Hi,
I am developing a Windows store application with offline synchronization using Azure Mobile services. Have a table called
IMobileserviceSyncTable<PRODUCT> ProductTbl= App.MobileServiceClient.GetSyncTable<PRODUCT>();
When I am calling ProductTbl.PullAsync("ProductSync_Table", productTbl.Where(x => x.SKU == pItem.SKU);
The PullAsync() method is resulting an exception as Request Timed out with Service Code 503: Service Unavailable.
PRODUCT table has 7million records in azure but for this query results only one record.
Under Mobile Service logs have the following exception:
Error
Exception=System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
--- End of inner exception stack trace ---
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.<Reader>b__c(DbCommand t, DbCommandInterceptionContext`1 c)
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext)
at System.Data.Entity.Internal.InterceptableDbCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
--- End of inner exception stack trace ---
at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
at System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__6()
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Web.Http.OData.Query.TruncatedCollection`1..ctor(IQueryable`1 source, Int32 pageSize)
at System.Web.Http.OData.Query.ODataQueryOptions.LimitResults[T](IQueryable`1 queryable, Int32 limit, Boolean& resultsLimited)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Http.OData.Query.ODataQueryOptions.LimitResults(IQueryable queryable, Int32 limit, Boolean& resultsLimited)
at System.Web.Http.OData.Query.ODataQueryOptions.ApplyTo(IQueryable query, ODataQuerySettings querySettings)
at System.Web.Http.OData.EnableQueryAttribute.ApplyQuery(IQueryable queryable, ODataQueryOptions queryOptions)
at System.Web.Http.OData.EnableQueryAttribute.ExecuteQuery(Object response, HttpRequestMessage request, HttpActionDescriptor actionDescriptor)
at System.Web.Http.OData.EnableQueryAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutedAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext(), Id=39b9d12d-ce59-4f0f-af96-68d07ebd6eb4, Category='App.Filters'
Can anyone please tell me how to get out of this issue.If this is timing out on you:
var items=ProductTbl.Where(x => x.SKU == pItem.SKU).ToCollectionAsync();
Then you most likely need to add an index on your SKU column, or use another filter that can have it avoid needing to look at all 7 million records.
Have you timed how long the raw query takes to do directly on your SQL db?
Most likely you may need to setup some indices to use. For offline sync, it will want to sort & filter by "__updatedAt" in addition to your filters. So that
is something to take in mind when optimizing your SQL performance. -
DB Connect error: ORA-12535: TNS:operation timed out
Hi,
I am trying to connect to a external oracle database from SAP.
I entered the TNS entry of the external DB in the TNSNAMES.ORA and configured it in the table DBCON.
But i am not able to connect to the external database. It is throwing the error
"sql error 12.535 ; occured:ORA-12535: TNS:operation timed out"
But i was able to connect the database from my system through TNSPING and also from TOAD.
Do i need to configure any parameter in LISTENER.ORA in SAP or in the external database?Hi,
Thanks for the reply.
The note which you specified was with BI objects. But i am trying to connect from SAP R/3 to a remote Oracle database.
I got connected to the remote Oracle database for an hour and it got disconnected by saying "TNS operation timed out".
The CONNECT_TIMEOUT parameter in LISTERER.ORA of the remote Oracle database is missing.
Will this may be the cause for the "TNS operation timed out". -
Hi,
I created a simple plugin and since i wanted to use Early Binding i added Xrm.cs file to my solution.After i tried registering the plugin (using the Plugin Registration Tool) the plugin does not gets registered and i get the below mentioned Exception.
Unhandled Exception: System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:59.9139778. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this
operation may have been a portion of a longer timeout.
Server stack trace:
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Update(Entity entity)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.UpdateCore(Entity entity)
at Microsoft.Crm.Tools.PluginRegistration.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type)
at Microsoft.Crm.Tools.PluginRegistration.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e)
Inner Exception: System.TimeoutException: The HTTP request to 'https://demoorg172.api.crm.dynamics.com/XRMServices/2011/Organization.svc' has exceeded the allotted timeout of 00:01:59.9430000. The time allotted to this operation may have been a portion of a
longer timeout.
at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
Inner Exception: System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
And to my Surprise after i remove the Xrm.cs file from my solution the Plugin got registered!
Not understanding what exactly is the issue.
Any Suggestions are highly appreciated.
Thanks,
Shradha
Hello Shardha,
I really appreciate that you have faced this issue.This is really very strange issue and basically it occurs because of big size of your early bound class and slow internet
connection.
I would strictly recommend you to reduce the file size of your early bound class and then register.By default early bound class is created for all the entities which are
present in CRM(System entities as well custom entities).Such kind of early bound classes takes lots of time to register on server and hence timeout exception comes.
There is some standard define to reduce the size of early bound class.Please follow the link to get rid from big size of early bound class.
Create a new C# class library project in Visual Studio called SvcUtilFilter.
In the project, add references to the following:
CrmSvcUtil.exe(from sdk) This exe has the interface we will implement.
Microsoft.Xrm.Sdk.dll (found in the CRM SDK).
System.Runtime.Serialization.
Add the following class to the project:
using System;
using System.Collections.Generic;
using System.Xml.Linq;
using Microsoft.Crm.Services.Utility;
using Microsoft.Xrm.Sdk.Metadata;
namespace SvcUtilFilter
/// <summary>
/// CodeWriterFilter for CrmSvcUtil that reads list of entities from an xml file to
/// determine whether or not the entity class should be generated.
/// </summary>
public class CodeWriterFilter : ICodeWriterFilterService
//list of entity names to generate classes for.
private HashSet<string> _validEntities = new HashSet<string>();
//reference to the default service.
private ICodeWriterFilterService _defaultService = null;
/// <summary>
/// constructor
/// </summary>
/// <param name="defaultService">default
implementation</param>
public CodeWriterFilter( ICodeWriterFilterService defaultService )
this._defaultService = defaultService;
LoadFilterData();
/// <summary>
/// loads the entity filter data from the filter.xml file
/// </summary>
private void LoadFilterData()
XElement xml = XElement.Load("filter.xml");
XElement entitiesElement = xml.Element("entities");
foreach (XElement entityElement in entitiesElement.Elements("entity"))
_validEntities.Add(entityElement.Value.ToLowerInvariant());
/// <summary>
/// /Use filter entity list to determine if the entity class should be generated.
/// </summary>
public bool GenerateEntity(EntityMetadata entityMetadata, IServiceProvider services)
return (_validEntities.Contains(entityMetadata.LogicalName.ToLowerInvariant()));
//All other methods just use default implementation:
public bool GenerateAttribute(AttributeMetadata attributeMetadata, IServiceProvider services)
return _defaultService.GenerateAttribute(attributeMetadata, services);
public bool GenerateOption(OptionMetadata optionMetadata, IServiceProvider services)
return _defaultService.GenerateOption(optionMetadata, services);
public bool GenerateOptionSet(OptionSetMetadataBase optionSetMetadata, IServiceProvider services)
return _defaultService.GenerateOptionSet(optionSetMetadata, services);
public bool GenerateRelationship(RelationshipMetadataBase relationshipMetadata, EntityMetadata otherEntityMetadata, IServiceProviderservices)
return _defaultService.GenerateRelationship(relationshipMetadata, otherEntityMetadata, services);
public bool GenerateServiceContext(IServiceProvider services)
return _defaultService.GenerateServiceContext(services);
This class implements the ICodeWriterFilterService interface. This interface is used by the class generation
utility to determine which entities, attrributes, etc. should actually be generated. The interface is very simple and just has seven methods that are passed metadata info and return a boolean indicating whether or not the metadata should be included
in the generated code file.
For now I just want to be able to determine which entities are generated, so in the constructor I read from an XML
file (filter.xml) that holds the list of entities to generate and put the list in a Hashset. The format of the xml is this:
<filter>
<entities>
<entity>systemuser</entity>
<entity>team</entity>
<entity>role</entity>
<entity>businessunit</entity>
</entities>
</filter>
Take a look at the methods in the class. In the GenerateEntity method, we can simply check the EntityMetadata parameter
against our list of valid entities and return true if it's an entity that we want to generate.
For all of the other methods we want to just do whatever the default implementation of the utility is. Notice
how the constructor of the class accepts a defaultService parameter. We can just save a reference to this default service and use it whenever we want to stick with the default behavior. All of the other methods in the class just call the default
service.
To use our extension when running the utility, we just have to make sure the compiled DLL and the filter.xml file
are in the same folder as CrmSvcUtil.exe, and set the /codewriterfilter command-line argument when running the utility (as described in the SDK):
crmsvcutil.exe /url:http://<server>/<org>/XrmServices/2011/Organization.svc /out:sdk.cs /namespace:<namespace> /codewriterfilter:SvcUtilFilter.CodeWriterFilter,SvcUtilFilter
/username:[email protected] /password:xxxx
That's it! You now have a generated sdk.cs file that is only a few hundred kilobytes instead of 5MB.
One final note: There is actually a lot more you can do with extensions to the code generation utility.
For example: if you return true in the GenerateOptionSet method, it will actually generated Enums for each CRM picklist (which it doesn't normally do by default).
Also, the source code for this SvcUtilFilter example can be found here.
Use at your own risk, no warranties, etc. etc.
Please mark as a answer if this post is useful to you. -
When i was waiting for an hour for itunes to grading my 2nd generation ipod touch to a 4.2.1 and it was about done, it suddenly said the network connection timed out and that made the upgrading a fail. Why does it do that? and what does it mean?
Error -3259 is a network timeout error, usually. This article might help:
http://support.apple.com/kb/TS2799 -
The operation timed out while writing (kCFStreamStatusOpening)
iMessage cant send files. This is what it says in the file transfer window. "the operation timed out while writing (kCFStreamStatusOpening)" Help
Hi,
In the past in the Mountain Lion (Messages 7.x.x) I have sent quite large photos via the iMessages account of several GBs of data.
I have yet to do the same in Messages 8 (Mavericks) but don't expect for this to have changed.
I do know that the Messages 8 app tends to zip some files before sending when dragged from other apps such as a Browser or iPhoto.
I have sent a Keynote file to my iPhone in Messages 7.x.x but this was only 334 kb
What sort of files are you trying to send ?
If not zipped already it may pay to try this first.
7:21 pm Sunday; November 3, 2013
iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
Hello
I REALLY NEED SOME GUIDANCE ON THIS ERROR.
Does anyone know why this could be happening. I am getting the error: -2147012894 (80072ee2) the operation timed out. I have this code in an Excel macro. I am sending the URL an XML string and am expecting a response
but I am getting the time out error on the SEND. I have tried using the SetTimeouts method, but I still get the error.
Could it be my machine settings? Does WinHTTPRequest work with Excel VBA? I am just lost at this point. I have researched, and have seen examples of Excel VBA using WinHTTPRequest. I do not know why I am getting
the error.
Your help is very much appreciated. I really need some direction on how to resolve this issue.
smsemail
Private Sub CmdGetData_Click()
colLabel = 1
colStreetAddress = 23
colCity = 24
colState = 25
colZipCode = 26
colZipFour = 27
lastRow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
For rw = 4 To lastRow
If Worksheets("Sheet1").Cells(rw, colStreetAddress).Value = "" Then GoTo nextLabel:
If Worksheets("Sheet1").Cells(rw, colCity).Value = "" And _
Worksheets("Sheet1").Cells(rw, colState).Value = "" And _
Worksheets("Sheet1").Cells(rw, colZipCode).Value = "" Then GoTo nextLabel:
If (Worksheets("Sheet1").Cells(rw, colCity).Value = "" And _
Worksheets("Sheet1").Cells(rw, colState).Value = "") Or _
Worksheets("Sheet1").Cells(rw, colZipCode).Value = "" Then GoTo nextLabel:
strStreetAddress = Worksheets("Sheet1").Cells(rw, colStreetAddress).Value
strCity = Worksheets("Sheet1").Cells(rw, colCity).Value
strState = Worksheets("Sheet1").Cells(rw, colState).Value
strZipCode = Worksheets("Sheet1").Cells(rw, colZipCode).Value
'Initialize variables
strXML = ""
Label = Worksheets("Sheet1").Cells(rw, colLabel).Value
'Write XML header information
Call WriteXMLHeader
'Write address information to XML file
strXML = strXML & "<p3:AddressCriteria>"
strXML = strXML & "<p3:CanadianProvince></p3:CanadianProvince>"
strXML = strXML & "<p4:LocationCityName>" & strCity & "</p4:LocationCityName>"
strXML = strXML & "<p4:LocationCountyName></p4:LocationCountyName>"
strXML = strXML & "<p4:LocationPostalCode></p4:LocationPostalCode>"
strXML = strXML & "<p4:LocationStateUSPostalServiceCode>" & strState & "</p4:LocationStateUSPostalServiceCode>"
strXML = strXML & "<p4:StreetFullText>" & strStreetAddress & "</p4:StreetFullText>"
strXML = strXML & "</p3:AddressCriteria>"
'Write XML footer information
Call WriteXMLFooter
'URI
strURI = "https://a325.wgs.thomson.com/api/v1/person/searchResults"
strUserID = "xxxxxxx"
strUserPassword = "yyyyyyyy"
Set httpRequest = CreateObject("WinHttp.WinHttpRequest.5.1")
httpRequest.SetTimeouts 80000, 80000, 90000, 90000
With httpRequest
.Open "POST", strURI, False
.SetRequestHeader "Content-type", "application/xml"
.SetRequestHeader "Content-Length", Len(strXML)
.SetRequestHeader "Authorization", "Basic " & EncodeBase64(strUserID & ":" & strUserPassword)
''.SetClientCertificate ("LOCAL_MACHINE\Personal\Certificates\WGS CA\kchin tmp dev cert")
.SetClientCertificate ("LOCAL_MACHINE\Personal\kchin tmp dev cert")
.Send (strXML)
End With
If httpRequest.Status = 200 Then
MsgBox httpRequest.GetAllResponseHeaders
Else
MsgBox httpRequest.Status & ": " & httpRequest.StatusText
End If
MsgBox httpRequest.ResponseText
nextLabel:
Next rw
MsgBox "PROCESSING HAS COMPLETED", vbOKOnly, "E-Interdiction Clear Update"
End Sub
Public Sub WriteXMLHeader()
strXML = "<?xml version=" & Chr(34) & "1.0" & Chr(34) & "?>"
strXML = strXML & "<psr1:PersonSearchRequest " & "xmlns:psr1=" & Chr(34) & "http://wgs.thomsonreuters.com/clear/api/search/1.0 " & Chr(34) & " xmlns:xsi=" & Chr(34) & "http://www.w3.org/2001/XMLSchema-instance" & Chr(34) & ">"
strXML = strXML & "<PermissiblePurpose>"
strXML = strXML & "<GLB>L</GLB>"
strXML = strXML & "<DPPA>1</DPPA>"
strXML = strXML & "<VOTER>2</VOTER>"
strXML = strXML & "</PermissiblePurpose>"
strXML = strXML & "<Reference>S2S Test</Reference>"
strXML = strXML & "<Criteria>"
strXML = strXML & "<p1:PersonCriteria"
strXML = strXML & "xmlns:p1=" & Chr(34) & "http://wgs.thomsonreuters.com/clear/api/search/person-search/niem/1.0" & Chr(34) & ""
strXML = strXML & "xmlns:p2=" & Chr(34) & "http://niem.gov/niem/structures/2.0" & Chr(34) & ""
strXML = strXML & "xmlns:p3=" & Chr(34) & "http://wgs.thomsonreuters.com/clear/api/search/person-search-extension/niem/1.0" & Chr(34) & ""
strXML = strXML & "xmlns:p4=" & Chr(34) & "http://niem.gov/niem/niem-core/2.0" & Chr(34) & ">"
End Sub
Public Sub WriteXMLFooter()
strXML = strXML & "</p1:PersonCriteria>"
strXML = strXML & "</Criteria>"
strXML = strXML & "<Datasources>"
strXML = strXML & "<PublicRecordCriminalAndInfractions>false</PublicRecordCriminalAndInfractions>"
strXML = strXML & "<PublicRecordPeople>true</PublicRecordPeople>"
strXML = strXML & "<NPIRecord>false</NPIRecord>"
strXML = strXML & "<WorkAffiliations>false</WorkAffiliations>"
strXML = strXML & "<RealTimeIncarcerationAndArrests>false</RealTimeIncarcerationAndArrests>"
strXML = strXML & "</Datasources>"
strXML = strXML & "</psr1:PersonSearchRequest>"
End Sub
Public Function EncodeBase64(text As String) As String
Dim arrData() As Byte
arrData = StrConv(text, vbFromUnicode)
Dim objXML As MSXML2.DOMDocument
Dim objNode As MSXML2.IXMLDOMElement
Set objXML = New MSXML2.DOMDocument
Set objNode = objXML.createElement("b64")
objNode.DataType = "bin.base64"
objNode.nodeTypedValue = arrData
EncodeBase64 = objNode.text
Debug.Print EncodeBase64
Set objNode = Nothing
Set objXML = Nothing
End FunctionKristin --- the C# forum may not be the place for web service questions, but the ASP.NET forums is not a correct suggestion for Karthik's question either. ASP.NET really has absolutely nothing to do with a web service. The WCF forum may have been
a better suggestion (although you don't necessarily have to have a WCF service for RESTful web services) ... So, could you move this thread here:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf
Karthik --- sorry I couldn't help you more, but I've seriously run out of ideas. If Kristen can't move your thread out of this Off-Topic forum, then perhaps you could re-post it to the WCF forums from the link I provided above. Perhaps I should have
moved the thread to begin with (I can do that from the C# forum, but I cannot do it from this Off-Topic forum, sorry)
~~Bonnie DeWitt [C# MVP]
http://geek-goddess-bonnie.blogspot.com
Maybe you are looking for
-
Downgrading from windows 8.1 single language to windows 8
Hi, i want to downgrade my laptop pavilion g6 2231tx from windows 8.1 single language to windows 8 which came in default with my laptop. My question: since my lappy came pre installed with the windows 8 (64bit) and then got upgraded. So if i refresh
-
Reinstall Mac OS X Lion with saving data
Hello, I want to reinstall Mac OS X Lion with saving my programms, docs and photos. What should I do then? I know that Time Machine backups data with the system. But Ineed to backup my files and then on clear system I want to restore this backup. P
-
how can I unistall photoshop cc for pc? 'cos I have some problem with recognition of .psd files. So I would try to unistall and re-install photoshop cc on my pc. But I cannot find how to unistall it. tnx
-
Add Division Attribute to Service Senario.
Hi I am beginner and practicing CRM, I am creating a ORG Struct ( service type). I wanted to know if it possible to add Division Attribute to the service scenario. Division attribute is displayed only when i select sales scenario. Please let me know
-
Dear all, Here my client selling a printer to a customer later on customer wants to fill the printer Cartridges. Now customer will raise a request to my client. Based on that request my client will replace the catridges. first OUr client will send th