Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException - windows

I fired up my Windows 7 machine today and attempting to start Intemgr.exe the process terminates immediately. So I started the process under the debugger. It seems the process is terminating with the following exception: System.Management.Automation.CmdletInvocationException. Dumping all exceptions on the heap yields the following results. The heap also has a few more exception listed below.
So based on my research this exception happens when a cmdlet encounters a terminating error. The method call just before is ProcessRecord(). Which Provides a record-by-record processing functionality for the cmdlet. The Windows PowerShell runtime calls this method multiple times for each instance of the cmdlet in the pipeline.
How can I inspect the pipeline from the debugger?
Exception object: 0000000002702940
Exception type: System.Management.Automation.ItemNotFoundException
Message: Cannot find path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ApplicationServer\ApplicationServer.dll' because it does not exist.
InnerException: <none>
StackTrace (generated):
SP IP Function
000000001FF5E2C0 000007FEE1348846 System_Management_Automation_ni!System.Management.Automation.LocationGlobber.ExpandMshGlobPath(System.String, Boolean, System.Management.Automation.PSDriveInfo, System.Management.Automation.Provider.ContainerCmdletProvider, System.Management.Automation.CmdletProviderContext)+0xdb6
000000001FF5E440 000007FEE1346162 System_Management_Automation_ni!System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(System.String, System.Management.Automation.CmdletProviderContext, Boolean, System.Management.Automation.Provider.CmdletProvider ByRef)+0x442
000000001FF5E540 000007FEE1345888 System_Management_Automation_ni!System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(System.String, Boolean, System.Management.Automation.CmdletProviderContext, System.Management.Automation.Provider.CmdletProvider ByRef)+0x228
000000001FF5E610 000007FEE134970A System_Management_Automation_ni!System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(System.String, Boolean, System.Management.Automation.CmdletProviderContext, System.Management.Automation.ProviderInfo ByRef, System.Management.Automation.Provider.CmdletProvider ByRef)+0x22a
000000001FF5E6D0 000007FEE136C33D System_Management_Automation_ni!System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(System.String, Boolean, System.Management.Automation.ProviderInfo ByRef, System.Management.Automation.Provider.CmdletProvider ByRef)+0x7d
000000001FF5E740 000007FEE17FC95C System_Management_Automation_ni!System.Management.Automation.PathIntrinsics.GetResolvedProviderPathFromPSPath(System.String, System.Management.Automation.ProviderInfo ByRef)+0x7c
000000001FF5E7C0 000007FEE18BF50B System_Management_Automation_ni!Microsoft.PowerShell.Commands.ModuleCmdletBase.GetResolvedPath(System.String, System.Management.Automation.ExecutionContext)+0x6b
StackTraceString: <none>
HResult: 80131501
****************************************************************************************
Exception object: 0000000002715c50
Exception type: System.IO.FileNotFoundException
Message: The specified module 'ApplicationServer' was not loaded because no valid module file was found in any module directory.
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80070002
****************************************************************************************
Exception object: 00000000027bc4d0
Exception type: System.NotImplementedException
Message: The method or operation is not implemented.
InnerException: <none>
StackTrace (generated):
SP IP Function
000000001FF5E0A0 000007FF001D3D08 Microsoft_ApplicationServer_Management_Tools!Microsoft.ApplicationServer.Management.Tools.PowershellHost.NoConsolePSRawUserInterface.get_BufferSize()+0x28
000000001FF5E0D0 000007FEE12EC281 System_Management_Automation_ni!System.Management.Automation.Internal.Host.InternalHostRawUserInterface.get_BufferSize()+0x61
000000001FF5E130 000007FEDF893FAA Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.ConsoleLineOutput.get_ColumnNumber()+0x8a
000000001FF5E1A0 000007FEDF893D04 Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessOutOfBandPayload(Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData)+0xc4
000000001FF5E210 000007FEDF893BC4 Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessPayload(Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData, OutputContext)+0xe4
000000001FF5E280 000007FEDF897110 Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessObject(System.Management.Automation.PSObject)+0x1a0
000000001FF5E300 000007FEDF89238B Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessRecord()+0xdb
000000001FF5E360 000007FEDF896AAE Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.FrontEndCommandBase.ProcessRecord()+0x3e
000000001FF5E3B0 000007FEE13726F2 System_Management_Automation_ni!System.Management.Automation.CommandProcessor.ProcessRecord()+0x212
StackTraceString: <none>
HResult: 80004001
****************************************************************************************
Exception object: 00000000027bc770
Exception type: System.Management.Automation.CmdletInvocationException
Message: The method or operation is not implemented.
InnerException: System.NotImplementedException, use !PrintException 00000000027bc4d0 to see more
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131501
****************************************************************************************
Exception object: 00000000027bcbd8
Exception type: System.Management.Automation.PipelineStoppedException
Message: The pipeline has been stopped.
InnerException: <none>
StackTrace (generated):
SP IP Function
000000001FF5E3B0 000007FEE1ACB9B8 System_Management_Automation_ni!System.Management.Automation.CommandProcessor.ProcessRecord()+0x7594d8
000000001FF5E450 000007FEE1357B44 System_Management_Automation_ni!System.Management.Automation.CommandProcessorBase.DoExecute()+0x84
000000001FF5E4C0 000007FEE13879C9 System_Management_Automation_ni!System.Management.Automation.Internal.PipelineProcessor.DoStepItems(System.Object, System.Collections.Hashtable, Boolean)+0x79
StackTraceString: <none>
HResult: 80131501

I found the answer to my question here.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/9d445c21-22ee-45ee-80fe-1d39a3b40304/appfabric-crashes-iis-manager-when-powershell-4-is-installed-server-2008-r2-sp1?forum=velocity
Uninstall App-Fabric.

Related

How to avoid Cache restore time outs

I do a cache of the maven repository using Cache#2 to prevent additional downloads especially since Maven Central may yield zero byte files.
However, I am getting events such as this on my build log and when it occurs it significantly slows down the build step.
2020-02-14T03:24:14.9261543Z Information, Downloaded 340.2 MB out of 447.6 MB (76%).
2020-02-14T03:24:18.3130567Z Warning, [https://37bvsblobprodcus311.blob.core.windows.net/db184fb09aee8f4ae39869ebeab81ab1ad/7FE2B04FAB9DCB08C78F137CCA2FDA2D5E37B05B5DBCA1D7EDD23F7DB5D580B301?sv=2017-04-17&sr=b&sig=mZZ1kK00Gc2cg5m6dyRB3XUYVB40dxJkvBMbXW4D3cM%3D&spr=https&se=2020-02-15T03%3A29%3A57Z&sp=r&rscl=x-e2eid-c561122c-76784a8c-be2cb59f-c79091dc-session-eacd1913-b0014305-a33f0081-46cabc28] Try 1/5, non-retryable exception caught. Throwing. Details:
2020-02-14T03:24:18.3131821Z Task was requested to be canceled. System.Threading.Tasks.TaskCanceledException: A task was canceled.
2020-02-14T03:24:18.3132112Z at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
2020-02-14T03:24:18.3132355Z at System.Net.Http.NoWriteNoSeekStreamContent.<>c.<SerializeToStreamAsync>b__4_0(Task t, Object s)
2020-02-14T03:24:18.3132630Z at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
2020-02-14T03:24:18.3133177Z --- End of stack trace from previous location where exception was thrown ---
2020-02-14T03:24:18.3133445Z at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
2020-02-14T03:24:18.3133903Z --- End of stack trace from previous location where exception was thrown ---
2020-02-14T03:24:18.3134179Z at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
2020-02-14T03:24:18.3134413Z at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
2020-02-14T03:24:18.3134691Z at Microsoft.VisualStudio.Services.Common.TaskCancellationExtensions.EnforceCancellation[TResult](Task`1 task, CancellationToken cancellationToken, Func`1 makeMessage, String file, String member, Int32 line)
2020-02-14T03:24:18.3134970Z at Microsoft.VisualStudio.Services.BlobStore.WebApi.DedupStoreHttpClient.<>c__DisplayClass57_0.<<GetRedirectResponseAsync>b__0>d.MoveNext()
2020-02-14T03:24:18.3135439Z --- End of stack trace from previous location where exception was thrown ---
2020-02-14T03:24:18.3135708Z at Microsoft.VisualStudio.Services.Content.Common.AsyncHttpRetryHelper`1.InvokeAsync(CancellationToken cancellationToken)
2020-02-14T03:24:18.3150625Z Warning, [https://37bvsblobprodcus311.blob.core.windows.net/db184fb09aee8f4ae39869ebeab81ab1ad/7FE2B04FAB9DCB08C78F137CCA2FDA2D5E37B05B5DBCA1D7EDD23F7DB5D580B301?sv=2017-04-17&sr=b&sig=mZZ1kK00Gc2cg5m6dyRB3XUYVB40dxJkvBMbXW4D3cM%3D&spr=https&se=2020-02-15T03%3A29%3A57Z&sp=r&rscl=x-e2eid-c561122c-76784a8c-be2cb59f-c79091dc-session-eacd1913-b0014305-a33f0081-46cabc28] Try 1/5, retryable exception caught. Retrying in 00:00:01. System.Threading.Tasks.TaskCanceledException: A task was canceled.
2020-02-14T03:24:18.3151412Z at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
2020-02-14T03:24:18.3151697Z at System.Net.Http.NoWriteNoSeekStreamContent.<>c.<SerializeToStreamAsync>b__4_0(Task t, Object s)
2020-02-14T03:24:18.3151962Z at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
2020-02-14T03:24:18.3152497Z --- End of stack trace from previous location where exception was thrown ---
2020-02-14T03:24:18.3152771Z at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
2020-02-14T03:24:18.3153248Z --- End of stack trace from previous location where exception was thrown ---
2020-02-14T03:24:18.3153496Z at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
2020-02-14T03:24:18.3153749Z at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
2020-02-14T03:24:18.3154100Z at Microsoft.VisualStudio.Services.Common.TaskCancellationExtensions.EnforceCancellation[TResult](Task`1 task, CancellationToken cancellationToken, Func`1 makeMessage, String file, String member, Int32 line)
2020-02-14T03:24:18.3154606Z at Microsoft.VisualStudio.Services.BlobStore.WebApi.DedupStoreHttpClient.<>c__DisplayClass57_0.<<GetRedirectResponseAsync>b__0>d.MoveNext()
2020-02-14T03:24:18.3155603Z --- End of stack trace from previous location where exception was thrown ---
2020-02-14T03:24:18.3155739Z at Microsoft.VisualStudio.Services.Content.Common.AsyncHttpRetryHelper`1.InvokeAsync(CancellationToken cancellationToken)
2020-02-14T03:24:18.3155929Z at Microsoft.VisualStudio.Services.BlobStore.WebApi.DedupStoreHttpClient.<>c__DisplayClass60_0.<<HandleRedirectAsync>b__0>d.MoveNext()
2020-02-14T03:24:18.3159451Z --- End of stack trace from previous location where exception was thrown ---
2020-02-14T03:24:18.3159789Z at Microsoft.VisualStudio.Services.Content.Common.AsyncHttpRetryHelper`1.InvokeAsync(CancellationToken cancellationToken)
2020-02-14T03:24:19.9319176Z Information, Downloaded 340.2 MB out of 447.6 MB (76%).
2020-02-14T03:24:24.9323050Z Information, Downloaded 352.6 MB out of 447.6 MB (79%).
Is there any way of avoiding that? I have also checked https://status.dev.azure.com/ and there is no indication of any issues with it. These are with the paid Azure Devops agent pool not a private agent pool.
There is a similar issue that has been open here. You can join in the discussion of this thread or open new issue for above case.
you can try the workaround of using continueOnError: true on the cache task to prevent it from failing the build.
- task: Cache#2
inputs:
key: 'npm | "$(Agent.OS)" | package-lock.json'
restoreKeys: |
npm | "$(Agent.OS)"
npm
path: $(npm_config_cache)
displayName: Cache npm
continueOnError: true

Visual Studio clickOnce deployment issue

When I try to install my application generated in Visual Studio 2012 C# I get an "Value does not fall within the expected range." error. I have tried to install it with several users but to no avail.
Following are the details:
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.34209
System.Deployment.dll : 4.0.30319.34244 built by: FX452RTMGDR
clr.dll : 4.0.30319.34209 built by: FX452RTMGDR
dfdll.dll : 4.0.30319.34244 built by: FX452RTMGDR
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : file:///D:/Installer/documentGenerator/docGeni.application
IDENTITIES
Deployment Identity : docGeni.application, Version=4.0.0.10, Culture=en-AU, PublicKeyToken=31f8b94b44056c11, processorArchitecture=x86
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of D:\Installer\documentGenerator\docGeni.application resulted in exception. Following failure messages were detected:
+ Value does not fall within the expected range.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [4/10/2015 9:18:43 AM] : Activation of D:\Installer\documentGenerator\docGeni.application has started.
* [4/10/2015 9:18:43 AM] : Processing of deployment manifest has successfully completed.
ERROR DETAILS
Following errors were detected during this operation.
* [4/10/2015 9:18:43 AM] System.ArgumentException
- Value does not fall within the expected range.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
* Transaction at [4/10/2015 9:18:43 AM]
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
- HRESULT: 0x0
What does error mean? Which value is not within range?
I solved the issue by creating a brand application in VS and copying all the files from the old application to the new app.
Now I can install the app once again :-)
As far as I am concerned the issue is resolved but I would still like to you know the error means.

SQL error 17002 : Physical DB connection is invalid

I am trying to connect to oracle db(installed in remote machine) from my java application. but, i am getting sql error code 17022. pls let me know how to solve this issue.
Full stack trace
MSG: Connecting to jdbc:oracle:thin:#(description=(address_list=(address=(protocol=tcp)(host=dlocdb04)(port=50000))(address=(protocol=tcp)(host=dlocdb04)(port=50000)))(connect_data=(service_name=os02rtdb01svc.world)(server=dedicated))) with Oracle JDBC driver version: 9.2.0.1.0 [cumulative retries=0]
USER_ID: UNKNOWN
level: WARN
date: 2015-09-21 10:51:45,563
category: com.retek.merch.utils.ConnectionPool
MSG: [SQL Error code: 17002, State: null] Physical DB connection is invalid. Restarting pool due to the following error.
USER_ID: UNKNOWN
java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(ERR=1153)(VSNNUM=0)(ERROR_STACK=(ERROR=(CODE=1153)(EMFI=4)(ARGS='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dlocdb0401)(PORT=27320))(CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))null))'))(ERROR=(CODE=303)(EMFI=1))))
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:169)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:149)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:95)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:63)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolOrXAConnection(OracleConnectionCacheImpl.java:547)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getPooledConnection(OracleConnectionCacheImpl.java:404)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:298)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:268)
at com.retek.merch.utils.ConnectionPool.get(ConnectionPool.java:346)
at com.retek.merch.utils.TransactionManager.start(TransactionManager.java:59)
at com.retek.reim.merch.utils.ReIMTransactionManager.start(ReIMTransactionManager.java:49)
at com.retek.reim.manager.LoginManager.login(LoginManager.java:72)
at com.retek.reim.ui.login.LoginAction.perform(LoginAction.java:47)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:638)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:720)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:145)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:139)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2460)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:157)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:534)

I can't download from https on MonoDroid - am I missing something obvious?

Here's the code I'm running:
var wc = new WebClient ();
var test1 = wc.DownloadString("http://www.google.com");
var test2 = wc.DownloadString("https://www.google.com");
test1 gives me some text.
test2 never gets initialised because of an exception with trace starting:
{System.Net.WebException: Error getting response stream (Write:
EndWrite failure): SendFailure ---> System.IO.IOException: EndWrite
failure ---> System.Net.Sockets.SocketException: The socket has been
shut down at System.Net.Sockets.Socket.EndSend (IAsyncResult result)
[0x0002d] in
/home/jon/Development/xamarin/mono/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:1989
at System.Net.Sockets.NetworkStream.EndWrite (IAsyncResult ar)
[0x0002f] in
/home/jon/Development/xamarin/mono/mcs/class/System/System.Net.Sockets/NetworkStream.cs:358
--- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.EndWrite (IAsyncResult ar) [0x0003d]
in
/home/jon/Development/xamarin/mono/mcs/class/System/System.Net.Sockets/NetworkStream.cs:360
at Mono.Security.Protocol.Tls.RecordProtocol.EndSendRecord
(IAsyncResult asyncResult) [0x00040] in
/home/jon/Development/xamarin/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:721
at Mono.Security.Protocol.Tls.RecordProtocol.SendRecord (ContentType
contentType, System.Byte[] recordData) [0x0000b] in
/home/jon/Development/xamarin/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:729
I'm running MonoDevelop.MonoDroid - 2.6.0.0 - with a download from MonoDroid a couple of days ago - "Mono for Android: 1.2.24817.105690530 (Evaluation)"
Is this just a bug - or is there some other step I need for MonoDroid?
It seems this has been confirmed as a bug in the 1.2 release - so I'm closing this question!

Visual Studio published application install/update timeout problem

we are developing a Winform application in C# and Visual Studio 2010 which we publish to a folder on our server. We use the 'installation folder URL' field in the publish tab with 'http://server/folder'. The problem is that if more than one person trying to install or update the application on their machine, the install or update will fail and the error log says it is has timed out, I have added the contents of the log file to the end of this post.
It seems like a some kind of locking is going on, the folder we publish to on the server has read only permission. We have tried many things, like using 'Clean Solution' and 'Rebuild Solution'.
Does anyone know about this problem or have any suggestions that might help. Thank you for you help.
Jing Jing Tao
PLATFORM VERSION INFO
Windows : 6.1.7600.0 (Win32NT)
Common Language Runtime : 4.0.30319.225
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.225 (RTMGDR.030319-2200)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
SOURCES
Deployment url : file:///C:/Users/Administrator/AppData/Roaming
/Microsoft/Windows/Start%20Menu/Programs/TiffinSolutions/Removal%20Software.appref-ms%7C
Server : Microsoft-IIS/7.0
X-Powered-By : ASP.NET
Deployment Provider url : £http://tiffinsolutions.zapto.org/ApplicationUpdateFiles/Removal%20Software.application
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\TiffinSolutions\Removal Software.appref-ms| resulted in exception. Following failure messages were detected:
+ Downloading £http://tiffinsolutions.zapto.org/ApplicationUpdateFiles/Application Files/Removal Software_1_1_0_157/Removal Software.exe.manifest did not succeed.
+ The operation has timed out
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [24/05/2011 14:22:16] : Activation of C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\TiffinSolutions\Removal Software.appref-ms| has started.
* [24/05/2011 14:22:16] : Performing necessary update check as specified by the deployment.
* [24/05/2011 14:22:17] : Consuming new update.
* [24/05/2011 14:22:17] : Installation of the application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [24/05/2011 14:23:57] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://tiffinsolutions.zapto.org/ApplicationUpdateFiles/Application Files/Removal Software_1_1_0_157/Removal Software.exe.manifest did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.ConsumeUpdatedDeployment(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState& subState, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- The operation has timed out
- Source: System
- Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
In the end the conclusion we were able to gain was that the server is not setup for hosting and we used our hosted service to store our files.

Resources