Spacebuilder runs the modification memo on Mono

Source: Internet
Author: User
Tags mscorlib
ArticleDirectory
    • System. invalidprogramexception
    • System. argumentnullexception

Spacebuilder is an Asp.net mvc3 project. It uses combres, combres depends on dotless, and then does not see dotless in the spacebuilder project. The running requirement is dotless 1.3.0.2 and obtained through nuget:

Install-package dotless-version 1.3.0.2

Modify web. config to add the dotless Configuration:

<Configuration>
<Configsections>
<Section name = "combres" requirepermission = "false" type = "combres. configsectionsetting, combres, version = 2.2.2.6"/>
<Section name = "dotless" type = "dotless. Core. configuration. dotlessconfigurationsectionhandler, dotless. Core"/>
</Configsections>

......

<Dotless minifycss = "false" cache = "true" Web = "false"/>

</Configuration>

Remove Microsoft. Web. Infrastructure. DLLProgramUse the dynamic library provided by mono. For more information, see Linux. Net learning notes (5) or get mvc3 razor running on mono.

Access the http://mono.cloudapp.net/, followed by a database connection error: system. notimplementedexception (SSL encryption for data sent between client and server is not implemented .) on stackoverflow, I saw a similar problem: there was no such thing as azure could do for testing, and I had to build a local environment to test it.

Create a virtual machine in Windows azure to Install SQL Server 2008 R2 and manually install SPB.

System. invalidprogramexceptioninvalid il code in system. Web. Handlers. scriptmodule:. ctor (): Method body is empty.

Description:HTTP 500. Error Processing request.

Details:Non-web exception. Exception origin (name of application or object): mscorlib.

Exception stack trace:

At (wrapper managed-to-native) system. reflection. monocmethod: internalinvoke (system. reflection. monocmethod, object, object [], system. exception &) at system. reflection. monocmethod. internalinvoke (system. object OBJ, system. object [] parameters) [0x00000] in <FILENAME unknown>: 0

The mono version of system. Web. Extensions. dll, system. Web. webpages. Administration. dll must be used.

The above assembly under mono can run ASP. net mvc 3.

<Globalization culture = "ZH-CN" uiculture = "En-us"/> is added to Web. config, but an error is returned.

System. argumentnullexceptionargument cannot be null. Parameter Name: Key

Description:HTTP 500. Error Processing request.

Details:Non-web exception. Exception origin (name of application or object): mscorlib.

Exception stack trace:

At system. resources. resourceManager. internalgetresourceset (system. globalization. cultureinfo culture, Boolean createifnotexists, Boolean tryparents) [0x00000] in <FILENAME unknown>: 0 at system. resources. resourceManager. internalgetresourceset (system. globalization. cultureinfo culture, Boolean createifnotexists, Boolean tryparents) [0x00000] in <FILENAME unknown>: 0 at system. resources. resourceManager. internalgetresourceset (system. globalization. cultureinfo culture, Boolean createifnotexists, Boolean tryparents) [0x00000] in <FILENAME unknown>: 0 at system. resources. resourceManager. getstring (system. string name, system. globalization. cultureinfo culture) [0x00000] in <FILENAME unknown>: 0 at system. web. razor. resources. razorresources. get_blockname_code () [0x00000] in <FILENAME unknown>: 0 at system. web. razor. parser. csharpcodeparser. parseblock () [0x00000] in <FILENAME unknown>: 0 at system. web. razor. parser. parserbase. parseblockwithotherparser (system. web. razor. parser. syntaxtree. spanfactory previusspanfactory, Boolean collecttransitiontoken) [0x00000] in <FILENAME unknown>: 0 at system. web. razor. parser. htmlmarkupparser. trystartcodeparser (Boolean issinglelinemarkup, Boolean documentlevel) [0x00000] in <FILENAME unknown>: 0 at system. web. razor. parser. htmlmarkupparser. parserootblock (system. tuple '2 nestingsequences, Boolean casesensitive) [0x00000] in <FILENAME unknown>: 0 at system. web. razor. parser. htmlmarkupparser. parsedocument () [0x00000] in <FILENAME unknown>: 0 at system. web. razor. parser. razorparser. parse (system. web. razor. text. lookaheadtextreader input, system. web. razor. parser. parservisitor visitor) [0x00000] in <FILENAME unknown>: 0 at system. web. razor. razortemplateengine. generatecodecore (system. web. razor. text. lookaheadtextreader input, system. string classname, system. string rootnamespace, system. string sourcefilename, nullable '1 canceltoken) [0x00000] in <FILENAME unknown>: 0 at system. web. razor. razortemplateengine. generatecode (system. io. textreader input, system. string classname, system. string rootnamespace, system. string sourcefilename, nullable '1 canceltoken) [0x00000] in <FILENAME unknown>: 0 at system. web. razor. razortemplateengine. generatecode (system. io. textreader input, system. string classname, system. string rootnamespace, system. string sourcefilename) [0x00000] in <FILENAME unknown>: 0 at system. web. webpages. razor. razorbuildprovider. ensuregeneratedcode () [0x00000] in <FILENAME unknown>: 0 at system. web. webpages. razor. razorbuildprovider. get_codecompilertype () [0x00000] in <FILENAME unknown>: 0 at system. web. compilation. buildmanagerdirectorybuilder. getbuildprovidercodedomtype (system. web. compilation. buildprovider bp) [0x00000] in <FILENAME unknown>: 0 at system. web. compilation. buildmanagerdirectorybuilder. assigntogroup (system. web. compilation. buildprovider, system. collections. generic. list '1 groups) [0x00000] in <FILENAME unknown>: 0 at system. web. compilation. buildmanagerdirectorybuilder. build (Boolean single) [0x00000] in <FILENAME unknown>: 0 at system. web. compilation. buildmanager. buildinner (system. web. virtualpath VP, Boolean Debug) [0x00000] in <FILENAME unknown>: 0 at system. web. compilation. buildmanager. build (system. web. virtualpath vp) [0x00000] in <FILENAME unknown>: 0 at system. web. compilation. buildmanager. getcompiledtype (system. web. virtualpath) [0x00000] in <FILENAME unknown>: 0 at system. web. compilation. buildmanager. getcompiledtype (system. string virtualpath) [0x00000] in <FILENAME unknown>: 0 at system. web. MVC. buildmanagerwrapper. system. web. MVC. ibuildmanager. getcompiledtype (system. string virtualpath) [0x00000] in <FILENAME unknown>: 0 at system. web. MVC. buildmanagercompiledview. render (system. web. MVC. viewcontext, system. io. textwriter writer) [0x00000] in <FILENAME unknown>: 0 at system. web. MVC. viewresultbase. executeresult (system. web. MVC. controllercontext context) [0x00000] in <FILENAME unknown>: 0 at system. web. MVC. controlleractioninvoker. invokeactionresult (system. web. MVC. controllercontext, system. web. MVC. actionresult) [0x00000] in <FILENAME unknown>: 0 at system. web. MVC. controlleractioninvoker + <> C _ displayclass1c. <invokeactionresultwithfilters> B _ 19 () [0x00000] in <FILENAME unknown>: 0 at system. web. MVC. controlleractioninvoker. invokeactionresultfilter (iresultfilter filter, system. web. MVC. resultexecutingcontext precontext, system. func '1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.