?
Solved

How can publish web using vb developer 2005 express.

Posted on 2007-04-05
10
Medium Priority
?
1,147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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
 
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 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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.

770 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