Runs from Debug, but not when published

ShooterJ07

New member
Joined
Jul 5, 2007
Messages
4
Programming Experience
1-3
This may be a simple issue...

Long story short, I have a .aspx page. It runs fine when I click Debug in Visual Studio.

However, when I publish the site, and navigate to it from a browser, I get .NET error that says "The Resource Cannot Be Found".

I have taken everything out of my page except one line, thus narrowing down the problem.

The line is:

VB.NET:
<%@ Page language="VB" AutoEventWireup="false"  Inherits="ExampleProj.Test.UI.TestPageBase"%>

Below this, I have nothing except html & body tags with a single line of text, so I KNOW the error is spawning from this inherits= statement.

In my project, I have a Reference to ExampleProj.Test, which is placed in my Bin folder.

Does anyone have any idea why in the world this page will not run when it is published, but it runs just fine when debugging?

Is there something I should be including in my global.asax.vb file or my web.config file perhaps?

note: i replaced the actual names with example & test just for the sake of this post.

Thanks guys...
 
It may be because you were running it on the localhost(your computer).
Go to C:\Inetpub\wwwroot\Your_Project_Folder find the .sln file, right click on it, choose to 'open with' notepad. On the second line, second set of text you should have "http://localhost:/stuff".

Now, go to where you published your files, find that .sln, open with notepad, if the line still reads "http://localhost:/stuff" then you need to change it to
"http://Path_Of_File/stuff".

Hope that helps,
Michael
 
Thanks for the help, but it doesn't seem to do anything for me...

For what it's worth...
1. I'm on Vista Ultimate
2. I dont have any files in a inetpub/wwwroot/ subdirectory
3. My development files are in c:\DEV
4. My publish files are in c:\LIVE
5. IIS is set with the site's physical path pointing to c:\LIVE

If I open the c:\dev\____.sln file with notepad, I do not see any line with http://....., so I really have no clue what you're referring to.

Also, in my published directory, I do not have an .sln file at all.. just the actual files needed for the website.

:confused:
 
Back
Top