473,657 Members | 2,496 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 1379
You don't browse to the aspx.vb file. You just want to browse to a .aspx
file like default.aspx.
"Ty" <tb*****@lewist ownhospital.org wrote in message
news:c3******** *************** ***********@1g2 000prd.googlegr oups.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...@sbcglo bal.netwrote:
You don't browse to the aspx.vb file. You just want to browse to a .aspx
file like default.aspx.

"Ty" <tbar...@lewist ownhospital.org wrote in message

news:c3******** *************** ***********@1g2 000prd.googlegr oups.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*****@lewist ownhospital.org wrote in message
news:ad******** *************** ***********@r38 g2000prr.google groups.com...
On Oct 15, 7:29 am, "Andy B" <a_bo...@sbcglo bal.netwrote:
You don't browse to the aspx.vb file. You just want to browse to a .aspx
file like default.aspx.

"Ty" <tbar...@lewist ownhospital.org wrote in message

news:c3******** *************** ***********@1g2 000prd.googlegr oups.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...@sbcglo bal.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...@lewist ownhospital.org wrote in message

news:ad******** *************** ***********@r38 g2000prr.google groups.com...
On Oct 15, 7:29 am, "Andy B" <a_bo...@sbcglo bal.netwrote:


You don't browse to the aspx.vb file. You just want to browse to a .aspx
file like default.aspx.
"Ty" <tbar...@lewist ownhospital.org wrote in message
news:c3******** *************** ***********@1g2 000prd.googlegr oups.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="LdapAuthen tication.vb" masterpagefile= "~/
TestMaster.mast er" autoeventwireup ="false" inherits="Login 2,
App_Web_50e5-xmr" title="FastTrac k - Login" %>

The interesting part is this src="LdapAuthen tication.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="LdapAuthen tication.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...@lewist ownhospital.org wrote:
On Oct 15, 10:29*am, "Andy B" <a_bo...@sbcglo bal.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...@lewist ownhospital.org wrote in message
news:ad******** *************** ***********@r38 g2000prr.google groups.com....
On Oct 15, 7:29 am, "Andy B" <a_bo...@sbcglo bal.netwrote:
You don't browse to the aspx.vb file. You just want to browse to a .aspx
file like default.aspx.
"Ty" <tbar...@lewist ownhospital.org wrote in message
>news:c3******* *************** ************@1g 2000prd.googleg roups.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="LdapAuthen tication.vb" masterpagefile= "~/
TestMaster.mast er" autoeventwireup ="false" inherits="Login 2,
App_Web_50e5-xmr" title="FastTrac k - Login" %>

The interesting part is this src="LdapAuthen tication.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="LdapAuthen tication.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="ind ex.aspx.vb" Inherits="WebRo ot.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...@sbcglo bal.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="ind ex.aspx.vb" Inherits="WebRo ot.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="LdapAuthen tication.vb" MasterPageFile= "~/
TestMaster.mast er" AutoEventWireup ="false" CodeFile="Login 2.aspx.vb"
Inherits="Login 2" title="FastTrac k - Login" %>
<%@ MasterType VirtualPath="~/TestMaster.mast er" %>

Here is the compiled directive.
<%@ page language="VB" src="LdapAuthen tication.vb" masterpagefile= "~/
TestMaster.mast er" autoeventwireup ="false" inherits="Login 2,
App_Web_50e5-xmr" title="FastTrac k - Login" %>
<%@ MasterType VirtualPath="~/TestMaster.mast er" %>

This page is unique in that It has a aspx.vb page and also refrences
another vb file named LdapAuthenticat ion.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.mast er"
AutoEventWireup ="false" CodeFile="Annou nce.aspx.vb"
Inherits="Annou nce" title="FastTrac k - Announce" %>
<%@ Import Namespace="Syst em.Security.Pri ncipal" %>
<%@ MasterType VirtualPath="~/TestMaster.mast er" %>

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

Compiled

<%@ page language="VB" masterpagefile= "~/TestMaster.mast er"
autoeventwireup ="false" inherits="Annou nce, App_Web_50e5-xmr"
title="FastTrac k - Announce" %>
<%@ Import Namespace="Syst em.Security.Pri ncipal" %>
<%@ MasterType VirtualPath="~/TestMaster.mast er" %>

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.co mwrote:
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 Developersdexht tp://www.developersd ex.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

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

Similar topics

6
2005
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 picture of a couple of antique chairs. I paste a single .jpg image, and save the web page file, which gets saved as an .alb file. Then, after choosing the "build website" function, the following files are found in the folder for the website:
0
991
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 from the source (Microsoft.ReportViewer.Common being one of them). The site will eventually publish, but only two assemblies get published! None of the other pages or user controls publish even though the site builds just fine. Is there any...
0
1296
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 publishing my website with final version, so I uncheck "Allow this precompiled site to be updatable" checkbox in Web Site Publishing dialog, error occured! Whenever I request a "non-existed" ..aspx page in /Articles folder, instead of Http handler will...
2
1500
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, run it, then see XML in the browser. I'm using Windows 2000, though my friend tried it on XP and got the same results. Any suggestions? I've tried on 4 different computers with the same results - I always see just the xml :(
3
1652
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 Service and a test web site. I can publish to other servers but not the one for training. Notice that the message states that publish succeeded, but no files are copied.
12
5901
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/ folder in the same directory as the source code. However, in Visual Studio .NET 2005 when I selected 'Publish Web Site' and selected a target location to place it in, it placed the following files in it: All *.aspx files All *.html files
20
4256
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 is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black blob) ... all the pages were created in Notepad over the last
5
1868
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 I'd use the publish utility and pre-compile my site, but make it updateable. I thought I would be increasing the access time for each page. Here is what I've found. 1. If I publish a pre-compiled, updateable version of the site, it takes 50...
2
6360
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 can I add *.ashx files to the publish target?
0
8326
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8845
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8522
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
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 we have to send another system
2
1973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1736
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.