XSP4 not running on ubuntu 12.04 - monodevelop

I started to use MonoDevelop 5.0.1 and XSP4 on ubuntu 12.04,When I try to run XSP4 give me this error
I install Monodevelop from ubuntu software center.its running but.I want to run ASP.Net MVC3 application.
AnyBody know this error?
Handling exception type FileNotFoundException
Message is Could not load file or assembly 'xsp4, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
IsTerminating is set to True
Could not load file or assembly 'xsp4, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) [0x00000] in <filename unknown>:0
at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) [0x00000] in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args) [0x00000] in <filename unknown>:0
at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'xsp4, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
File name: 'xsp4, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceAndUnwrap (string,string)
at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) [0x00000] in <filename unknown>:0
at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) [0x00000] in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename unknown>:0
at Mono.WebServer.XSP.Server.DebugMain (System.String[] args) [0x00000] in <filename unknown>:0
at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in <filename unknown>:0

yes, i had the same message (on Calculate Linux with Monodevelop 5.0.1).
you should help it to locate the assembly.
Either place the assembly into GAC with "gacutil -i" or make symlink for bin folder with
ln -s . ./bin
in the directory of xsp4 binary (it is under ./bin/Debug if you just built it).
to understand it deeper you can instead of using fuslogvw do this:
1) Run with the environment variables MONO_LOG_LEVEL=info and
MONO_LOG_MASK=asm set, e.g.
MONO_LOG_LEVEL=info MONO_LOG_MASK=asm mono yourapp.exe
The assembly probing and related logic will be printed to stdout.
2) See the mono(1) man page for more information.

Related

CommondInvokationFailure In Unity: Failed to build apk

Please stack overflow respected folks help me. I am stuck in this problem and can't fix it...
CommandInvokationFailure: Failed to build apk. C:\Program Files\Java\jdk1.8.0_121\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="D:/Asghar Jatoi/android-sdks\tools" -Dfile.encoding=UTF8 -jar "D:\Dlux Gaming + Mlay Games\Unity 5.6.0\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[ Error: No such file or directory 'C:/Users/shanti007/Desktop/isizwar/isizwar.keystore' ] stdout[
] exit code: 255 UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.HostView:OnGUI()

MonoDevelop on Ubuntu builds forever

I'm having a strange issue with MonoDevelop on Ubuntu.
It's all been working OK for a while, but recently has stopped building anything. The solution was initially created in VS2013, but has worked for a while under MonoDevelop.
If I do a Clean, that works OK, with text in the Build output window.
If I Build, nothing appears in the Build output window and the "Building" message in the status bar at the top just rolls on for ever and ever:
I've stripped the sln right back to no projects and there is still a problem.
I can't get rid of the rolling "Building" message: If I try a clean, it shows "Cleaning" for a moment (and does Clean), but then reverts to "Building" again, but nothing is built.
I can only get rid of the Building message by restarting MonoDevelop (and I can't build anything)
If I xbuild the solution from the command line, building is OK, so I am pretty sure it's a MonoDevelop issue.
I've just uninstalled an re-installed MonoDevelop with no success.
MonoDevelop- Version 5.10
Mono 4.2.3 (64-bit)
Ubuntu 14.04 x86-64
These are the two log entries that occur around the time the build starts
ERROR [2016-04-11 14:15:17Z]: Error while executing command: Build All
System.NullReferenceException: Object reference not set to an instance of an object
at MonoDevelop.Projects.DotNetProject.OnGetItemFiles (Boolean includeReferencedFiles) <0x406984a0 + 0x000eb> in <filename unknown>:0
at MonoDevelop.Projects.DefaultProjectServiceExtension.GetItemFiles (MonoDevelop.Projects.SolutionEntityItem entry, Boolean includeReferencedFiles) <0x40687630 + 0x00020> in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.GetItemFiles (MonoDevelop.Projects.SolutionEntityItem item, Boolean includeReferencedFiles) <0x406875f0 + 0x0002f> in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.GetItemFiles (MonoDevelop.Projects.SolutionEntityItem item, Boolean includeReferencedFiles) <0x406875f0 + 0x0002f> in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.GetItemFiles (MonoDevelop.Projects.SolutionEntityItem item, Boolean includeReferencedFiles) <0x406875f0 + 0x0002f> in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.GetItemFiles (MonoDevelop.Projects.SolutionEntityItem item, Boolean includeReferencedFiles) <0x406875f0 + 0x0002f> in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.GetItemFiles (MonoDevelop.Projects.SolutionEntityItem item, Boolean includeReferencedFiles) <0x406875f0 + 0x0002f> in <filename unknown>:0
at MonoDevelop.Projects.SolutionEntityItem.GetItemFiles (Boolean includeReferencedFiles) <0x406869c0 + 0x0003b> in <filename unknown>:0
at MonoDevelop.Projects.Solution.GetItemFiles (Boolean includeReferencedFiles) <0x4067e1b0 + 0x000a3> in <filename unknown>:0
at MonoDevelop.Ide.Gui.Workbench+<GetKnownFiles>c__Iterator0.MoveNext () <0x40960dc0 + 0x001ac> in <filename unknown>:0
at System.Collections.Generic.List`1[T]..ctor (IEnumerable`1 collection) <0x40960980 + 0x00291> in <filename unknown>:0
at MonoDevelop.Ide.Gui.Workbench.SaveFileStatus () <0x40960680 + 0x000b2> in <filename unknown>:0
at MonoDevelop.Ide.Gui.Workbench.<Initialize>m__2 (System.Object , MonoDevelop.Projects.BuildEventArgs ) <0x40960650 + 0x0000f> in <filename unknown>:0
at MonoDevelop.Ide.ProjectOperations.BeginBuild (IProgressMonitor monitor, ITimeTracker tt, Boolean isRebuilding) <0x4095fd40 + 0x000b7> in <filename unknown>:0
at MonoDevelop.Ide.ProjectOperations.Build (IBuildTarget entry, Boolean skipPrebuildCheck, MonoDevelop.Projects.ProjectOperationContext context) <0x4095d390 + 0x002cb> in <filename unknown>:0
ERROR [2016-04-11 14:15:20Z]: GLib-Critical: Source ID 3728 was not found when attempting to remove it
Stack trace:
at GLib.ToggleRef.g_object_remove_toggle_ref (IntPtr , GLib.ToggleNotifyHandler , IntPtr ) [0x00000] in <filename unknown>:0
at GLib.ToggleRef.Free () [0x00000] in <filename unknown>:0
at GLib.Object.PerformQueuedUnrefs () [0x00000] in <filename unknown>:0
at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <filename unknown>:0
at Gtk.Application.gtk_main () [0x00000] in <filename unknown>:0
at Gtk.Application.Run () [0x00000] in <filename unknown>:0
at MonoDevelop.Ide.IdeApp.Run () [0x00000] in <filename unknown>:0
at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions options) [0x00000] in <filename unknown>:0
at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x00000] in <filename unknown>:0
at MonoDevelop.Startup.MonoDevelopMain.Main (System.String[] args) [0x00000] in <filename unknown>:0
Any help / thoughts gratefully received!
Turns out it was the startup item in the solution.userprefs:
<Properties StartupItem="MyProject/MyProject.csproj">
There was some issue with this project that caused the build to fail even when any other project was being built.
Glad that one's over.

JsonFx with IL2CPP

Constructor not working with the IL2CPP.Here is the log i get.
MissingMethodException: Method not found: 'Default constructor not
found...ctor() of System.ComponentModel.ByteConverter'. at
System.ArgumentNullException..ctor (System.String paramName) [0x00000]
in :0 at System.Activator.CreateInstance
(System.Type type, Boolean nonPublic) [0x00000] in :0 at System.Activator.CreateInstance (System.Type type)
[0x00000] in :0 at
System.ComponentModel.TypeDescriptor.GetConverter (System.Type type)
[0x00000] in :0 at
JsonFx.Json.TypeCoercionUtility.CoerceType (System.Type targetType,
System.Object value) [0x00000] in :0 at
JsonFx.Json.JsonReader.ReadNumber (System.Type expectedType) [0x00000]
in :0 at JsonFx.Json.JsonReader.Read (System.Type
expectedType, Boolean typeIsHint) [0x00000] in :0
at JsonFx.Json.JsonReader.ReadArray (System.Type arrayType) [0x00000]
in :0 at JsonFx.Json.JsonReader.Read (System.Type
expectedType, Boolean typeIsHint) [0x00000] in :0
at JsonFx.Json.JsonReader.ReadObject (System.Type objectType)
[0x00000] in :0 at JsonFx.Json.JsonReader.Read
(System.Type expectedType, Boolean typeIsHint) [0x00000] in :0 at JsonFx.Json.JsonReader.ReadObject (System.Type
objectType) [0x00000] in :0 at
JsonFx.Json.JsonReader.Read (System.Type expectedType, Boolean
typeIsHint) [0x00000] in :0 at
JsonFx.Json.JsonReader.ReadObject (System.Type objectType) [0x00000]
in :0 at JsonFx.Json.JsonReader.Read (System.Type
expectedType, Boolean typeIsHint) [0x00000] in :0
at JsonFx.Json.JsonReader.ReadObject (System.Type objectType)
[0x00000] in :0 at JsonFx.Json.JsonReader.Read
(System.Type expectedType, Boolean typeIsHint) [0x00000] in :0 at JsonFx.Json.JsonReader.Deserialize (Int32 start,
System.Type type) [0x00000] in :0 at
JsonFx.Json.JsonReader.Deserialize (System.String value, Int32 start,
System.Type type) [0x00000] in :0 at
JsonFx.Json.JsonReader.Deserialize[BGS] (System.String value)
[0x00000] in :0 at GameData.ParseJson ()
[0x00000] in :0 at GameData.loaddata () [0x00000]
in :0 at mainmenuUI.Start () [0x00000] in
:0 at
System.Array+InternalEnumerator1[System.Collections.Hashtable+Slot].get_Current
() [0x00000] in <filename unknown>:0
System.InternalEnumerator1:get_Current()
This does look like a problem with stripping. Note that although the "Stripping Level" setting in the Unity Editor may be set to "Disable" the IL2CPP scripting backend will still perform the equivalent byte code stripping.
As Marius mentioned, you will need to explicitly tell the Unity build toolchain to not strip the ByteConverter type. You can add a link.xml file in your Assets directory with the following content:
<linker>
<assembly fullname="System">
<type fullname="System.ComponentModel.ByteConverter" preserve="all"/>
</assembly>
</linker>
This will keep everything in the ByteConverter type (the preserve="all" element), which might be a bit too much, but you can follow the documentation to minimize the amount of IL code that is kept in the assembly.
Its a stripping Error. With IL2CPP assembly stripping is always enabled. Try updating to the latest Unity-Version. Otherwise you can explicitly prevent namespaces from stripping.

HttpCompileException: "External exception" when trying to access razor view in ServiceStack hosted on Apache+mod_mono

I am getting HttpCompileException when trying to access a razor view. Error log contains no information. The same deployment works on NGinx+FastCGI, but not on Apache+mod_mono.
I am not using the mod_mono AutoConfiguration because I have not (yet) found a way how to make it work.
This is my "manual" apache2.conf configuration for mono:
MonoAutoApplication disabled
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
MonoApplications "/:/var/www/MyAppName"
<Location />
SetHandler mono
</Location>
This is the error I am getting when trying to access a razor view:
System.Web.HttpCompileException: External exception
at ServiceStack.Razor.Compilation.RazorPageHost.Compile () [0x00000] in <filename unknown>:0
at ServiceStack.Razor.Managers.RazorPageResolver.EnsureCompiled (ServiceStack.Razor.Managers.RazorPage page, IHttpResponse response) [0x00000] in <filename unknown>:0
at ServiceStack.Razor.Managers.RazorPageResolver.CreateRazorPageInstance (IHttpRequest httpReq, IHttpResponse httpRes, System.Object dto, ServiceStack.Razor.Managers.RazorPage razorPage) [0x00000] in <filename unknown>:0
at ServiceStack.Razor.Managers.RazorPageResolver.ResolveAndExecuteRazorPage (IHttpRequest httpReq, IHttpResponse httpRes, System.Object model, ServiceStack.Razor.Managers.RazorPage razorPage) [0x00000] in <filename unknown>:0
at ServiceStack.Razor.Managers.RazorPageResolver.ProcessRequest (IHttpRequest httpReq, IHttpResponse httpRes, System.Object dto) [0x00000] in <filename unknown>:0
at ServiceStack.WebHost.Endpoints.Formats.HtmlFormat+<>c__DisplayClass1.<SerializeToStream>b__0 (IViewEngine x) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.Any[IViewEngine] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
at ServiceStack.WebHost.Endpoints.Formats.HtmlFormat.SerializeToStream (IRequestContext requestContext, System.Object response, IHttpResponse httpRes) [0x00000] in <filename unknown>:0
at ServiceStack.WebHost.Endpoints.Extensions.HttpResponseExtensions.WriteToResponse (IHttpResponse response, System.Object result, ServiceStack.ServiceHost.ResponseSerializerDelegate defaultAction, IRequestContext serializerCtx, System.Byte[] bodyPrefix, System.Byte[] bodySuffix) [0x00000] in <filename unknown>:0
I have looked as RazorPageHost.Compile in ServiceStack sources and I can see that HttpCompileException is thrown in case result from _codeDomProvider.CompileAssemblyFromDom contains some Errors, which makes sense.
Is there some special configuration to make CodeDomProvider work on mod_mono Apache-hosted ServiceStack applications?
EDIT: It looks like this is not specific to ServiceStack, other ASP.NET apps deployed to the same server have the same issue.

Exception when referencing WCF in MonoDevelop that exposes System.Data.DataSet

When referencing our test WCF service I get this error in MonoDevelop (2.4 and 2.6).
We are exposing System.Data.DataSet and it seems to dislike that. Is it a known issue with MonoDevelop? Is there a workaround?
I can reference the same service in Studio 2008 just fine.
Only local element is allowed as the content of the sequence of the
top-level content of a complex type
'http://tempuri.org/:GetDataResult'. Other particles (sequence,
choice, all, any, group ref) are not supported.
System.Runtime.Serialization.InvalidDataContractException: Only local element is allowed as the content of the sequence of the top-level content of a complex type 'http://tempuri.org/:GetDataResult'. Other particles (sequence, choice, all, any, group ref) are not supported.
at System.Runtime.Serialization.XsdDataContractImporter.ImportComplexType (System.CodeDom.CodeTypeDeclaration td, System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.XmlSchemaComplexType type, System.Xml.XmlQualifiedName qname) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.XsdDataContractImporter.DoImport (System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.XmlSchemaType type, System.Xml.XmlQualifiedName qname) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.XsdDataContractImporter.Import (System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.XmlSchemaType type, System.Xml.XmlQualifiedName qname) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.XsdDataContractImporter.Import (System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.XmlSchemaElement element) [0x00000] in <filename unknown>:0
at System.ServiceModel.Description.DataContractSerializerMessageContractImporter.CreateMessagePart (System.Xml.Schema.XmlSchemaElement elem) [0x00000] in <filename unknown>:0
at System.ServiceModel.Description.DataContractSerializerMessageContractImporter.ImportPartsBySchemaElement (System.Xml.XmlQualifiedName qname, System.Collections.Generic.List`1 parts, System.String ns) [0x00000] in <filename unknown>:0
at System.ServiceModel.Description.DataContractSerializerMessageContractImporter.resolveMessage (System.Web.Services.Description.Message msg, System.ServiceModel.Description.MessageBodyDescription body, System.Collections.Generic.List`1 parts) [0x00000] in <filename unknown>:0
at System.ServiceModel.Description.DataContractSerializerMessageContractImporter.DoImportContract () [0x00000] in <filename unknown>:0
at System.ServiceModel.Description.DataContractSerializerMessageContractImporter.System.ServiceModel.Description.IWsdlImportExtension.ImportContract (System.ServiceModel.Description.WsdlImporter importer, System.ServiceModel.Description.WsdlContractConversionContext context) [0x00000] in <filename unknown>:0
at System.ServiceModel.Description.WsdlImporter.ImportContract (System.Web.Services.Description.PortType wsdlPortType) [0x00000] in <filename unknown>:0
at System.ServiceModel.Description.WsdlImporter.ImportAllContracts () [0x00000] in <filename unknown>:0
at MonoDevelop.WebReferences.WCF.WebServiceDiscoveryResultWCF.CreateProxyFile (MonoDevelop.Projects.DotNetProject dotNetProject, FilePath basePath, System.String proxyNamespace, System.String referenceName) [0x0014d] in /Users/michael/Mono/md-2-5-90/main/src/addins/MonoDevelop.WebReferences/MonoDevelop.WebReferences.WCF/WebServiceDiscoveryResultWCF.cs:176
at MonoDevelop.WebReferences.WebServiceDiscoveryResult.GenerateFiles (MonoDevelop.Projects.DotNetProject project, System.String namspace, System.String referenceName) [0x0008b] in /Users/michael/Mono/md-2-5-90/main/src/addins/MonoDevelop.WebReferences/MonoDevelop.WebReferences/WebServiceDiscoveryResult.cs:89
at MonoDevelop.WebReferences.Commands.WebReferenceCommandHandler.NewWebReference () [0x000b8] in /Users/michael/Mono/md-2-5-90/main/src/addins/MonoDevelop.WebReferences/MonoDevelop.WebReferences.Commands/WebReferenceCommandHandler.cs:43