我已經加入了簡單的指標,如:Ravendb拋出IndexCompilationException後新的索引已經添加到代碼
public class MyDocType_ById : AbstractIndexCreationTask<MyDocType>
{
public MyDocType_ById()
{
Map = myDocs => from mine in myDocs
select new
{
Id = mine.Id
};
Index(x => x.Id, FieldIndexing.Analyzed);
}
}
編譯,打我的網站後,我得到以下異常:
[IndexCompilationException:找不到文件 'C:\ dev的\ DB \ ravendb \ CompiledIndexCache \ -1836739954.u6DpcVRxqMXarC7cwg26Jg%3D%3d.nodebug.dll'。]
我使用
IndexCreation.CreateIndexes(typeof(MyDocType_ById).Assembly, IoC.Container.GetInstance<IDocumentStore>());
在一個文件中創建一個名爲-1836739954.u6DpcVRxqMXarC7cwg26Jg%3d%3d.nodebug.dll.cs
文件夾建立在我的應用程序,啓動指標,但該dll是不存在的。
步驟嘗試:
- 確保
C:\dev\db\ravendb\CompiledIndexCache\
- IISRESET +重啓ravendb(Windows服務)
- 重命名該指數
- 在辦公室說了[詛咒]緣故出聲正確的文件夾權限
任何想法如何解決這個問題?