Nemerle + ASP.NET
От: alvas  
Дата: 09.06.07 09:58
Оценка:
У кого нибудь заработала связка Nemerle + ASP.NET?

Брал отсюда. Ничего не получается.
http://alvas.net — Аудио-инструменты для .Net разработчиков
Re: Nemerle + ASP.NET
От: VladD2 Российская Империя www.nemerle.org
Дата: 09.06.07 23:43
Оценка:
Здравствуйте, alvas, Вы писали:

A>У кого нибудь заработала связка Nemerle + ASP.NET?


A>Брал отсюда. Ничего не получается.


Думаю, что никто не пробовал. А что получается? Сообщения об ошибках? Какие?
... << RSDN@Home 1.2.0 alpha rev. 637>>
Есть логика намерений и логика обстоятельств, последняя всегда сильнее.
Re[2]: Nemerle + ASP.NET
От: IO Украина  
Дата: 10.06.07 08:07
Оценка:
Здравствуйте, VladD2, Вы писали:

VD>Здравствуйте, alvas, Вы писали:


A>>У кого нибудь заработала связка Nemerle + ASP.NET?


A>>Брал отсюда. Ничего не получается.


VD>Думаю, что никто не пробовал. А что получается? Сообщения об ошибках? Какие?

Пробовали.

У меня ошибки такие:

Error 4 cannot load assembly with macros `Nemerle.Macros'
Error 5 cannot open file `Files\Nemerle\': Could not find a part of the path 'c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Files\Nemerle\'.

--
Кстати секция <compilers> во втором аспнете переехала в <system.codedom>.
Re[2]: Nemerle + ASP.NET
От: alvas  
Дата: 10.06.07 08:21
Оценка:
Здравствуйте, VladD2, Вы писали:

VD>Здравствуйте, alvas, Вы писали:


A>>У кого нибудь заработала связка Nemerle + ASP.NET?


A>>Брал отсюда. Ничего не получается.


VD>Думаю, что никто не пробовал. А что получается? Сообщения об ошибках? Какие?


Server Error in '/Nem' Application.
--------------------------------------------------------------------------------

Unsupported access attribute
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.NotSupportedException: Unsupported access attribute

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NotSupportedException: Unsupported access attribute]
Nemerle.Compiler.NemerleCodeGenerator.OutputMemberAccessModifier(MemberAttributes attributes) +192
Nemerle.Compiler.NemerleCodeGenerator.GenerateMethod(CodeMemberMethod method, CodeTypeDeclaration declaration) +176
System.CodeDom.Compiler.CodeGenerator.GenerateMethods(CodeTypeDeclaration e) +683
System.CodeDom.Compiler.CodeGenerator.GenerateType(CodeTypeDeclaration e) +613
System.CodeDom.Compiler.CodeGenerator.System.CodeDom.Compiler.ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) +163
Nemerle.Compiler.NemerleCodeGenerator.GenerateTypes(CodeNamespace e) +287
Nemerle.Compiler.NemerleCodeGenerator.GenerateNamespace(CodeNamespace ns) +84
System.CodeDom.Compiler.CodeGenerator.System.CodeDom.Compiler.ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o) +163
System.CodeDom.Compiler.CodeGenerator.GenerateNamespaces(CodeCompileUnit e) +172
System.CodeDom.Compiler.CodeGenerator.GenerateCompileUnit(CodeCompileUnit e) +26
System.CodeDom.Compiler.CodeGenerator.System.CodeDom.Compiler.ICodeGenerator.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o) +218
System.CodeDom.Compiler.CodeDomProvider.GenerateCodeFromCompileUnit(CodeCompileUnit compileUnit, TextWriter writer, CodeGeneratorOptions options) +29
System.Web.Compilation.AssemblyBuilder.AddCodeCompileUnit(BuildProvider buildProvider, CodeCompileUnit compileUnit) +146
System.Web.Compilation.AssemblyBuilder.GenerateMiscCodeCompileUnit() +23
System.Web.Compilation.AssemblyBuilder.Compile() +155
System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +210
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +279
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +580
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
http://alvas.net — Аудио-инструменты для .Net разработчиков
Re[3]: Nemerle + ASP.NET
От: IO Украина  
Дата: 10.06.07 09:06
Оценка:
Здравствуйте, alvas, Вы писали:

У тебя оно компилируется? Не подскажешь как (по шагам)?
Re[4]: Nemerle + ASP.NET
От: alvas  
Дата: 10.06.07 09:38
Оценка:
Здравствуйте, IO, Вы писали:

IO>Здравствуйте, alvas, Вы писали:


IO>У тебя оно компилируется? Не подскажешь как (по шагам)?


Добавил в GAC Nemerle.dll и Nemerle.Compiler.dll
http://alvas.net — Аудио-инструменты для .Net разработчиков
Re[5]: Nemerle + ASP.NET
От: IO Украина  
Дата: 10.06.07 10:17
Оценка:
Здравствуйте, alvas, Вы писали:

A>Добавил в GAC Nemerle.dll и Nemerle.Compiler.dll

gacutil -i Nemerle.dll
gacutil -i Nemerle.Compiler.dll
не помогло.

Может я тут что-то не то начудил:
    <system.codedom>
        <compilers>
            <compiler
                language="n;nemerle;Nemerle"
                extension=".aspx"
                warningLevel="1"
                type="Nemerle.Compiler.NemerleCodeProvider, Nemerle.Compiler, Version=0.9.3.0, Culture=neutral, PublicKeyToken=5291d186334f6101"
                compilerOptions="/lib:c:\Program Files\Nemerle\"                
             />
        </compilers>
    </system.codedom>

?
Re[6]: Nemerle + ASP.NET
От: Андрей Хропов Россия  
Дата: 10.06.07 13:03
Оценка:
Здравствуйте, IO, Вы писали:

IO>Может я тут что-то не то начудил:

IO>
IO>    <system.codedom>
IO>        <compilers>
IO>            <compiler
IO>                language="n;nemerle;Nemerle"
IO>                extension=".aspx"
IO>                warningLevel="1"
IO>                type="Nemerle.Compiler.NemerleCodeProvider, Nemerle.Compiler, Version=0.9.3.0, Culture=neutral, PublicKeyToken=5291d186334f6101"
IO>                compilerOptions="/lib:c:\Program Files\Nemerle\"                
IO>             />
IO>        </compilers>
IO>    </system.codedom>
IO>

IO>?

А ты надеюсь из svn взял исходники и собрал? Тогда видимо надо версию сборки поправить.
... << RSDN@Home 1.1.4 stable SR1 rev. 568>>
Re[7]: Nemerle + ASP.NET
От: IO Украина  
Дата: 10.06.07 13:48
Оценка:
Здравствуйте, Андрей Хропов, Вы писали:

АХ>А ты надеюсь из svn взял исходники и собрал? Тогда видимо надо версию сборки поправить.

Да. В GAC у меня аж два компилятора 0.9.3.0 и 0.9.3.7698.
Если в конфиге ссылаюсь на второй, то получаю одну ошибку

Error 1 Unsupported access attribute /

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.