Link to home
Start Free TrialLog in
Avatar of KG1973
KG1973

asked on

How can publish web using vb developer 2005 express.

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.
Avatar of stengelj
stengelj
Flag of United States of America image

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.
Avatar of KG1973
KG1973

ASKER

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.

>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
Avatar of KG1973

ASKER

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.
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"
Avatar of KG1973

ASKER

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 ?
ASKER CERTIFIED SOLUTION
Avatar of stengelj
stengelj
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KG1973

ASKER

how do i check aspnet account has full access ?
Is there any other services other than iis need to be startup ?
Avatar of KG1973

ASKER

Thanks,
It work...... What i did is reinstalling asp.net.
Glad to hear it.  Thanks for the points.