0
Server Error in '/' Application
Access to the path "/var/www/Ubuntu/Bin" is denied.

Description: HTTP 500. Error processing request.

Stack Trace:

System.UnauthorizedAccessException: Access to the path "/var/www/Ubuntu/Bin" is denied.
  at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.LoadPrecompilationInfo (System.String precomp_config) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager..cctor () [0x00000] in <filename unknown>:0 

Version information: Mono Runtime Version: 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2); ASP.NET Version: 2.0.50727.1433

Mono を使用して ASP.NET C# を実行しています
。Windows XP SP3、IIS を搭載した PC ですべてのコードが動作しています。
残念ながら、すべての ASP.NET ファイルを Ubuntu Server 12.04 LTS を使用してサーバーにアップロードしようとすると、このエラーが発生します。発生します。
Bin フォルダーを 777 パーミッションに設定しようとしましたが、まだ機能しません。Bin フォルダー内には、ASP.NETが関数を呼び出せるように
する .DLL ファイルがあります。DirectMethod

これは私のBin Folderファイルです
root@ubuntu:/var/www/Ubuntu/Bin# dir
App_Code.dll
App_Web_7userbmq.dll
Ext.Net.Utilities.dll
App_Web_7userbmq1.dll Ext.Net.dll
Newtonsoft.Json.dll

そして、これはパス内の私のApache2サイト設定です/etc/apache2/sites-available/Ubuntu

<VirtualHost *:80>
  ServerName example.org
  ServerAdmin web-admin@example.org
  ServerAlias www.example.org
  DocumentRoot /var/www/Ubuntu
  ErrorLog /var/www/Ubuntu/logs/error.log
  CustomLog /var/www/Ubuntu/logs/access.log combined

  MonoServerPath example.org "/usr/bin/mod-mono-server2"
  MonoDebug example.org true
  MonoSetEnv example.org MONO_IOMAP=all
  MonoApplications example.org "/:/var/www/Ubuntu"
  <Location "/">
    Allow from all
    Order allow,deny
    MonoSetServerAlias example.org
    SetHandler mono
    SetOutputFilter DEFLATE
    SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
  </Location>
  <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript
  </IfModule>
</VirtualHost>

更新: 私の PC では .NET 3.5 を使用しており、Apache Mono では 2.0 を使用しています。これは問題ですか?

4

0 に答える 0