473,503 Members | 3,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it me or is there some trick to publishing a web site?

Ty
Hello all,
I have built a site in VS 2008. using IIS7. Site works fine. So I
publish to a local folder. I then go into IIS7 and add a virtural
directory pointing to the compiled folder and make it an application.
When I try to browse the site from IIS7 I get an error that a file was
not found.

This file is the aspx.vb page of the page I am loading which in the
published site has been renamed to App_Web_50e5-xmr.dll and placed
into the bin folder.

Now this is the first site I've ever created and I admit that I do
know much but doesn't it seem logical that the site would know where
it placed its own files????

Help.....Please

Ty
Oct 15 '08 #1
10 1367
You don't browse to the aspx.vb file. You just want to browse to a .aspx
file like default.aspx.
"Ty" <tb*****@lewistownhospital.orgwrote in message
news:c3**********************************@1g2000pr d.googlegroups.com...
Hello all,
I have built a site in VS 2008. using IIS7. Site works fine. So I
publish to a local folder. I then go into IIS7 and add a virtural
directory pointing to the compiled folder and make it an application.
When I try to browse the site from IIS7 I get an error that a file was
not found.

This file is the aspx.vb page of the page I am loading which in the
published site has been renamed to App_Web_50e5-xmr.dll and placed
into the bin folder.

Now this is the first site I've ever created and I admit that I do
know much but doesn't it seem logical that the site would know where
it placed its own files????

Help.....Please

Ty

Oct 15 '08 #2
Ty
On Oct 15, 7:29*am, "Andy B" <a_bo...@sbcglobal.netwrote:
You don't browse to the aspx.vb file. You just want to browse to a .aspx
file like default.aspx.

"Ty" <tbar...@lewistownhospital.orgwrote in message

news:c3**********************************@1g2000pr d.googlegroups.com...
Hello all,
* I have built a site in VS 2008. using IIS7. Site works fine. So I
publish to a local folder. I then go into IIS7 and add a virtural
directory pointing to the compiled folder and make it an application.
When I try to browse the site from IIS7 I get an error that a file was
not found.
This file is the aspx.vb page of the page I am loading which in the
published site has been renamed to App_Web_50e5-xmr.dll and placed
into the bin folder.
Now this is the first site I've ever created and I admit that I do
know much but doesn't it seem logical that the site would know where
it placed its own files????
Help.....Please
Ty- Hide quoted text -

- Show quoted text -
Hello Andy,
I'm not browsing the aspx.vb file I'm loading the login page and it
gives the error that the login.aspx.vb page (which has been renamed
and moved to the bin folder) is missing.

Ty
Oct 15 '08 #3
That is an interesting error. if you load the aspx page into the designer
and view the source, what does the top line say?

It should be an @page directive of some kind.
"Ty" <tb*****@lewistownhospital.orgwrote in message
news:ad**********************************@r38g2000 prr.googlegroups.com...
On Oct 15, 7:29 am, "Andy B" <a_bo...@sbcglobal.netwrote:
You don't browse to the aspx.vb file. You just want to browse to a .aspx
file like default.aspx.

"Ty" <tbar...@lewistownhospital.orgwrote in message

news:c3**********************************@1g2000pr d.googlegroups.com...
Hello all,
I have built a site in VS 2008. using IIS7. Site works fine. So I
publish to a local folder. I then go into IIS7 and add a virtural
directory pointing to the compiled folder and make it an application.
When I try to browse the site from IIS7 I get an error that a file was
not found.
This file is the aspx.vb page of the page I am loading which in the
published site has been renamed to App_Web_50e5-xmr.dll and placed
into the bin folder.
Now this is the first site I've ever created and I admit that I do
know much but doesn't it seem logical that the site would know where
it placed its own files????
Help.....Please
Ty- Hide quoted text -

- Show quoted text -
Hello Andy,
I'm not browsing the aspx.vb file I'm loading the login page and it
gives the error that the login.aspx.vb page (which has been renamed
and moved to the bin folder) is missing.

Ty
Oct 15 '08 #4
Ty
On Oct 15, 10:29*am, "Andy B" <a_bo...@sbcglobal.netwrote:
That is an interesting error. if you load the aspx page into the designer
and view the source, what does the top line say?

It should be an @page directive of some kind.

"Ty" <tbar...@lewistownhospital.orgwrote in message

news:ad**********************************@r38g2000 prr.googlegroups.com...
On Oct 15, 7:29 am, "Andy B" <a_bo...@sbcglobal.netwrote:


You don't browse to the aspx.vb file. You just want to browse to a .aspx
file like default.aspx.
"Ty" <tbar...@lewistownhospital.orgwrote in message
news:c3**********************************@1g2000pr d.googlegroups.com...
Hello all,
I have built a site in VS 2008. using IIS7. Site works fine. So I
publish to a local folder. I then go into IIS7 and add a virtural
directory pointing to the compiled folder and make it an application.
When I try to browse the site from IIS7 I get an error that a file was
not found.
This file is the aspx.vb page of the page I am loading which in the
published site has been renamed to App_Web_50e5-xmr.dll and placed
into the bin folder.
Now this is the first site I've ever created and I admit that I do
know much but doesn't it seem logical that the site would know where
it placed its own files????
Help.....Please
Ty- Hide quoted text -
- Show quoted text -

Hello Andy,
* *I'm not browsing the aspx.vb file I'm loading the login page and it
gives the error that the login.aspx.vb page (which has been renamed
and moved to the bin folder) is missing.

Ty- Hide quoted text -

- Show quoted text -
Andy,
I'm glad you asked that. Here is the line
<%@ page language="VB" src="LdapAuthentication.vb" masterpagefile="~/
TestMaster.master" autoeventwireup="false" inherits="Login2,
App_Web_50e5-xmr" title="FastTrack - Login" %>

The interesting part is this src="LdapAuthentication.vb". In my site
before it is compiled this is the file that handles logging into
Active Directory and is located in the root folder and does not have
an associated aspx page. Now in the compiled site the the file is
moved into the bin folder but has not been renamed but the type is
listed as compiled file. So this line src="LdapAuthentication.vb" is
underlined and the popup says file missing.

I assume this is because the file is just a vb file and not a aspx.vb
file. Wonder what I have to do. I'm going to try to move it to the
root folder in the compiled folder.

Ty
Oct 15 '08 #5
Ty
On Oct 15, 1:01*pm, Ty <tbar...@lewistownhospital.orgwrote:
On Oct 15, 10:29*am, "Andy B" <a_bo...@sbcglobal.netwrote:


That is an interesting error. if you load the aspx page into the designer
and view the source, what does the top line say?
It should be an @page directive of some kind.
"Ty" <tbar...@lewistownhospital.orgwrote in message
news:ad**********************************@r38g2000 prr.googlegroups.com....
On Oct 15, 7:29 am, "Andy B" <a_bo...@sbcglobal.netwrote:
You don't browse to the aspx.vb file. You just want to browse to a .aspx
file like default.aspx.
"Ty" <tbar...@lewistownhospital.orgwrote in message
>news:c3**********************************@1g2000p rd.googlegroups.com....
Hello all,
I have built a site in VS 2008. using IIS7. Site works fine. So I
publish to a local folder. I then go into IIS7 and add a virtural
directory pointing to the compiled folder and make it an application.
When I try to browse the site from IIS7 I get an error that a file was
not found.
This file is the aspx.vb page of the page I am loading which in the
published site has been renamed to App_Web_50e5-xmr.dll and placed
into the bin folder.
Now this is the first site I've ever created and I admit that I do
know much but doesn't it seem logical that the site would know where
it placed its own files????
Help.....Please
Ty- Hide quoted text -
- Show quoted text -
Hello Andy,
* *I'm not browsing the aspx.vb file I'm loading the login page andit
gives the error that the login.aspx.vb page (which has been renamed
and moved to the bin folder) is missing.
Ty- Hide quoted text -
- Show quoted text -

Andy,
* *I'm glad you asked that. Here is the line
<%@ page language="VB" src="LdapAuthentication.vb" masterpagefile="~/
TestMaster.master" autoeventwireup="false" inherits="Login2,
App_Web_50e5-xmr" title="FastTrack - Login" %>

The interesting part is this src="LdapAuthentication.vb". In my site
before it is compiled this is the file that handles logging into
Active Directory and is located in the root folder and does not have
an associated aspx page. Now in the compiled site the the file is
moved into the bin folder but has not been renamed but the type is
listed as compiled file. So this line src="LdapAuthentication.vb" is
underlined and the popup says file missing.

I assume this is because the file is just a vb file and not a aspx.vb
file. Wonder what I have to do. I'm going to try to move it to the
root folder in the compiled folder.

Ty- Hide quoted text -

- Show quoted text -
That did not work. Any thoughts.

Ty
Oct 15 '08 #6
Is this a website project or a web application project? I have a web
application project and this is what one of my @page directives looks like:

<%@ Page Title="Eternity Records - Home" Language="vb"
AutoEventWireup="false" MasterPageFile="~/Site.Master"
CodeBehind="index.aspx.vb" Inherits="WebRoot.index" %>

Notice the codebehind and the inherits attributes that were missing from
your directive. The one you gave was a little wierd looking. What version of
visual studio are you using? If I remember the website version of codebehind
would be codefile.


Oct 15 '08 #7
Ty
On Oct 15, 1:59*pm, "Andy B" <a_bo...@sbcglobal.netwrote:
Is this a website project or a web application project? I have a web
application project and this is what one of my @page directives looks like:

<%@ Page Title="Eternity Records - Home" Language="vb"
AutoEventWireup="false" MasterPageFile="~/Site.Master"
CodeBehind="index.aspx.vb" Inherits="WebRoot.index" %>

Notice the codebehind and the inherits attributes that were missing from
your directive. The one you gave was a little wierd looking. What versionof
visual studio are you using? If I remember the website version of codebehind
would be codefile.
A web site.
Here is the uncomplied directive
<%@ Page Language="VB" Src="LdapAuthentication.vb" MasterPageFile="~/
TestMaster.master" AutoEventWireup="false" CodeFile="Login2.aspx.vb"
Inherits="Login2" title="FastTrack - Login" %>
<%@ MasterType VirtualPath="~/TestMaster.master" %>

Here is the compiled directive.
<%@ page language="VB" src="LdapAuthentication.vb" masterpagefile="~/
TestMaster.master" autoeventwireup="false" inherits="Login2,
App_Web_50e5-xmr" title="FastTrack - Login" %>
<%@ MasterType VirtualPath="~/TestMaster.master" %>

This page is unique in that It has a aspx.vb page and also refrences
another vb file named LdapAuthentication.vb that is required for
Authentication with my Active Directory. I'm using form
authentication.

Now here is a regular page in my project.

Uncompiled
<%@ Page Language="VB" MasterPageFile="~/TestMaster.master"
AutoEventWireup="false" CodeFile="Announce.aspx.vb"
Inherits="Announce" title="FastTrack - Announce" %>
<%@ Import Namespace="System.Security.Principal" %>
<%@ MasterType VirtualPath="~/TestMaster.master" %>

As you can see there is no "src" part in this directive.

Compiled

<%@ page language="VB" masterpagefile="~/TestMaster.master"
autoeventwireup="false" inherits="Announce, App_Web_50e5-xmr"
title="FastTrack - Announce" %>
<%@ Import Namespace="System.Security.Principal" %>
<%@ MasterType VirtualPath="~/TestMaster.master" %>

Is it normal for the compiled page to remove the "CodeFile" part and
change the "Inherits" tag?

Ty
Oct 15 '08 #8
Greetings,

If your website is a web application - try this:

Create a virtual directory in the Default Website directory of IIS and
copy all of your application files to here, then in the Application Pool
Folder create a new application pool and name it anything you want.
Then back to your virtual directory you just created in the Default
Website at the bottom of the properties dialog is a textbox named
application pool. Enter the name of the appication pool you just
created in the Application Pool folder. then call your site like this:

http://yourservername/yourvirtualdir/youwebapp.aspx

If this still doesn't work then do this:

go back to IIS to the Application Pool folder to the Application Pool
you just created and right click on it. Then click on "recycle". That
should get it.

hth

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Oct 15 '08 #9
Ty
On Oct 15, 3:12*pm, Rich P <rpng...@aol.comwrote:
Greetings,

If your website is a web application - try this:

Create a virtual directory in the Default Website directory of IIS and
copy all of your application files to here, then in the Application Pool
Folder create a new application pool and name it anything you want.
Then back to your virtual directory you just created in the Default
Website at the bottom of the properties dialog is a textbox named
application pool. *Enter the name of the appication pool you just
created in the Application Pool folder. then call your site like this:

http://yourservername/yourvirtualdir/youwebapp.aspx

If this still doesn't work then do this:

go back to IIS to the Application Pool folder to the Application Pool
you just created and right click on it. *Then click on "recycle". *That
should get it.

hth

Rich

*** Sent via Developersdexhttp://www.developersdex.com***
Rich,

In VS it's a website but in IIS it is configured as a application. I
have done what you suggested on my test server only I called like this
Http://localserver/FastTrack/login.aspx

I'll have to try calling it your way when I get back to work.

I also created the compiled site as an application on my development
machine just to make sure there was not a IIS problem because my test
server is IIS6 and my dev machine is IIS7 although I left it in the
default pool and instead of opening a browser windw and calling the
app I choose Browse from the menu in IIS7.

I'm getting the same error on both machnes. I'm starting to think that
the issue is that extra VB file for the login page? Maybe I need to
place all the code for that directly into the login.aspx.vb page and
see if that makes a diffrence.

Ty
Oct 15 '08 #10
Try putting all of the code related to the page itself inside the codefile
and see what happens. I don't even know if there is such a thing as the src
attribute for the @page directive.
"Ty" <tb*****@lewistownhospital.orgwrote in message
news:25**********************************@u57g2000 hsf.googlegroups.com...
On Oct 15, 3:12 pm, Rich P <rpng...@aol.comwrote:
Greetings,

If your website is a web application - try this:

Create a virtual directory in the Default Website directory of IIS and
copy all of your application files to here, then in the Application Pool
Folder create a new application pool and name it anything you want.
Then back to your virtual directory you just created in the Default
Website at the bottom of the properties dialog is a textbox named
application pool. Enter the name of the appication pool you just
created in the Application Pool folder. then call your site like this:

http://yourservername/yourvirtualdir/youwebapp.aspx

If this still doesn't work then do this:

go back to IIS to the Application Pool folder to the Application Pool
you just created and right click on it. Then click on "recycle". That
should get it.

hth

Rich

*** Sent via Developersdexhttp://www.developersdex.com***
Rich,

In VS it's a website but in IIS it is configured as a application. I
have done what you suggested on my test server only I called like this
Http://localserver/FastTrack/login.aspx

I'll have to try calling it your way when I get back to work.

I also created the compiled site as an application on my development
machine just to make sure there was not a IIS problem because my test
server is IIS6 and my dev machine is IIS7 although I left it in the
default pool and instead of opening a browser windw and calling the
app I choose Browse from the menu in IIS7.

I'm getting the same error on both machnes. I'm starting to think that
the issue is that extra VB file for the login page? Maybe I need to
place all the code for that directly into the login.aspx.vb page and
see if that makes a diffrence.

Ty
Oct 16 '08 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2000
by: Doc | last post by:
I'm trying to get to the bottom of a problem I've been having with publishing a freebie website. I'm using a program called WebEasy. Using a very simple site upload as an example, in this case a...
0
980
by: John Bailey | last post by:
Okay, I am publishing a site done in ASP .Net 2.0. The site runs fine locally from source, I am publishing it mainly because two of the report assemblies do not come up on Crystal Tech when running...
0
1285
by: tiendq | last post by:
Hi, My web application using a Http handler to handle request for *.aspx page in a specific folder e.g. /Articles , which generate requested page dynamically. It worked well. But when I...
2
1488
by: Dustin Davis | last post by:
This is my first attempt at using ClickOnce. It seems it is publishing OK, but I can't run the install. If I use IE, I just see XML in the web browser. If I use Firefox, I download a setup file,...
3
1644
by: EqDev | last post by:
Hello I have set up a new windows server 2003 standard edition for training (on new software we have developed) and am having problems publishing webs to it from VS 2005. I have a C# Web...
12
5873
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/...
20
4222
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
5
1858
by: rmgalante | last post by:
I've been using the VS2005 Publish utility on one of my projects for about six months. I have a large site with hundreds of files, thousands if you include the code behind files. So I thought...
2
6345
by: Max2006 | last post by:
Hi, After I right-click on my web application project file and choose "Publish ." and do the publishing, the result publishable files does not include the *.ashx files. Is it by design? How...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7291
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7012
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.