Asp.net application and CompilerOptions

lenkapidaras

New Member
Hello<BR><BR>I've created an ASP.NET application that uses MySQL <BR>through ODBC.Net<BR><BR>I've added a reference to Microsoft.Data.Odbc by <BR>rightclicking on "References" in the solution explorer.<BR><BR>Everything works fine if I add a CompilerOptions line in <BR>my ASPX page, but not without it.<BR><%@ CompilerOptions='/R:"C:Program <BR>FilesMicrosoft.NetOdbc.NetMicrosoft.Data.Odbc.dll"' %><BR><BR>My question is: Why do I still have to add a <BR>CompilerOptions line to my aspx-page. I though that adding <BR>a reference in my project was enough?<BR><BR>//Jonas
 
Back
Top