473,800 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Starter Kit Application deployment

I have ASP.NET 2 hosting. I created my first simple WEB application from
Personal WEB Starter Kit template.
Everything works fine on my local machine.
I uploaded all files to the hosting server. Pages which do not use database
work, pages which communicate with the database do not work.
I'm just starting to learn programming and have not enough knowledge to
realize what's wrong. I just suspect that I have to change ConnectionStrin g
in WEB.config file. Now I have there:
<connectionStri ngs>

<add name="Personal" connectionStrin g="Data Source=.\SQLExp ress;Integrated
Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |Personal.mdf"
providerName="S ystem.Data.SqlC lient"/>

<remove name="LocalSqlS erver"/>

<add name="LocalSqlS erver" connectionStrin g="Data
Source=.\SQLExp ress;Integrated Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |aspnetdb.mdf"/>

</connectionStrin gs>

First of all I do not know what should I put there and I even doubt that
SQLExpress may be used for a real web site.
Any help please

Thank you

Esha
Sep 16 '06 #1
4 1417
You need to work with your ISP's support division and find out how they have
SQL set up for your site. You will then have to move your database to that
server (unless they are using SQLExpress, then you might have a few other
hoops to jump through). Once you have the data in a database and have the
connection string aimed to that database, your app will work.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"esha" <es**@newsgroup s.comwrote in message
news:On******** ******@TK2MSFTN GP02.phx.gbl...
>I have ASP.NET 2 hosting. I created my first simple WEB application from
Personal WEB Starter Kit template.
Everything works fine on my local machine.
I uploaded all files to the hosting server. Pages which do not use
database work, pages which communicate with the database do not work.
I'm just starting to learn programming and have not enough knowledge to
realize what's wrong. I just suspect that I have to change
ConnectionStrin g in WEB.config file. Now I have there:
<connectionStri ngs>

<add name="Personal" connectionStrin g="Data Source=.\SQLExp ress;Integrated
Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |Personal.mdf"
providerName="S ystem.Data.SqlC lient"/>

<remove name="LocalSqlS erver"/>

<add name="LocalSqlS erver" connectionStrin g="Data
Source=.\SQLExp ress;Integrated Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |aspnetdb.mdf"/>

</connectionStrin gs>

First of all I do not know what should I put there and I even doubt that
SQLExpress may be used for a real web site.
Any help please

Thank you

Esha

Sep 16 '06 #2
Thank you Cowboy
My ISP offers SQL Server 2005. I don't know about SQLExpress. Does
SQLExpress require any special action? I was thinking that it works similar
to MS Access (just copy db to the appropriate folder and that's it).
If I will move the data from SQLExpress to the SQL Server (I don't know how
to do that yet), should I then change Connection string in web.config file
only, or some additional actions are required?

Esha
"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamMwrote in
message news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
You need to work with your ISP's support division and find out how they
have SQL set up for your site. You will then have to move your database to
that server (unless they are using SQLExpress, then you might have a few
other hoops to jump through). Once you have the data in a database and
have the connection string aimed to that database, your app will work.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"esha" <es**@newsgroup s.comwrote in message
news:On******** ******@TK2MSFTN GP02.phx.gbl...
>>I have ASP.NET 2 hosting. I created my first simple WEB application from
Personal WEB Starter Kit template.
Everything works fine on my local machine.
I uploaded all files to the hosting server. Pages which do not use
database work, pages which communicate with the database do not work.
I'm just starting to learn programming and have not enough knowledge to
realize what's wrong. I just suspect that I have to change
ConnectionStri ng in WEB.config file. Now I have there:
<connectionStr ings>

<add name="Personal" connectionStrin g="Data
Source=.\SQLEx press;Integrate d Security=True;U ser
Instance=True; AttachDBFilenam e=|DataDirector y|Personal.mdf"
providerName=" System.Data.Sql Client"/>

<remove name="LocalSqlS erver"/>

<add name="LocalSqlS erver" connectionStrin g="Data
Source=.\SQLEx press;Integrate d Security=True;U ser
Instance=True; AttachDBFilenam e=|DataDirector y|aspnetdb.mdf"/>

</connectionStrin gs>

First of all I do not know what should I put there and I even doubt that
SQLExpress may be used for a real web site.
Any help please

Thank you

Esha


Sep 16 '06 #3
It is almost as easy as Access, but not quite.

Ask your ISP if they support SQL Server 2005 file based databases. If so,
they should be able to help you link the file up to their server. They can
then tell you how to use it.

If they do not, you will have to migrate the data. Since you will only have
limited tools on the local SQL Express install, this might be a pain. The
easiest way is to recreate the seed data as scripts. The SQL Express tools
are minimal help here. You can download a trial of redgate's product and
create the data insert scripts. You then connect to the ISP SQL box and run
the sql script.

The other option is move to Access, but depending on where they have the
files, you may have to set the connection string based on file location,
using MapPath. This is fairly simple. Reason: For security, some ISPs move
the root location, which will force you to figure out the path to the .mdb
file using Server.MapPath.

Don't worry, it does get easier once you do it once.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"esha" <es**@newsgroup s.comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Thank you Cowboy
My ISP offers SQL Server 2005. I don't know about SQLExpress. Does
SQLExpress require any special action? I was thinking that it works
similar to MS Access (just copy db to the appropriate folder and that's
it).
If I will move the data from SQLExpress to the SQL Server (I don't know
how to do that yet), should I then change Connection string in web.config
file only, or some additional actions are required?

Esha
"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamMwrote in
message news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
>You need to work with your ISP's support division and find out how they
have SQL set up for your site. You will then have to move your database
to that server (unless they are using SQLExpress, then you might have a
few other hoops to jump through). Once you have the data in a database
and have the connection string aimed to that database, your app will
work.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************** *************** *************** *****
Think outside of the box!
************** *************** *************** *****
"esha" <es**@newsgroup s.comwrote in message
news:On******* *******@TK2MSFT NGP02.phx.gbl.. .
>>>I have ASP.NET 2 hosting. I created my first simple WEB application from
Personal WEB Starter Kit template.
Everything works fine on my local machine.
I uploaded all files to the hosting server. Pages which do not use
database work, pages which communicate with the database do not work.
I'm just starting to learn programming and have not enough knowledge to
realize what's wrong. I just suspect that I have to change
ConnectionStr ing in WEB.config file. Now I have there:
<connectionSt rings>

<add name="Personal" connectionStrin g="Data
Source=.\SQLE xpress;Integrat ed Security=True;U ser
Instance=True ;AttachDBFilena me=|DataDirecto ry|Personal.mdf "
providerName= "System.Data.Sq lClient"/>

<remove name="LocalSqlS erver"/>

<add name="LocalSqlS erver" connectionStrin g="Data
Source=.\SQLE xpress;Integrat ed Security=True;U ser
Instance=True ;AttachDBFilena me=|DataDirecto ry|aspnetdb.mdf "/>

</connectionStrin gs>

First of all I do not know what should I put there and I even doubt that
SQLExpress may be used for a real web site.
Any help please

Thank you

Esha



Sep 16 '06 #4
Thank you
I talked to Host technician. She said that only dedicated server can give me
the ability to use SQLExpress, but I have Shared Server account.
I have SQL Server 2005 installed on my development machine. I have a
connection to the sql server on hosting server. I created the database
(Personal) there and ran the script for tables and SPs creation. I also
manually added (copied from SQLExpress) data into tables.
I changed ConnectionStrin g in web.config to:
"Data Source=mssql4.s ecuredca.com;In itial Catalog=chapran _personal;User
ID=chapran_chap ;Password=vovan 8682;" providerName="S ystem.Data.SqlC lient"/>

I did not make any changes to:

<remove name="LocalSqlS erver"/>

<add name="LocalSqlS erver" connectionStrin g="Data
Source=.\SQLExp ress;Integrated Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |aspnetdb.mdf"/>

because I have no idea what to put there and I even do not know if I have to
use that part on the real server.

My pages with database communication still do not work

What else should I do?

Esha

"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamMwrote in
message news:u6******** *****@TK2MSFTNG P05.phx.gbl...
It is almost as easy as Access, but not quite.

Ask your ISP if they support SQL Server 2005 file based databases. If so,
they should be able to help you link the file up to their server. They can
then tell you how to use it.

If they do not, you will have to migrate the data. Since you will only
have limited tools on the local SQL Express install, this might be a pain.
The easiest way is to recreate the seed data as scripts. The SQL Express
tools are minimal help here. You can download a trial of redgate's product
and create the data insert scripts. You then connect to the ISP SQL box
and run the sql script.

The other option is move to Access, but depending on where they have the
files, you may have to set the connection string based on file location,
using MapPath. This is fairly simple. Reason: For security, some ISPs move
the root location, which will force you to figure out the path to the .mdb
file using Server.MapPath.

Don't worry, it does get easier once you do it once.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"esha" <es**@newsgroup s.comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>Thank you Cowboy
My ISP offers SQL Server 2005. I don't know about SQLExpress. Does
SQLExpress require any special action? I was thinking that it works
similar to MS Access (just copy db to the appropriate folder and that's
it).
If I will move the data from SQLExpress to the SQL Server (I don't know
how to do that yet), should I then change Connection string in web.config
file only, or some additional actions are required?

Esha
"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamMwrote in
message news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
>>You need to work with your ISP's support division and find out how they
have SQL set up for your site. You will then have to move your database
to that server (unless they are using SQLExpress, then you might have a
few other hoops to jump through). Once you have the data in a database
and have the connection string aimed to that database, your app will
work.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************* *************** *************** ******
Think outside of the box!
************* *************** *************** ******
"esha" <es**@newsgroup s.comwrote in message
news:On****** ********@TK2MSF TNGP02.phx.gbl. ..
I have ASP.NET 2 hosting. I created my first simple WEB application from
Personal WEB Starter Kit template.
Everything works fine on my local machine.
I uploaded all files to the hosting server. Pages which do not use
database work, pages which communicate with the database do not work.
I'm just starting to learn programming and have not enough knowledge to
realize what's wrong. I just suspect that I have to change
ConnectionSt ring in WEB.config file. Now I have there:
<connectionS trings>

<add name="Personal" connectionStrin g="Data
Source=.\SQL Express;Integra ted Security=True;U ser
Instance=Tru e;AttachDBFilen ame=|DataDirect ory|Personal.md f"
providerName ="System.Data.S qlClient"/>

<remove name="LocalSqlS erver"/>

<add name="LocalSqlS erver" connectionStrin g="Data
Source=.\SQL Express;Integra ted Security=True;U ser
Instance=Tru e;AttachDBFilen ame=|DataDirect ory|aspnetdb.md f"/>

</connectionStrin gs>

First of all I do not know what should I put there and I even doubt
that SQLExpress may be used for a real web site.
Any help please

Thank you

Esha



Sep 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1721
by: Bob | last post by:
I'm looking at the docs in VS2005 regarding starter kits and I noticed that the starter kits to download from the site are in vsi files (compressed), all except the shareware starter kit. MS docs says that templates should be in compressed files. The Shareware starter kit is in msi file so when you install it you get a solution that includes some other projects, but it does not appear in the templates when you want to start a new project....
0
3591
by: Mart | last post by:
Hi, I have just written (my first) VB.net app using MS Visual Basic 2005 Express Edition Beta. It is fairly simple, it reads some configuration data from an XML file then opens a new window containing a WebBrowser object. This all works fine and I'm happy with my app so I want to 'publish' to a setup file so that others can install it, but when I publish it a get the following errors:
0
1836
by: Uma | last post by:
Dear all, I have a problem while running a smart client application which was installed through CD-ROM. After installing the smart client setup the application is running properly. When running the same application second time, it is not working. First time the setup willbe installed through CD-ROM. If any version increase then the new version will be updated from an URL given in Updates dialog box while taking setup. I took setup...
6
25077
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42
8
6892
by: Ryan | last post by:
I've created and deployed a VB.Net 2005 Application. I have it set as a FullTrust (ClickOnce) application. The install point is on a network server. I did not run into this issue at all while testing, but now that the application is deployed about 1 in every 10 computers get this error when they try to run the app. Any ideas? Everything I find on the web talks about ASP.NET. This is not a webpage, it's a desktop application. ...
2
4545
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN for VSTO & ClickOnce documentation and did not find anything. I've noticed that there is an option to publish the project, but when I do that and then run the application from Web it throws us security errors like:
0
5255
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying to install using the setup.exe. Title is "Cannot Start Application" and it says: ==================== Cannot download the application. The application is missing required files. Contact application vendor for assistance.
0
3304
by: coopdog | last post by:
This is a new issue as of an install to sp1 on vb express 2005. When I publish the application to my drive then I try to install it is wants to be installed from the same location as it was originally install. Any help would be great it is a real pain having to uninstall then install this update. Also all users are admins. Thanks Mike
0
1354
by: Andrus | last post by:
I created .NET 3.5 SP1 Winforms application setup by pressing publish button in VCSE 2008 SP1 Running created setup.exe in same computer causes error below "Reference in the manifest does not match the identity of the downloaded assembly RdlDesigner.exe." and application is not installed. RDLDesigner.exe file is application created using VCSE 2008 How to fix ?
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10501
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10273
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10250
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5603
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.