Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 3rd, 2010, 11:05 AM
Registered User
 
Join Date: Sep 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 18: Deploying the Web Site

Hello Good Day to you all.

I had a massive problem in deploying the website. It took me more than 2 days - but I now give it up.

Actually the same complete web application package has been running on a PC, say PC1.
Now I'm multiplying the same identical package on another PC with the identical specs (simply another machine, say PC2).
Somehow it doesn't work there.
The both machine PC1 and PC2 are not the PC where I installed my VWD (using Visual Studio 2008 Professional Edition Version 9.0.21022.8 RTM).
Thus I am not using the built-in server installed by VS2008 but the IIS as my web server.

For infos, the PC1 and PC2 have this spec:
Windows XP Professional Version 5.1.2600 SP3 Build 2600
Internet Explorer Version 7.0.5730.13
No virus scanner (new machine)
No firewall


I am using the local sql server for the user administration (ASPNETDB.mdf in the App-Data folder), thus exactly like the article in the book.
Not even the call by using
http://localhost
worked on the PC2. On the PC1 everything's fine.

I deploy the web application by using the function "Publish Web site" in the VS and copy all the results to the target PC (PC1 and PC2).
And I followed the deployment instruction in the book and even retried several times. But the result is always the same:

The browser will just wait and wait and wait... and the progress bar shows about 50% and stops there eternally.
There is no error or any adequate messages. It simply stops.
I also tried
http://localhost/Login.aspx
http://localhost/Default.aspx
and both asp pages are available, but nothing works. The browser will simply stop.

Could you please help me?
Could maybe somebody specify what can be done else in the term of Recreating the Database (book page 660 f.f)?

Thanks very much in advance
Andri

Last edited by ASPNETBeginner; September 3rd, 2010 at 11:23 AM..
Reply With Quote
  #2 (permalink)  
Old September 6th, 2010, 04:49 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Is it a database issue? Or an IIS setup issue?

Quote:
Not even the call by using
http://localhost
worked on the PC2.
seems to imply a problem with IIS. Did you set up / install IIS correctly? And does that machine have a valid IP v address?

And can you define this:

Quote:
http://localhost/Default.aspx
and both asp pages are available, but nothing works.
What do you mean with available? Do you see the page appear in the browser?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old September 6th, 2010, 05:13 AM
Registered User
 
Join Date: Sep 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Is it a database issue? Or an IIS setup issue?

seems to imply a problem with IIS. Did you set up / install IIS correctly? And does that machine have a valid IP v address?


And can you define this:

What do you mean with available? Do you see the page appear in the browser?

Imar

Dear Imar.

I think the IIS must have been installed correctly because it showed the standard webpage (that is the standard web page installed when the IIS is installed for the very first time).
The PC2 has also a valid IP address.

As for the second question, I meant the Default.aspx and Login.aspx files are there in the PC2, thus physically available.
But somehow despite the direct call (e.g. http://localhost/Default.aspx) it doesn't show. The browser waits and waits ... progress bar stops at about 35%.

My suspect is there is a connection trouble with the ASPNETDB.mdf because I ask firstly if someone has an access right (by login).
And this login page (Login.aspx) never appears.

Imar, I suspect that my procedure in Recreating the Database (book page 660 f.f) was wrong.
I will try it again.

However, could you please give me some ideas what could still be wrong?
I tried already to even give the ASP.NET and IIS_MachineName accounts each a full access right but still doesn't work, not even thru local access (http://localhost)

O yes, my connection string for the login is as follows:

<connectionStrings>
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspn etdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>

It stands in the machine.config.


In the web config I'm using some other connection to a MDB database for some other procedures but not related with login.
<connectionStrings>
<add name="connstrDBMain" connectionString="Provider=Microsoft.Jet.OLEDB.4.0 ;Data Source=C:\01_Projects_CPP\RESULTSPOOL\BRCSVC_DDSSe rver_DB.mdb;Persist Security Info=True;Jet OLEDB:Database Password=BRCSVC" providerName="System.Data.OleDb"/>
<add name="connstrDBRefData" connectionString="Provider=Microsoft.Jet.OLEDB.4.0 ;Data Source=C:\01_Projects_CPP\RESULTSPOOL\BRCSVC_DDS_R efData.mdb;Persist Security Info=True;Jet OLEDB:Database Password=BRCSVC" providerName="System.Data.OleDb"/>
</connectionStrings>

Last edited by ASPNETBeginner; September 6th, 2010 at 05:22 AM..
Reply With Quote
  #4 (permalink)  
Old September 6th, 2010, 05:29 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Is SQL Server running correctly on that machine? Can you log in using SQL Server Management Studio?

Also, what does this mean:

Quote:
because I ask firstly if someone has an access right (by login).
Where do you get this question? Do you get a dialog in the browser asking you for a user name and password? If so, there may be something wrong with the configuration.

Just to try it out, try granting permissions to the Everyone group or the Network Service account on the web site's root folder. Does it work then?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #5 (permalink)  
Old September 6th, 2010, 05:38 AM
Registered User
 
Join Date: Sep 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Is SQL Server running correctly on that machine? Can you log in using SQL Server Management Studio?
I will try it again.

Quote:
Originally Posted by Imar View Post
Also, what does this mean:

Where do you get this question? Do you get a dialog in the browser asking you for a user name and password? If so, there may be something wrong with the configuration.

Just to try it out, try granting permissions to the Everyone group or the Network Service account on the web site's root folder. Does it work then?

Imar

No, I create one aspx page. Exactly as instructed in the book page 520 ff ("Introducing the Login Controls").
Reply With Quote
  #6 (permalink)  
Old September 6th, 2010, 05:50 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
No, I create one aspx page. Exactly as instructed in the book page 520 ff ("Introducing the Login Controls").
I don't understand this as an answer to my question. Can you please elaborate? I am trying to help you but I need much more information.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #7 (permalink)  
Old September 6th, 2010, 06:00 AM
Registered User
 
Join Date: Sep 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
I don't understand this as an answer to my question. Can you please elaborate? I am trying to help you but I need much more information.

Imar
Sorry Imar. I didn't mean to give you a confusing answer. But it was really what I did. I programmed the web application so, that when someone tries to call the website, he must login firstly. And the login page is called Login.aspx.
It is not a dialog but I copied the concept/solution from your book. I used the standard wizard ("CreateUserWizard").

Quote:
Originally Posted by Imar View Post
Is SQL Server running correctly on that machine? Can you log in using SQL Server Management Studio?
Yes, I tried just now. I can log in using the SQL Server Management Studio. In the object explorer of the management studio I can see in the root the notation:
IPCSVC21ANHA01\SQLExpress (SQL Server 9.0.3042 - IPCSVC21ANHA01\Administrator)

Quote:
Originally Posted by Imar View Post
Just to try it out, try granting permissions to the Everyone group or the Network Service account on the web site's root folder. Does it work then?
Imar
I tried just now and did granting permissions to the Everyone.
But now I got a Server Error in '/' Application saying:


Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.

Details: To enable the details of this specific error message to be viewable on the local server machine, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="On" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>




I checked in the web.config and it stands there
<customErrors mode="On"/>

I'm actually expecting that a further error information will rise there.
Reply With Quote
  #8 (permalink)  
Old September 6th, 2010, 06:08 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
I'm actually expecting that a further error information will rise there
In that case, why don't you try it out and post the results here? ;-)

Quote:
Sorry Imar. I didn't mean to give you a confusing answer.
I know. But I don't see what you see, so you need to be as detailed as possible. I had no idea whether pages did load correctly in the browser or not. Apparently, they do, but you hit a problem when you try to access the database....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploying Web Site majeedkhan BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 February 25th, 2010 05:06 AM
Chapter 18: Viewing Site at http://localhost epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 November 14th, 2009 10:54 AM
Ch 18 Deploying Your Web Site jtruffa BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 August 24th, 2009 07:29 AM
Chapter 18: Unable to see the site THEME locochinoloco BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 September 18th, 2008 02:35 AM



All times are GMT -4. The time now is 03:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.