We have a very large, VB.NET solution in Visual Studio 2010
which contains an ASP.NET Web Site. The Web was originally created as a Web Site and I need to convert it to a Web App. I have attempted to convert it in Visual Studio 2010 using these sites as guidelines:
How To Convert ASP.NET Website to ASP.NET Web Application
and at Microsoft:
http://msdn.microsoft.com/en-us/library/aa983476.ASPX
Along with the Web Site, the solution consists of three class library projects that handle things such as the business logic, database calls and models, which defines the data structures as data collections when the data is returned from the database.
The solution also includes the Microsoft Enterprise Library 3.1 and the Web Deploy project, which allows me to compile the web site into its own assembly. There are also nearly a dozen classes in the App_Code folder. Well, the main one is a module, not a class.
Once I converted the web site to an app, I was able to get the solution to compile with no compilation errors. Of course, by default, the App_code folder was changed to Old_App_Code. However, when I run the app, it does not load properly.
There are a number of calls throughout the site to methods in the module from APSX pages. At this time, this is where the application is failing. I see this error in the Event Log:
Error BC30451: 'TrimTrailingZeros' is not declared. It may be inaccessible due to its protection level.
TrimTrailingZeros is a public method in the public module. If I convert the module to a class, I get hundreds of errors (more errors than the Error List can handle).
Right now, I am getting this error that’s preventing my pages to load. I have tried a number of things to get this to work.
Any suggestions on what should I do so I can get passed this?
Let me know if you have further questions.
Thanks -Paul