Solved

How can publish web using vb developer 2005 express.

Posted on 2007-04-05
10
1,109 Views
Last Modified: 2011-10-03
I had created simple website using vb developer 2005 express. I can display the page using view-in browser but cannot publish to me website folder. I'd checked help page and it stated that I can publish using 'publish website' option under 'build' menu but I couldn't find it. It only dsplay build page, buid website and rebuild website. My database is oracle and i used scott schema to test the page, and it work using 'view in browser' under vb2005 express tools. The file is default.aspx which display all employee from emp table. That's all.

Can anyone tellme step-by-step how to publish the page into my local website folder (using IIS).
Thanks.
0
Comment
Question by:KG1973
  • 5
  • 5
10 Comments
 
LVL 9

Expert Comment

by:stengelj
ID: 18862086
Hello,

The "Publish Website" option is not available in the "Express" version.  With the Express version you can only use the "Copy Web Site" option under the "Website" menu.  It is basically an FTP tool that lets you copy your site to your web server.  When you do this, your application is compiled "on the fly" on the server instead of published as a precompiled application.  This is usually okay for small applications without a lot of traffic.  

It is possible to manually compile your application using the command line tools and then copy it to your web folder, but there is no "publish" or "deploy" option with the Express version.

If you wan the ability to "publish" your application, you need the full Visual Studio 2005 product.
0
 
LVL 1

Author Comment

by:KG1973
ID: 18862787
stengelj,

Thanks. Do you mean that using ftp or command line will do, i mean it does exactly same as publish ?
If that so, please tell me how, step-by-step,coz i already tried with copy website but still failed.
One more, during the compilation, what files are produced and do we need to copy them all ? Can you tell me both way, command line and ftp.

0
 
LVL 9

Expert Comment

by:stengelj
ID: 18863980
>Do you mean that using ftp or command line will do, i mean it does exactly same as publish?

The end result is the same.

>If that so, please tell me how, step-by-step,coz i already tried with copy website but still failed.

Sorry, there are just too many things I don't know about your setup.  Try reading this step-by-step guide.
"How to: Copy Web Site Files with the Copy Web Site Tool"
http://msdn2.microsoft.com/en-us/library/c95809c0(VS.80).aspx

>One more, during the compilation, what files are produced and do we need to copy them all ?

All of your site's code is compiled into dlls--even the HTML.  This means that no source code is visible in the resulting files and you can't change anything without changing your original code and recompiling the web site.  ALL of the files created by the compiler are required.

>Can you tell me both way, command line and ftp.

Here are the instructions for precompiling your web site using the command line.  Use the instructions above to copy/ftp your web site.
"How to: Precompile ASP.NET Web Sites for Deployment"
http://msdn2.microsoft.com/en-us/library/ms227976(VS.80).aspx
0
 
LVL 1

Author Comment

by:KG1973
ID: 18874532
Sorry for the delay.

I'd tried couple of time, but failed.

I used the following command:
aspnet_compiler -p d:\my_working_folder -v d:\my_published_folder

error ASPRUNTIME: '/d:\my_published_folder' is not a valid virtual path.

What switch should i use ? I want to compile all from my working folder into my published folder.
0
 
LVL 9

Expert Comment

by:stengelj
ID: 18879572
It's a good idea to put your folder path in "quotes" in case there are any spaces, but I think your problem is that you are missing the "/" in your command.  Try this:

aspnet_compiler -p "d:\my_working_folder" -v / "d:\my_published_folder"
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 1

Author Comment

by:KG1973
ID: 18880737
The compilation work, creating bin folder etc.. but when I try to test default page, i got these message

Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable.  Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

--------
THEN I CHECKED THE EVENT VIEWER AND I GOT THESE REPORT
--------------------------------------------------------------------------------

Failed to execute request because the App-Domain could not be created. Error: 0x80131902

Failed to initialize the AppDomain:/LM/W3SVC/1/ROOT

Exception: System.Configuration.ConfigurationErrorsException
Message: Exception of type 'System.Configuration.ConfigurationErrorsException' was thrown.
StackTrace:    at System.Web.Configuration.ErrorRuntimeConfig.ErrorConfigRecord.System.Configuration.Internal.IInternalConfigRecord.GetLkgSection(String configKey)
   at System.Web.Configuration.RuntimeConfigLKG.GetSectionObject(String sectionName)
   at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
   at System.Web.Configuration.RuntimeConfig.get_HostingEnvironment()
   at System.Web.Hosting.HostingEnvironment.StartMonitoringForIdleTimeout()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

-----------------------
I RUN SUCESSFULLY FROM VB
SO WHAT IS THE PROBLEM ? DO I MISS ANYTHING ?
0
 
LVL 9

Accepted Solution

by:
stengelj earned 500 total points
ID: 18882660
I'm not sure...

Make sure the the ASPNET account as full access to the web folder.  You can also try this:

- Open a command prompt
- Stop IIS: iisreset /stop
- Change to the .NET Framework 2.0 root directory: C:\winnt\Microsoft.Net\Framework\v2.0.50727\
- Reinstall ASP.NET 2.0 by using the following command: aspnet_regiis -i command.
- Start IIS again after it has been run: iisreset /start
- Try to access your web page again.

It looks like an IIS configuration problem to me.
0
 
LVL 1

Author Comment

by:KG1973
ID: 18894659
how do i check aspnet account has full access ?
Is there any other services other than iis need to be startup ?
0
 
LVL 1

Author Comment

by:KG1973
ID: 18910598
Thanks,
It work...... What i did is reinstalling asp.net.
0
 
LVL 9

Expert Comment

by:stengelj
ID: 18911179
Glad to hear it.  Thanks for the points.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now