Hosting ASP.NET Web site using IIS7 Windows 7 - sql-server

I have made a small ASP.NET web site using VB 2010 and SQL 2008.
But I don't know how to host it on local PC.
The target PC is running windows 8.
All other PC's are connected it through LAN
The system is offline.
But before trying to host my web site on target PC (Windows 8) i want to make sure everything is ok with my site.
Hence I am first trying to host it on my PC (Windows 7).
I don't know anything about hosting on Windows 8 OS.
But I tried little bit on Windows 7 OS.
All I know is I am going to host my site on IIS7.
I already enabled IIS7 on my PC (Windows 7).
And I pasted all contents in my project folder to C:\inetpub\wwwroot
My default page is C:\inetpub\wwwroot\index.aspx
Now how do I add my website to IIS7 and attach database to it.
Do I need to install VB 2010 and SQL 2008 on target PC (Windows 8)?
Thank you.

Where is the database supposed to live in the end? If it is on the Target PC then yes it will need SQL 2008 but not if there is another server that is going to be the database server. You aren't clear about whether the site is supposed to all run on one server or if you have a multi-server set up where there is a web server and a separate database server.
Which version of the .Net Framework does the site use and is that registered with IIS?
Those would be my initial questions as you shouldn't have to install VB 2010 but you would need the Framework to be installed and configured to have this work.
EDIT: You will have to install and configure SQL Server 2008 on the machine. IIS can use .Net 2.0 or 4.0 and thus be aware of what configuration you want to run so that you don't wind up having issues.

Related

Publish an ASP.NET-MVC in MS server 2003

I made a WEB app using ASP.NET-MVC with a local SQL server database. I have a lot of issues while trying to publish it.
I want to publish the web app on a MS 2003 server. I have tried to do it with the Publish tool on Visual Studio 2012 but it doesn't work, I had this error : ERROR_DESTINATION_NOT_REACHABLE, I searched for some solutions on the internet and found this :
Diagnosis - Web Management Service or Remote Agent is not installed or
unreachable on the remote computer. Resolution - Verify that Remote
Agent Service or Web Management Service are started on the remote
computer, depending on which one you are connecting to. You can do a
"net start wmsvc & net start msdepsvc" on the remote computer to
ensure these services are started. Also, ensure that a firewall is not
interrupting communications with the destination.
I have tried to install the Remote agent service on the MS server but it doesn't show up in the services lists.
I have also tried to publish the app locally using IIS (instead of running the app with the play button on VS studio), I have followed some steps in a forum and publish the package, I had this error :
My files are structured like that :
Can anyone help, I am really stuck on this and I can't move on !
On the server I have :
Windows server 2003
IIS 6.0
SQL Express 2005
On the development machine :
Windows 7
Visual studio 2012
IIS 7.0
ASP.NET-MVC 4
Sql Server 2008
Any help is needed, thanks.
I have found the solution thanks to this post.
I had some problems with the assemblies so I did Just do Copy Local = true in the properties for the assembly(System.Web.Http.WebHost) and then did a redeploy, it works fine.

SQL Server Express installation required for clients connecting to a server?

I would like to know if an installation of SQL Server Express is required on my client PCs? I have searched a fair bit and so far all I've seen were related to attached databases or local databases.
Here's the setup of my system.
There will be a Windows Server PC that will be hosting the SQL Server instance.
Client PCs will be running a VBNet based windows form application where connection strings will be fed to table adapters that would allow them to connect to the server.
Now I have tested running the application on a Windows 7 PC without SQL Server Express installed and it works, connection was a success and data can be retrieved etc. However the system is actually going to be run on Windows XP when it goes live.
So I was wondering if the client PCs would require an installation of SQL Server Express or any sort of dlls for it to be able to connect to the server? Or would the .Net Framework be sufficient?
Thanks in advance.
You will not require a SQL instance on your client PCs. The app can just make the connection to the server via the connection strings. Our app is very similar in the fact that we support Windows Xp and SQL Server 2005 and it works well without any instance on the client PCs. We do install a local instance on the client but this is only used when transferring data to a laptop so it can be used when disconnected from the network. HTH
I think you should install .Net framework on your client pc. I'm not entirely sure if it's the case but to be sure, run it on a Windows XP machine. If you dont have an xp machine, try using desktop simulater like virtualbox of sorts.

Cannot connect to SQL database (hosting from home)

I recently installed Windows Server 2012 and IIS because I wanted to host website from home (inside my network).
I was easily able to host simple static site, but now when I want to deploy ASP.NET site which uses a SQL Server database I have problems.
From this tutorial I "published" site from Visual Studio
http: //youtu.be/DQgbOIjWgBs?t=6m
And here is what error I get:
http://i62.tinypic.com/j9uhjt.jpg
I have installed SQL Server Management Studio and attached database to it, in IIS I have set/up database name and server, so I believe that is also ok.
Firewall is disabled (just for now until I get it working).
Here is SQL Server set-up from IIS
http://i61.tinypic.com/ao2r95.jpg
I don't know where the problem is, maybe in permissions? (I can normally view static page, website folder is located in inetpub folder)

Visual Basic 2010 Application with SQL Server CE, database not accessible on Windows XP

I was developing an Application that requires a database to store and retrieve data. I am developing the applcation on Visual Basic 2010 Express Edition and using SQL Server Compact Edition for database, on a Windows 7 PC. The Application works perfectly on Windows 7 on my PC. The problem arises on the system of my client who is using Windows XP.
I asked him to install .NET Framework 4.0 and SQL Server CE and send him a copy of the build Application. But when he executed the application and reached a form where database was being used, he encountered and error saying "Access to the database file is not allowed. [ File name = D:\prototype\app\master.sdf ]" and on clicking on continue the form loads but data from the database is not loaded, since it's not connected.
The same problem occurs on windows 7 if i copy the app folder to Program Files directory on Windows 7. But It doesnt occur if i execute the application as "Run as Administrator"
So I require your help to figure out what might be going on and why can't the application access the database simply as it is working on windows 7 (except in the program files directory).
Thanks in advance,
Best Regards
"The user need read-write access to the database file, so you must put it in an suitable location, and change your connection string accordingly."
http://erikej.blogspot.dk/2011/02/using-sql-server-compact-40-with.html
By EricEJ

Windows Authentication to Access SQL Server from my application

I have 2 applications, one is written in vb6 and the other is asp.net web application.
from both of them I'd like to connect a remote (but on the same network) sql server 2008 r2 database.
Somehow, this doesn't work. I wanna put the asp.net application aside for now and just test the vb6 one.
The strange things is, if i install sql management studio on the same machine where
my vb6 application is installed and try to connect my remote sql server using windows authontication it works.
Thanks in advanced.
A shot in the dark: 2008R2 is much newer than vb6. What type of data connectivity are you using in the vb6 app?

Resources