This project is read-only. file Server error

Topics: Customizing Orchard, Troubleshooting, Writing modules
Oct 19, 2011 at 4:54 PM

I have created a new module/widget just like I have 3 or 4 times before. All the the others run successfully. The new widget now gives me a server error regarding the file:


Compiler Error Message: CS0116:

 A namespace cannot directly contain members such as fields or methods

Source Error:

Line 1:  
Line 2:  <Placement>
Line 3:      <Place Parts_Webinar="Content:10"/>
Line 4:      <Place Parts_Webinar_Edit="Content:7.5"/>

Source File: c:\Users\User1\Documents\My Web Sites\orchard1\Modules\Webinars\    Line: 2 

why is the compiler treating this .info file like a class? it's just a text file. I created it my choosing .txt and changing the extension to .info. It has compiled successfully before. 
What gives?


Oct 19, 2011 at 7:12 PM

Can you check the Build Action associated to the file in the Properties toolbox ?