There is no reference in web.config to this file? I've looked at every file that's uploaded to the hosting server and no reference exists to the DLL anywhere.
Main Topics
Browse All TopicsI have a simple aspx page that uses a codebehind page. I'm using the line:
<%@ Page Language="vb" AutoEventWireup="false" CodeFile="Default.aspx.vb"
in my aspx file and I do have a file called Default.aspx.vb that has a Partial class called _Default. When I run the debugger, everything works fine. When I publish this to my web hosting provider (which does run ASP.NET 2.0 just fine according to them), I'm receiving the error:
Parser Error Message: The file '/newsite/Default.aspx.vb'
This makes sense since that file does not exist on the hosting provider since I tell it to only publish files needed for the website to run. When I compile the site on my local computer, it creates a file called test.dll in the /bin folder which should contain all the compiled code for the vb files. What is it that I have to do to get this working for a site that is going to be pre-compiled? How would precompilation ever work if no reference is ever made to the DLL that is created, where it is, what it's called, etc.? Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
When you publish your webpage it should create all of your asp pages, an xml configuration file called pre-compiled app, and a webconfig along with your dll file. Make sure you are uploading the files from the folder you published your webpage and not from the regular folder that you hold your webpage in. The code in the asp page should read like this to use your dll file:
<%@ page language="vb" autoeventwireup="true" inherits="_Default, test.dll" %>
OK, now I'm confused even more...
I don't have any xml file called pre-compiled app. I only have webconfig.xml.
Secondly, I don't manually upload anything - VS does that when I use the publish tool.
My "inherits" looks as I've typed above. I've never seen the DLL referenced directly in the inherits statement though I can try it.
And I have no Debug-->Publish This Website tool in VS2005. I use Build-->Publish projectname
Your correct, I put the wrong menu it is Build not debug. When you build the project this way if it created a dll file for you in the published website folder, then you should reference it the way I posted earlier. Oddly though, when I am publishing a webpage through VS 2005 and am taking the actually asp file from the published folder, it has the dll included within it automatically. Let me know if this fixes your problem.
OK, this is what's getting very confusing...
I'm seeing a bunch of sites that say to go to Build-->Publish Web Site. Then they say to check on boxes such as "Allow this precompiled site to be updateable" or "Enable strong naming on precompiled assemblies ". I don't have a build-->Publish Web Site option, mine says Build-->Publish websitename (where websitename is the name of my project). I also do not have any of these options. I just have a folder location and some boxes that indicate if I want to erase the original site, overwrite files, etc. I know I'm running Visual Studio 2005 just as these websites are saying, so what gives?
Business Accounts
Answer for Membership
by: imateyelectronicsPosted on 2007-09-01 at 14:19:08ID: 19815249
I believe the reference to the dll file will be made in web.config