Is this possible? I've tried but I am getting errors. I have a solution with a F# project that I have applied the Send Project Output to F# Interactive option. For added info, this project is not the startup project. After opening the targeted namespaces, when I enter the function that is supposed to query the database I get a long list of errors, but appears to start with this line:
System.TypeInitializationException: The type initializer for
'InterviewTools.Support' threw an exception. --->
System.TypeInitializationException: The type initializer for
'<-StartupCode$Engine->.$InterviewTools' threw an exception. --->
System.TypeInitializationException: The type initializer for
'<-StartupCode$Engine->.$DbTools' threw an exception. --->
System.IO.FileNotFoundException: Could not find file 'C:\Program Files
(x86)\Microsoft SDKs\F#\3.1\Framework\v4.0\Web.config'.
What am I missing here?
Related
I am trying to run an incremental migration using the VSS Upgrade tool. I'm migrating through the command prompt.
I have in the past successfully migrated all our projects and history to TFS, I have also checked in incremental migrations. However, now that I'm doing it for a 3rd time I get an error.
As far as I know nothing has changed. Any general tips in how I could go about debugging this would be helpful.
The error I get when running the vssupgrade migrate settings.xml command.
ERROR: Retrieving the COM class factory for component with CLSID {783CD4E4-9D54-11CF-B8EE-00608CC9A71F} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Looking into the log file created by the analyze tool the error looks like this:
[VSS, Error, 3, 2019/03/20 11:23:56.676] Exception: System.IO.FileNotFoundException
Message: Retrieving the COM class factory for component with CLSID {783CD4E4-9D54-11CF-B8EE-00608CC9A71F} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).
Stack Trace: at Microsoft.TeamFoundation.Admin.VssMigration.VssConverter.OpenVss(String sourceRepository, String passwd)
at Microsoft.TeamFoundation.Admin.VssMigration.VssConverter.Initialize(ExecutionMode executionMode, MigrationSession migrationSession)
at Microsoft.TeamFoundation.Admin.VssMigration.Api.MigrationSession.PrepareForProcessing(ExecutionMode executionMode, Boolean requireUserMapFile)
at Microsoft.TeamFoundation.Admin.VssMigration.Api.MigrationSession.Migrate()
at Microsoft.TeamFoundation.Admin.VssMigration.CommandLine.VSSUpgradeCommand.MainThread()
Help Link:
BaseExceptionMessage: Retrieving the COM class factory for component with CLSID {783CD4E4-9D54-11CF-B8EE-00608CC9A71F} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).
COM interop fails when the convertor runs under x64, the trick that may work is to start the conversion from a forced 32-bit command prompt, which you can start through:
c:\windows\SysWOW64\cmd.exe
That should give you a forced 32-bit context:
Another alternative is to change the corflags to force the convertor to x86 at all time:
corflags /32bit+ vssupgrade.exe
My solution was to repair Visual Source Safe Upgrade Tool for Team Foundation Server. I re-downloaded the application link from Microsoft's website
And then run and Repair the application. That fixed my issues.
I am writing junits for struts action class and using org.apache.struts2.StrutsTestCase, while running the test cases I am getting below exception.
java.lang.NoClassDefFoundError: javax/el/ELResolver
at org.apache.struts2.tiles.StrutsTilesInitializer.createContainerFactory(StrutsTilesInitializer.java:58)
at org.apache.tiles.startup.AbstractTilesInitializer.createContainer(AbstractTilesInitializer.java:123)
at org.apache.tiles.startup.AbstractTilesInitializer.initialize(AbstractTilesInitializer.java:70)
at org.apache.tiles.web.startup.AbstractTilesListener.contextInitialized(AbstractTilesListener.java:62)
at com.dmainc.agora.action.test.SetupStrutsTestCase.setUp(SetupStrutsTestCase.java:261)
so I added el-api.jar in the run config , then again ran the test, but started getting another exception i.e
java.lang.NoSuchMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
at org.apache.tiles.el.JspExpressionFactoryFactory.getExpressionFactory(JspExpressionFactoryFactory.java:61)
at org.apache.struts2.tiles.StrutsTilesContainerFactory.createELEvaluator(StrutsTilesContainerFactory.java:251)
at org.apache.struts2.tiles.StrutsTilesContainerFactory.createAttributeEvaluatorFactory(StrutsTilesContainerFactory.java:198)
at org.apache.tiles.factory.BasicTilesContainerFactory.createContainer(BasicTilesContainerFactory.java:106)
at org.apache.tiles.startup.AbstractTilesInitializer.createContainer(AbstractTilesInitializer.java:124)
at org.apache.tiles.startup.AbstractTilesInitializer.initialize(AbstractTilesInitializer.java:70)
at org.apache.tiles.web.startup.AbstractTilesListener.contextInitialized(AbstractTilesListener.java:62)
I guess this is happening due to some jar/jar version has conflict, but could not figure out why?
Any suggestions will be highly appreciated.
Solution 1:
Inner of the apache-tomcat-x.x.xx\lib folder
el-api.jar file set classpath environment variable.
Solution 2:
copy apache-tomcat-x.x.xx\lib\el-api.jar file in to jreX.X.X_XXX\lib\ext\ folder.
because it is used to preload tomcat server start
Run again your test case.
I got a grails Project from my friend, i imported that project in GGTS and after i refreshed dependence, i have no error.
When i trying to run I got
Error Error executing script RunApp: java.io.IOException: Cannot run program "grails": java.io.IOException: error=2, No such file or directory (Use --stacktrace to see the full trace)
I am using Ubuntu 12.4.
But, i imported same project in my another system which runs in windows 7, i didn't get any error or exception in windows.
What is the reason for this Exception ?
echo $PATH output
/home/ard006/Documents/senchaCmd/Sencha/Cmd/3.0.0.250:/home/ard006/Viswa/scala/sbt/bin:/home/ard006/Documents/senchaCmd/Sencha/Cmd/3.0.0.250:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/ard006/Viswa/springsource/grails-2.1.2/bin:/home/ard006/groovy-2.0.0/bin
It looks to me like GGTS can't find the grails executable.
Is it on your PATH ? I suspect you need to set the PATH variable thus:
$ PATH=$GRAILSHOME/bin:$PATH
and then invoke GGTS from that shell, such that it inherits the PATH setting (I've assumed PATH is exported)
Just run into the same problem.
I had the Grails bin folder on the path using this notation in the .bash.rc file
export PATH="${PATH}:~/grails/bin"
The tilde broke it and I changed it to:
export PATH="${PATH}:/home/myuser/grails/bin"
Now it's working, the IOException is gone.
I get the following exception when trying to generate RMIC using Ant task.
[wsejbdeploy] Error generating RMI code: RMIC command failed on project: .... with message:
[wsejbdeploy] error: The IBM RMIC version 0x1500 does not match the IBM runtime version 0x1600.
Please let me know how to fix this.
I am trying this using the WebSphere 6.1 server that comes bundled with RAD7.5.
This works fine when we use IDE to generate the EAR, and fails only when we use our custom Ant build file.
The error means that JAVA_HOME in your shell used to invoke Ant is different from the Java that was included with the embedded WebSphere Application Server. Try using the WAS_HOME/bin/ws_ant script, or set JAVA_HOME to WAS_HOME/java/.
The error
Cannot run RMIC because it is not installed. Expected location of RMIC is the following:
will some times confuse. enable the "Capture RMIC verbose output to the workspace .log file.
and see what the exact error your getting. This option will be available in properties > EJBDeployment.
In My case it throwing error due to huge number of jars in class path.It got resolved after shortening the class path jar location.
I am trying to upgrade the ASP.NET MVC 1.0 application to 2.0 preview 1. I am using the spark as view engine.
issue:
Spark used the System.Web.MVC 1.0.0.0 so I got the source code and recompiled using the 2.0.0.0 and used the new assembly. Now I am getting the different error as follows:
Could not load file or assembly 'Microsoft.Web.Mvc' or one of its dependencies. The system cannot find the file specified.
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: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Mvc' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 163: return new ViewEngineResult(searchedLocations);
Line 164:
Line 165: entry = Engine.CreateEntry(descriptor);
Line 166: SetCacheValue(descriptorParams, entry);
Line 167: return BuildResult(entry);
Source File: C:\Data\Projects\Samples\spark 1.0 Src\src\Spark.Web.Mvc\SparkViewFactory.cs Line: 165
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Web.Mvc' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
My experience:
Get Spark source from this link: Spark development builds
Replace the file bin\aspnetmvc\System.Web.Mvc.dll with the 2.0 version (from %ProgramFiles%\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies)
Execute the build.cmd script
The updated Spark.dll & Spark.Web.Mvc.dll are available in the build folder
Notes:
on the time of writing, the available spark development version is 1.0.39961.0.
The build script fails while looking for a jsunit file (I believe) but the DLLs are generated properly before it breaks. Just cancel its execution by hitting Ctrl+C when the error is displayed otherwise it'll retry the operation.
Hope it helps.