0

I have a web application project, which compiles fine using VS2008. However each time, I try to compile it with aspnet_compiler it fails and is not able to see my class, which I have placed in my code folder. Why is the aspnet_compiler not able to see my class and how can I fix that?

Thanks

vikasde
  • 5,681
  • 10
  • 45
  • 62
  • We are going to need more information in order to help. What is the exact error message you are getting? – Andrew Hare Sep 21 '09 at 19:28
  • MyFile.ascx.vb(73): error BC30451: Name 'ElmahHelper' is not declared. However the ElmahHelper.vb is in my code folder and is added in the visual studio project. – vikasde Sep 21 '09 at 19:33

2 Answers2

0

Check to make sure the namespace is referenced appropriately.

Gabe
  • 49,577
  • 28
  • 142
  • 181
0

Click on the .vb file in your project, look under the proporties palette and make sure that Build Action is set to Compile.

Keith Adler
  • 20,880
  • 28
  • 119
  • 189