473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Visual Studio 2005 ASP NET 2.0 Publish Website issues.

Hi

Hi someone can help me please.

I have a ASP NET 2.0 website with more than 10 web page (aspx).

When I do debug, anything working fine.
Then I publish, it is fine too, and I upload to server.

It is many error about precompiled items in my aspx.

Then I re-publish again WITHOUT CHECK the checkbox ->allow this precompiled site to be updatable.

Anything working fine now.

CHECK or UNCHECK this option, what is the concern?
Jun 4 '07 #1
27 10512
Frinavale
9,735 Expert Mod 8TB
Hi

Hi someone can help me please.

I have a ASP NET 2.0 website with more than 10 web page (aspx).

When I do debug, anything working fine.
Then I publish, it is fine too, and I upload to server.

It is many error about precompiled items in my aspx.

Then I re-publish again WITHOUT CHECK the checkbox ->allow this precompiled site to be updatable.

Anything working fine now.

CHECK or UNCHECK this option, what is the concern?
Seems like a strange problem to me. Everything should work fine without allowing the site to be updateable.

When you publish the site and allow the it to be updatable your source code is copied to the publish destination. If you uncheck this option, Visual Studio does a compile and objects that do not contain your code are copied to the destination.

Checking or un-checking this option should not make a difference to how your website works.

-Frinny
Jun 4 '07 #2
Plater
7,872 Expert 4TB
Well what bothers me is the "then i upload it to my server".
That's not how this game works.
Your website must be installed/published to the place where it's going to be running. The IIS server has to know about it and it has to know how to run the backend. The "Publish" should be doing the uploading to your server.
Jun 4 '07 #3
Frinavale
9,735 Expert Mod 8TB
Well what bothers me is the "then i upload it to my server".
The "Publish" should be doing the uploading to your server.
I've never been able to get this to work properly..I've always had to publish the website and the move it to my server manually. I've never had any problems, but then again I've always set up the web server exactly the same as my development server.

How do you get this to work??
Jun 4 '07 #4
Plater
7,872 Expert 4TB
I've never been able to get this to work properly..I've always had to publish the website and the move it to my server manually. I've never had any problems, but then again I've always set up the web server exactly the same as my development server.

How do you get this to work??
The publish option lets you pick where to publish to. I chose my IIS server (the other computer that actually hosts the website) You have to be sure to setup the FrontPage Extenions (SharePoint) in order for the deploy to work.

(as a side note, they tell you installing the frontpage extensions changes file permisions and might screw up ftp, just a warning)
Jun 4 '07 #5
Frinavale
9,735 Expert Mod 8TB
You have to be sure to setup the FrontPage Extenions (SharePoint) in order for the deploy to work.
That's probably my problem.
I'll try this out! Thanks!
Jun 4 '07 #6
maghi85
28
hi,

i too just downloaded microsoft visual studio 2005
i've just put one page on my ASP website

its got a bit of text and a few textboxes with a button
all ASP.NET controls
when i build it the website runs fine
but when i publish it to my website i keep getting this error

it looks like below


Server Error in '/' Application.
--------------------------------------------------------------------------------

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 remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, 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 "Off".


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

<configuration>
<system.web>
<customErrors mode="Off"/>
</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="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
Jun 11 '07 #7
Frinavale
9,735 Expert Mod 8TB
hi,

i too just downloaded microsoft visual studio 2005
i've just put one page on my ASP website

its got a bit of text and a few textboxes with a button
all ASP.NET controls
when i build it the website runs fine
but when i publish it to my website i keep getting this error

it looks like below

...
Hi Maghi!
Welcome to TDSN.

Your error message is really vague.
Could you possibly change your web.config file so that
Expand|Select|Wrap|Line Numbers
  1. <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
  2.  
is changed to
Expand|Select|Wrap|Line Numbers
  1. <customErrors mode="Off" defaultRedirect="mycustompage.htm"/>
  2.  
Then re-publish your website and run it.
This will let you see a more descriptive error message...post it here so that we can help you out :)

Thanks,

-Frinny
Jun 11 '07 #8
nateraaaa
663 Expert 512MB
Maghi85 it sounds like there may be a problem with your web.config file. Try adding the following to your web.config file

<identity impersonate="true" />

I usually add this line above <authentication mode="Windows" />

Save your web.config file and try running your application again.

Nathan
Jun 11 '07 #9
Plater
7,872 Expert 4TB
That is telling you there is an error in your code, however, instead of telling you all the details it is hiding them for security reasons. For developement purposes, you cna change the settings they tell you to so that you can see what the error details are.
Jun 11 '07 #10
Frinavale
9,735 Expert Mod 8TB
Maghi85 it sounds like there may be a problem with your web.config file. Try adding the following to your web.config file

<identity impersonate="true" />

I usually add this line above <authentication mode="Windows" />

Save your web.config file and try running your application again.

Nathan
Impersonation changes the web user to be a different user...there are security issues that must be taken into consideration when you use this.

I don't think this is necessary to use impersonation yet seeing as we don't even know what the error really is.

-Frinny
Jun 11 '07 #11
maghi85
28
i'm running on a Vista with an IIS 7.0
updating the web.config file and publishing it on to the ftp website gave me the same error
but then i hosted it on to an IIS server on my machine and its working
how do you transfer the website from IIS server on my machine to an ftp website?
Jun 11 '07 #12
Frinavale
9,735 Expert Mod 8TB
i'm running on a Vista with an IIS 7.0
updating the web.config file and publishing it on to the ftp website gave me the same error
but then i hosted it on to an IIS server on my machine and its working
how do you transfer the website from IIS server on my machine to an ftp website?
You can just use an ftp client like CuteFTP or WSFTP etc. Just transfer all of the files to your web server.
Jun 11 '07 #13
maghi85
28
You can just use an ftp client like CuteFTP or WSFTP etc. Just transfer all of the files to your web server.

just did that
and it gives the initial error
Jun 11 '07 #14
Plater
7,872 Expert 4TB
If you want to see your errors, in your web.config file change the lines to be
Expand|Select|Wrap|Line Numbers
  1. <customErrors mode="Off"/>
  2.  
Jun 11 '07 #15
Frinavale
9,735 Expert Mod 8TB
just did that
and it gives the initial error
How did you upload your project before?
Jun 11 '07 #16
maghi85
28
the same way but without publishing on IIS application first
Jun 11 '07 #17
maghi85
28
If you want to see your errors, in your web.config file change the lines to be
Expand|Select|Wrap|Line Numbers
  1. <customErrors mode="Off"/>
  2.  
did that but it gives me the first error
Jun 11 '07 #18
Frinavale
9,735 Expert Mod 8TB
did that but it gives me the first error
Are you in control of the webserver?
I'd suggest rebooting it if you are.
Once you change that line in your web.config your error message should change.
Jun 11 '07 #19
Frinavale
9,735 Expert Mod 8TB
the same way but without publishing on IIS application first
Wait a sec.
Make sure that you publish your website to your web server directly after making the changes to your web.config file.
If you can't publish directly, then publish it the same way you did before and move the whole thing to your web server using an ftp client.

-Frinny
Jun 11 '07 #20
maghi85
28
same error
i suppose its the hosting site...
i'll confirm with them if they actually do support ASP.NET
Jun 11 '07 #21
maghi85
28
is there a freeweb website with ASP.NET support so that i could test it on?
like yahoopages
Jun 11 '07 #22
Frinavale
9,735 Expert Mod 8TB
is there a freeweb website with ASP.NET support so that i could test it on?
like yahoopages

Are you sure they are using the same .NET Framework version as you have coded in? If you've used Visual Studio 2003 make sure the server supports .NET Framework 1.1. If you used Visual Studio 2005 make sure the server supports .NET Framework 2.
Jun 11 '07 #23
When I upload my ASP.NET 2.0 apps I usually have to go into the server and find the virtual folder containing my application and change the settings so it is registered as an ASP.NET 2.0 instead of ASP.Net 1.1

If you have both ASP 2.0 and 1.1 framework installed then you might have to specify which technology this application should use.
Jun 11 '07 #24
maghi85
28
sorry folks
i just registered with a new host and have confirmed that they do provide .net framework 2.0
now atleast i see the error
and this is it =)

Server Error in '/' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 49: ASP.NET to identify an incoming user.
Line 50: -->
Line 51: <authentication mode="None" />
Line 52: <!--
Line 53: The <customErrors> section enables configuration


Source File: E:\web\tarimsoluti\htdocs\fss\web.config Line: 51


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210


what to do what to do ??
Jun 14 '07 #25
Frinavale
9,735 Expert Mod 8TB
Try changing
Expand|Select|Wrap|Line Numbers
  1. <authentication mode="None" />
  2.  
to
Expand|Select|Wrap|Line Numbers
  1. <authentication mode="Windows" />
  2.  
in your web.config.

Hopefully that works!

-Frinny
Jun 14 '07 #26
maghi85
28
it works now
thanks all you folks
Jun 14 '07 #27
Frinavale
9,735 Expert Mod 8TB
it works now
thanks all you folks
Good Stuff!

:)

-Frinny
Jun 14 '07 #28

Sign in to post your reply or Sign up for a free account.

Similar topics

12
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/...
3
by: Nerd | last post by:
All, I am trying to deploy my .Net 2.0 web application and I am looking for the best approach. The setup and deployment project seems to copy the whole source files also. Is there a better way to...
4
by: sqlguy | last post by:
Why do we have to contact MS for a problem that has been with this compiler from at least the beta of VS 20005. I am so sick and tired of the 30 - 40 clicks it takes to dismiss VS when there is a...
2
by: Geek | last post by:
Guys, I have a question regarding publishing web site using visual studio 2005. As usual I am running in to issues using visual studio 2005. I have build a web site and when I publish to the...
6
by: Mark Sandfox | last post by:
How do i get my ASP.NET Web Application to work on my MS Server 2003 on the internet? Step by step please. I have created and built a simple calendar app that works locally, but not when i...
8
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
3
by: DBLWizard | last post by:
Howdy All, Is it possible to have Visual Studio 2005 create a project form an existing hosted website? In other words I want to be able connect via ftp to my website structure and have it pull...
5
by: cj | last post by:
I'm getting started writing WEB program in VB2005. I'm been doing windows apps to date. A friend told me to get Visual Web Developer Express Edition. But I have Visual Studio Pro 2005 and it...
10
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I usually deploy my ASP .NET application to the server by publishing, using Visual Studio 2005 publish feature. This creates the Bin folder on the server, with the compiled DLLs. I've...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.