I tried that years ago and it didn't work. Can't mix vb and csharp together in the same project. When you publish or run the project, the app_code folder gets compiled into a single or multiple dll's, not sure which but they don't mix.
It's kind of like having webforms with a mixture of cs and vb code behind pages.
You need to rewrite one of them if you want to keep them in the App_Code.
now I using IIS 5.1.
I created web application project using Visual Studio 2005 &
SQL Server 2005. then
I created virtual directory on IIS 5.1.
I attached database in MS SQL server 2005.
My web application contain ASP.Net 2.0 membership & login control.
When I browse my application from Browser using..
my application runs correctly.
I cannot use Login control.
Login control just display when I run.
But it is not working, when I use log in control.
How I have to configure IIS 5.1
I am very confusing now, reading other help from Online.
Did you setup your database and table, and enter a user and password in it.
I remember seeing a complete MS kit, in which you can download a starter program that already has all that going, and it sets up your sql server as well, so you get instant gratification within about an half hour.
now I am trying to make virtual directory for asp.net 2.0 web application.
I know how to make virtual directory.
in my web project, App_Data contains database (.mdf) file.
then, I change web.config connection strings like that:
I used auto attach connection.
But now,when I browse this application from browser, It shows error like below.
CREATE DATABASE permission denied in database 'master'.
An attempt to attach an auto-named database for file C:\Inetpub\wwwroot\WebHelpDesk\App_Data\Database.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
I don't know how to slove.
pls share me , giving idea how to solve.
I also checked in SQL server 2005 management.
I detached my database file in SQL server.
but it shows error like above.
i am not able to get where you got this problem. but another solution for this is, you can install your database in your SQL server and change your connection string to point local SQL instance and your database.
hope this will help you.
Last Visit: 31-Dec-99 18:00 Last Update: 30-Sep-23 10:46