05 Oct 2010
29 Oct 2010
Link to this post
I need to throw a few things into the Application_Start method in the global.asax file and I'm not sure how to add references to the file.
My file looks like this
<%@ Application Language="C#" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Configuration" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="MyServicesIWantToAdd" %>
<script runat="server" >
void Application_Start(object sender, EventArgs e)
// Code that runs on application startup
Now its able to successfully import the system references, but it errors out when it gets to MyServices. The .dll file for MyServices is in the website's \bin folder. Is there a way (without having to convert this whole thing to a web app) to reference MyServices.dll in the global.asax file?