2013-03-26 58 views
1

我蔚藍的SDK多年絕對沮喪,現在我一直在使用它,並輸出錯誤日誌文件中的這個問題還是出現了:無法調試使用Azure的SDK進行的Node.js

Application has thrown an uncaught exception and is terminated: 
Error: ENOENT, no such file or directory 'C:\DWASFiles\Sites\pazooza\VirtualDirectory0\site\wwwroot\iisnode\RD00155D4313F9-20848-stdout-Tue Mar 26 2013 03:10:56 GMT+0000 (GMT Standard Time).txt' 
    at Object.openSync (fs.js:240:18) 
    at Object.writeFileSync (fs.js:628:15) 
    at SyncWriteStream.<anonymous> (D:\Program Files (x86)\iisnode\interceptor.js:181:20) 
    at Object.<anonymous> (console.js:25:18) 
    at IncomingMessage.<anonymous> (C:\DWASFiles\Sites\pazooza\VirtualDirectory0\site\wwwroot\utils\facebook.js:69:21) 
    at IncomingMessage.emit (events.js:88:20) 
    at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:130:23) 
    at CleartextStream.socketOnData [as ondata] (http.js:1288:20) 
    at CleartextStream._push (tls.js:375:27) 
    at SecurePair.cycle (tls.js:734:20) 

正如你看到的錯誤發生是因爲fs對象試圖找到c:驅動器上的某些東西,指向我本地機器的c:驅動器與假定在Azure網站中的日誌記錄系統有關?

和d:\程序文件(x86)\ iisnode \ interceptor.js

是什麼一回事應該不是被指着Azure雲網站實例的資源?

Azure SDK的任何人都可以告訴我如何讓這個錯誤消失。

我問了這幾個月和幾個月前,我們認爲我們現在已經修復了它的背部......非常令人沮喪的微軟...跆拳道是你們爲了讓我們的生活更輕鬆嗎?在這裏,導致這個問題

我的其他問題:

Webmatrix 2 brokenWindows Azure Node.js Internal Server Error

我node.js的web.config文件看起來是這樣的:

<configuration> 
    <system.webServer> 
      <handlers> 
       <!-- indicates that the server.js file is a node.js application to be handled by the iisnode module --> 
       <add name="iisnode" path="server.js" verb="*" modules="iisnode"/> 
      </handlers> 
      <rewrite> 
       <rules> 
        <!-- Don't interfere with requests for node-inspector debugging --> 
        <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">      
         <match url="^server.js\/debug[\/]?" /> 
        </rule> 

        <!-- First we consider whether the incoming URL matches a physical file in the /public folder --> 
        <rule name="StaticContent"> 
         <action type="Rewrite" url="public{{REQUEST_URI}}"/> 
        </rule> 

        <!-- All other URLs are mapped to the Node.js application entry point --> 
        <rule name="DynamicContent"> 
         <conditions> 
           <add input="{{REQUEST_FILENAME}}" matchType="IsFile" negate="True"/> 
         </conditions> 
         <action type="Rewrite" url="server.js"/> 
        </rule> 

       </rules> 
      </rewrite> 
      <!-- You can control how Node is hosted within IIS using the following options --> 
      <iisnode 
      loggingEnabled="true" 
      devErrorsEnabled="true" 
     /> 
    </system.webServer> 
</configuration> 

任何幫助或建議至於爲什麼這個錯誤出現,當我設置logginEnabled =「true」將不勝感激。

當我設置loggingEnabled爲false沒有錯誤和網站運行良好,但是當它的一切都開啓了!

回答

0

您能否提交下列問題:https://github.com/windowsazure/iisnode

聽起來像這樣是IISNode日誌記錄的問題?我們可能能夠在那裏爲您提供有關此問題的更多詳細信息。

Andre