error MSB3073: The command "\bin\Debug\MsiInstaller.exe" "" "/WIXBIN:" "/Configuration:Debug" "/Platform:AnyCPU"" exited with code --532462766 - msbuild

Building MSI
Unhandled Exception: System.IO.DirectoryNotFoundException: C:Client\bin\Debug\net6.0-windows\runtimes at
MsiInstaller.Program.Main(String[] args) in C:\MsiInstaller\Program.cs

Related

Can't run ASP.NET Core Application

I was trying to run ASP.NET Core Application
this is global.json
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-rc1-update2"
}
}
I encountered error restore packages failed
this is output
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git
C:\Users\AA\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update2\bin\dnx.exe "C:\Users\AA\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update2\bin\lib\Microsoft.Dnx.Tooling\Microsoft.Dnx.Tooling.dll" restore "D:\MyProject\src\MyProject"
Microsoft .NET Development Utility Clr-x86-1.0.0-rc1-16609
GET https://api.nuget.org/v3/index.json
Restoring packages for D:\MyProject\src\MyProject\project.json
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.ApplicationInsights.AspNet'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Diagnostics'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.IISPlatformHandler'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Mvc'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Mvc.TagHelpers'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Server.Kestrel'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.StaticFiles'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Tooling.Razor'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.CodeGenerators.Mvc'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Configuration.FileProviderExtensions'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Configuration.Json'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Configuration.UserSecrets'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Logging'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Logging.Console'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Logging.Debug'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.VisualStudio.Web.BrowserLink.Loader'
Warning: FindPackagesById: Microsoft.ApplicationInsights.AspNet
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.ApplicationInsights.AspNet'
Warning: FindPackagesById: Microsoft.AspNet.Server.Kestrel
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.AspNet.Mvc.TagHelpers
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Server.Kestrel'
Warning: FindPackagesById: Microsoft.AspNet.Tooling.Razor
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.Configuration.FileProviderExtensions
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.Logging.Debug
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Mvc.TagHelpers'
Warning: FindPackagesById: Microsoft.AspNet.StaticFiles
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Tooling.Razor'
Warning: FindPackagesById: Microsoft.Extensions.Logging
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.StaticFiles'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Logging.Debug'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Configuration.FileProviderExtensions'
Warning: FindPackagesById: Microsoft.VisualStudio.Web.BrowserLink.Loader
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.CodeGenerators.Mvc
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Logging'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.VisualStudio.Web.BrowserLink.Loader'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.CodeGenerators.Mvc'
Warning: FindPackagesById: Microsoft.Extensions.Configuration.Json
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.Logging.Console
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.AspNet.Diagnostics
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.Configuration.UserSecrets
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.AspNet.IISPlatformHandler
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Configuration.Json'
Warning: FindPackagesById: Microsoft.AspNet.Mvc
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.IISPlatformHandler'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Mvc'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Diagnostics'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Configuration.UserSecrets'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Logging.Console'
Warning: FindPackagesById: Microsoft.ApplicationInsights.AspNet
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.ApplicationInsights.AspNet'
Warning: FindPackagesById: Microsoft.AspNet.Server.Kestrel
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Server.Kestrel'
Warning: FindPackagesById: Microsoft.AspNet.Mvc.TagHelpers
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Mvc.TagHelpers'
Warning: FindPackagesById: Microsoft.AspNet.StaticFiles
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.StaticFiles'
Warning: FindPackagesById: Microsoft.AspNet.Tooling.Razor
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Tooling.Razor'
Warning: FindPackagesById: Microsoft.VisualStudio.Web.BrowserLink.Loader
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.Logging.Debug
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.Logging
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.Configuration.FileProviderExtensions
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.CodeGenerators.Mvc
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Configuration.FileProviderExtensions'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.VisualStudio.Web.BrowserLink.Loader'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Logging.Debug'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.CodeGenerators.Mvc'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Logging'
Warning: FindPackagesById: Microsoft.AspNet.IISPlatformHandler
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.IISPlatformHandler'
Warning: FindPackagesById: Microsoft.AspNet.Diagnostics
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Diagnostics'
Warning: FindPackagesById: Microsoft.Extensions.Logging.Console
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.Configuration.Json
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.Extensions.Configuration.UserSecrets
An error occurred while sending the request.
Warning: FindPackagesById: Microsoft.AspNet.Mvc
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Logging.Console'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Configuration.Json'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.AspNet.Mvc'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Microsoft.Extensions.Configuration.UserSecrets'
Error: FindPackagesById: Microsoft.AspNet.Mvc.TagHelpers
An error occurred while sending the request.
Error: FindPackagesById: Microsoft.ApplicationInsights.AspNet
An error occurred while sending the request.
----------
Error: FindPackagesById: Microsoft.AspNet.Tooling.Razor
An error occurred while sending the request.
Error: FindPackagesById: Microsoft.AspNet.Server.Kestrel
An error occurred while sending the request.
Error: FindPackagesById: Microsoft.AspNet.StaticFiles
An error occurred while sending the request.
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Dnx.Tooling.Restore.NuGet.HttpSource.<GetAsync>d__11.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.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Dnx.Tooling.Restore.NuGet.NuGetv2Feed.<FindPackagesByIdAsyncCore>d__25.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 Microsoft.Dnx.Tooling.RemoteWalkProvider.<FindLibrary>d__6.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 Microsoft.Dnx.Tooling.RestoreOperations.<FindLibrary>d__9.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.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Dnx.Tooling.RestoreOperations.<FindLibraryByVersion>d__8.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.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Dnx.Tooling.RestoreOperations.<FindLibraryMatch>d__6.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 Microsoft.Dnx.Tooling.RestoreOperations.<FindLibraryEntry>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.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Dnx.Tooling.RestoreOperations.<CreateGraphNode>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.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Dnx.Tooling.RestoreOperations.<CreateGraphNode>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 Microsoft.Dnx.Tooling.RestoreCommand.<CreateGraphNode>d__71.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.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Dnx.Tooling.RestoreCommand.<RestoreForProject>d__69.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 Microsoft.Dnx.Tooling.RestoreCommand.<>c__DisplayClass68_0.<<Execute>b__2>d.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.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Dnx.Tooling.RestoreCommand.<Execute>d__68.MoveNext()
----------
Restore failed
An error occurred while sending the request.
NuGet Config files used:
C:\ProgramData\NuGet\Config\Microsoft.VisualStudio.Offline.config
C:\Users\AA\AppData\Roaming\NuGet\nuget.config
Feeds used:
https://api.nuget.org/v3/index.json
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
this is project.json
{
"version": "1.0.0-*",
"userSecretsId": "aspnetcore-MyProject-3db060cf-000d-481d-b013-6fcaf0c10504",
"compilationOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.ApplicationInsights.AspNet": "1.0.0-rc1",
"Microsoft.AspNet.Diagnostics": "1.0.0-rc1-final",
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
"Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final",
"Microsoft.Extensions.CodeGenerators.Mvc": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.FileProviderExtensions": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final"
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel"
},
"frameworks": {
"dnx46": { },
"dnxcore50": { }
},
"exclude": [
"wwwroot",
"node_modules",
"bower_components"
],
"publishExclude": [
"**.user",
"**.vspscc"
],
"scripts":{
"prepublish": [
"npm install",
"bower install",
"gulp clean",
"gulp min"
]
}
}
I installed dnx 1.0.0-rc1-update2 in .dnx and sdk 1.0.0-preview-1-003177 in dotnet/sdk
I removed dnxcore5.0 and changed frameworks in project.json as the following:
"frameworks": {
"dnx46": { }
}
and changed SDK in global.json as the following:
"sdk": {
"version": "1.0.0-preview2-1-003177"
}
because I searched for 1.0.0-rc1-update2 and didn't find
After that packges are restored successfully
but when I tried to run, I encountered this error
Unable to start process D:\MyProject\artifacts\bin\MyProject\bin\Debug\dnx46\win-x64\MyProject.exe
request failed with status code 500 Internal server error.
the full response has been written to C:\Users\AA\AppData\Local\Temp\HttpFailure_06_00_18.html
After restarting Visual Studio this error appeared:
An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Extensions.DependencyInjection.Abstractions.dll
Additional information: No service for type 'Microsoft.Extensions.PlatformAbstractions.IApplicationEnvironment' has been registered.

io.streamwriter Can't write to text file after async task

I'm running the following code in an asynchronus sub and it's failing on "Test 2" write to a text file. I've tried writing asynchronously and synchronously and it fails when trying to write after the line BoxFldr = Await BoxFldrMgr.GetInformationAsync(id). This code is in a recursive sub and the streamwriter open/close is done in the sub calling this. Any ideas?
BoxFldrMgr = BoxClient.FoldersManager
BoxFileMgr = BoxClient.FilesManager
Debug.Print("Test write 1")
Await objWriter.WriteLineAsync("Test 1")
Debug.Print("getting folder details")
BoxFldr = Await BoxFldrMgr.GetInformationAsync(id)
Debug.Print("Test write 2")
Await objWriter.WriteLineAsync("Test 2")
It's failing with this error:
A first chance exception of type 'System.ObjectDisposedException' occurred in mscorlib.dll
A first chance exception of type 'System.ObjectDisposedException' occurred in mscorlib.dll
A first chance exception of type 'System.ObjectDisposedException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation.

Getting "java.lang.UnsatisfiedLinkError was thrown" while opening pdf file in vb.net

I am developing an application in vb.net it was working perfectly fine until this error occurred. I have tried everything but its of no use. Please Help me
ERROR:
Server Error in '/CNS/pdf' Application.
Exception of type java.lang.UnsatisfiedLinkError was thrown.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: java.lang.UnsatisfiedLinkError: Exception of type
java.lang.UnsatisfiedLinkError was thrown.
Source Error:
Line 1165: CheckedByName = dr.GetString(1)
Line 1166: CheckedByDesig = dr.GetString(2)
Line 1167: Case 3
Line 1168: ApprovedByName = dr.GetString(1)
Line 1169: ApprovedByDesig = dr.GetString(2)
Source File: C:\Inetpub\wwwroot\CNS\pdf\PdfForms.aspx.vb Line: 1167
Stack Trace:
[UnsatisfiedLinkError: Exception of type java.lang.UnsatisfiedLinkError was
thrown.]
java.lang.ExceptionInInitializerError.checkAndThrowException(Throwable
thrown) +59
java.io.File..cctor() +246
[TypeInitializationException: The type initializer for "java.io.File" threw an
exception.]
java.io.FileOutputStream..ctor(String path) +28
pdf.PdfForms.ShowPO(String PONo) in
C:\Inetpub\wwwroot\CNS\pdf\PdfForms.aspx.vb:1167
pdf.PdfForms.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\CNS\pdf\PdfForms.aspx.vb:52
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750

Unable to Initialize InitialContext in JBoss AS 7.1

I am unable to initialize InitialContext and lookup for a string. Here is my code snippet :
java.util.Hashtable env = new java.util.Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.remote.client.InitialContextFactory");
env.put("java.naming.provider.url","remote://localhost:4447");
env.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
try
{
if(env != null)
ic = new InitialContext(env);
else
ic = new InitialContext();
this.connectionFactory = (ConnectionFactory)ic.lookup("java:/ConnectionFactory");
this.queue = (javax.jms.Queue)ic.lookup("java:jboss/exported/jms/queue/test");
}catch(Exception e){
e.printStackTrace();
}
Always ic is being null and I am getting Exception NullPointer Exception.
Can anyone tell me where the wrong I have done or any configuration? Any suggestion/advice are acceptable.
EDIT :1
20:19:01,678 ERROR [stderr] (http-localhost-127.0.0.1-8080-5)
javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory
org.jboss.naming.remote.client.InitialContextFactory from classloader
ModuleClassLoader for Module "deployment.TRH_SAS_V2.war:main" from Service Module
Loader
20:19:01,682 ERROR [stderr] (http-localhost-127.0.0.1-8080-5)
at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:64)
20:19:01,684 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
20:19:01,686 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
20:19:01,688 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at javax.naming.InitialContext.init(Unknown Source)
20:19:01,690 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at javax.naming.InitialContext.<init>(Unknown Source)
It looks like you don't have the InitialContextFactory class on your classpath. The jar you need will be in the bin/client directory of your JBoss installation. See this link for details : https://docs.jboss.org/author/display/AS72/JNDI+Reference

ClickOnce manifest

We are currently deploying a WPF 4 application via ClickOnce and there is a scenario when the installation fails.
If the user does not have .NET 4.0 Full install and attempts to install our application the framework installs fine, but the application fails to install. If we re-run the installation again the application installs fine.
Here is a copy of the log:
PLATFORM VERSION INFO
Windows : 6.1.7600.0 (Win32NT)
Common Language Runtime : 2.0.50727.4927
System.Deployment.dll : 2.0.50727.4927 (NetFXspW7.050727-4900)
mscorwks.dll : 2.0.50727.4927 (NetFXspW7.050727-4900)
dfdll.dll : 2.0.50727.4927 (NetFXspW7.050727-4900)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
SOURCES
Deployment url : [URL REMOVED]
Server : Apache/2.0.54
Application url : [URL REMOVED]
Server : Apache/2.0.54
IDENTITIES
Deployment Identity : Graphicly.App.application, Version=0.3.2.0, Culture=neutral, PublicKeyToken=c982228345371fbc, processorArchitecture=msil
Application Identity : Graphicly.App.exe, Version=0.3.2.0, Culture=neutral, PublicKeyToken=c982228345371fbc, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Dependency Graphicly.WCFClient.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Graphicly.WCFClient.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Microsoft.Surface.Presentation.Design.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Microsoft.Surface.Presentation.Design.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency GalaSoft.MvvmLight.WPF4.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file GalaSoft.MvvmLight.WPF4.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Graphicly.Infrastructure.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Graphicly.Infrastructure.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Graphicly.AutoUpdater.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Graphicly.AutoUpdater.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency System.Windows.Interactivity.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file System.Windows.Interactivity.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Microsoft.Surface.Presentation.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Microsoft.Surface.Presentation.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Graphicly.Fonts.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Graphicly.Fonts.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Graphicly.Reader.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Graphicly.Reader.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Microsoft.Surface.Presentation.Generic.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Microsoft.Surface.Presentation.Generic.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Graphicly.Controls.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Graphicly.Controls.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Graphicly.SocialNetwork.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Graphicly.SocialNetwork.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Graphicly.Archive.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Graphicly.Archive.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency Graphicly.App.exe cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file Graphicly.App.exe: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Dependency GalaSoft.MvvmLight.Extras.WPF4.dll cannot be processed for patching. Following failure messages were detected:
+ Exception occurred loading manifest from file GalaSoft.MvvmLight.Extras.WPF4.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
* Activation of [URL REMOVED] resulted in exception. Following failure messages were detected:
+ Exception occurred loading manifest from file GalaSoft.MvvmLight.Extras.WPF4.dll: the manifest may not be valid or the file could not be opened.
+ Cannot load internal manifest from component file.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
* The file named Microsoft.Windows.Design.Extensibility.dll does not have a hash specified in the manifest. Hash validation will be ignored.
* The file named Ionic.Zip.Reduced.dll does not have a hash specified in the manifest. Hash validation will be ignored.
* The file named Newtonsoft.Json.dll does not have a hash specified in the manifest. Hash validation will be ignored.
* The file named Microsoft.WindowsAzure.StorageClient.dll does not have a hash specified in the manifest. Hash validation will be ignored.
* The file named Dimebrain.TweetSharp.dll does not have a hash specified in the manifest. Hash validation will be ignored.
* The file named Microsoft.Windows.Design.Interaction.dll does not have a hash specified in the manifest. Hash validation will be ignored.
* The file named HtmlAgilityPack.dll does not have a hash specified in the manifest. Hash validation will be ignored.
* The file named Facebook.dll does not have a hash specified in the manifest. Hash validation will be ignored.
OPERATION PROGRESS STATUS
* [20/05/2010 09:17:33] : Activation of [URL REMOVED] has started.
* [20/05/2010 09:17:38] : Processing of deployment manifest has successfully completed.
* [20/05/2010 09:17:38] : Installation of the application has started.
* [20/05/2010 09:17:39] : Processing of application manifest has successfully completed.
* [20/05/2010 09:17:40] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [20/05/2010 09:17:40] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Graphicly.WCFClient.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:40] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Microsoft.Surface.Presentation.Design.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:40] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file GalaSoft.MvvmLight.WPF4.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:40] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Graphicly.Infrastructure.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:40] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Graphicly.AutoUpdater.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:40] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file System.Windows.Interactivity.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:40] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Microsoft.Surface.Presentation.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:40] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Graphicly.Fonts.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:40] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Graphicly.Reader.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:40] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Microsoft.Surface.Presentation.Generic.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:41] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Graphicly.Controls.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:41] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Graphicly.SocialNetwork.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:41] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Graphicly.Archive.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:41] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Graphicly.App.exe: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:41] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file GalaSoft.MvvmLight.Extras.WPF4.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.FileDownloader.AddFilesInHashtable(Hashtable hashtable, AssemblyManifest applicationManifest, String applicationFolder)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
* [20/05/2010 09:17:41] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file GalaSoft.MvvmLight.Extras.WPF4.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
at System.Deployment.Application.FileDownloader.PatchSingleFile(DownloadQueueItem item, Hashtable dependencyTable)
at System.Deployment.Application.FileDownloader.PatchFiles(SubscriptionState subState)
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
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.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
I'm baffled. What could this be?
I've noticed that dfsvc.exe that runs right after install is located in the .NET 2 folder. When I re-run the installer, the dfsvc.exe is located in the .NET 4 folder.
I've been speaking to Microsoft's support and we've found that due to the fact that a previous version of .NET 4 (beta in our case) was installed and un-installed it left several files behind. When the installer for .NET was executed, it required renaming some files then a reboot, but since the files were left by the previous version, the installer thought the renaming had already taken place and did not request a reboot.
Do all of the projects in your solution target .NET 4.0?
Is it .NET 4.0 Client Framework or the full shebang?
Are you deploying the right version of the framework in the prerequisites?
I'm going to send this one to the C/O product team and see if they have any input.
Microsoft now claims this is a known issue, but that they do not have time to fix it in Visual Studio 2010, and that it will be "considered in future versions."
A small percentage of our customers got this message in the logs when the application updated itself or was freshly installed, though it did not have to do with whether .NET 4 was already installed or not.
It turns out it was Panda Antivirus messing it up somehow.
By disabling it temporarily, the ClickOnce installation completed. This worked for us.