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.
Can anyone tellme step-by-step how to publish the page into my local website folder (using IIS).
Thanks.
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.
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
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
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.
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"
aspnet_compiler -p "d:\my_working_folder" -v / "d:\my_published_folder"
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.Confi gurationEr rorsExcept ion
Message: Exception of type 'System.Configuration.Conf igurationE rrorsExcep tion' was thrown.
StackTrace: at System.Web.Configuration.E rrorRuntim eConfig.Er rorConfigR ecord.Syst em.Configu ration.Int ernal.IInt ernalConfi gRecord.Ge tLkgSectio n(String configKey)
at System.Web.Configuration.R untimeConf igLKG.GetS ectionObje ct(String sectionName)
at System.Web.Configuration.R untimeConf ig.GetSect ion(String sectionName, Type type, ResultsIndex index)
at System.Web.Configuration.R untimeConf ig.get_Hos tingEnviro nment()
at System.Web.Hosting.Hosting Environmen t.StartMon itoringFor IdleTimeou t()
at System.Web.Hosting.Hosting Environmen t.Initiali ze(Applica tionManage r appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParamete rs hostingParameters)
at System.Web.Hosting.Hosting Environmen t.Initiali ze(Applica tionManage r appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParamete rs hostingParameters)
at System.Web.Hosting.Applica tionManage r.CreateAp pDomainWit hHostingEn vironment( String appId, IApplicationHost appHost, HostingEnvironmentParamete rs hostingParameters)
at System.Web.Hosting.Applica tionManage r.CreateAp pDomainWit hHostingEn vironmentA ndReportEr rors(Strin g appId, IApplicationHost appHost, HostingEnvironmentParamete rs hostingParameters)
-----------------------
I RUN SUCESSFULLY FROM VB
SO WHAT IS THE PROBLEM ? DO I MISS ANYTHING ?
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.Confi
Message: Exception of type 'System.Configuration.Conf
StackTrace: at System.Web.Configuration.E
at System.Web.Configuration.R
at System.Web.Configuration.R
at System.Web.Configuration.R
at System.Web.Hosting.Hosting
at System.Web.Hosting.Hosting
at System.Web.Hosting.Hosting
at System.Web.Hosting.Applica
at System.Web.Hosting.Applica
-----------------------
I RUN SUCESSFULLY FROM VB
SO WHAT IS THE PROBLEM ? DO I MISS ANYTHING ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
how do i check aspnet account has full access ?
Is there any other services other than iis need to be startup ?
Is there any other services other than iis need to be startup ?
ASKER
Thanks,
It work...... What i did is reinstalling asp.net.
It work...... What i did is reinstalling asp.net.
Glad to hear it. Thanks for the points.
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.