Link to home
Start Free TrialLog in
Avatar of Mister_Spock
Mister_SpockFlag for United States of America

asked on

Could not load type 'BatchSends.Global'

I am in the middle of a conversion from a DotNet 1.1 project to a DotNet 3.5 project. Everything was going smoothly but I am getting the error “could not load type 'Batch.Sends'”. File error is with has only one line (see code attachment). This is an existing website that I am trying to add, any ideas?
<%@ Application Codebehind="Global.asax.cs" Inherits="BatchSends.Global" %>

Open in new window

Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Is there a BatchSends.Global class in the Global.aspx.cs file?
Avatar of Mister_Spock

ASKER

I belive so but I will have to check and get back to you.
I have a namespace named BatchSends and a public class Global : System.Web.HttpApplication. However they are part of a ASAX file not ASPX.
Have you tried compiling so that he batchsends.dll is created and placed in the bin directory?
I think the error is occurring because the dll has not been created.
That was my thought as well but I did not know how to do it. Sounds like you do though, any suggestions?
Yes just compile the solution and the error should go away because the dll will get created during compilation.
It is not a solution though, it is a exisiting website that is included in the project.
so right click the website and select build website, then right click the project and select build project.
Tried that but unless I am looking in the wrong folder, no new dll file is created. Since the website still does not build I don't think a dll file will be created.
ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There are many files and folders in the solution, some are in-house and others are what Microsoft built during the conversion.
Thank You