|
I've got SQL Express 2005 and VS 2008 team.
As they specified in Pro ASP.NET 3.5 in C# 2008
1) run aspnet_regsql to generate say ProjMembership db
2) copied it into App_Data from SQLEXPRESS\data folder and attached its path in sseutil -a somepath\ProjMemebership ProjMembership
3) setup web.config as
<connectionStrings>
<add name="MyConnString"
connectionString="Data Source=.\SQLEXPRESS;
Integrated Security=SSPI;initial catalog=ProjMembership"/>
</connectionStrings>
<authentication mode="Forms" />
<membership defaultProvider="MyProvider">
<providers>
<add name="MyProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="MyConnString"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
applicationName="/"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="3"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
</providers>
</membership>
<roleManager enabled="true" />
But when I go to security tab in ASP.NET configuration from VS, it reports:
Cannot open database "ProjMembership" requested by the login. The login failed. Login failed for user 'ACER\user'????
Чесноков
|
|
|
|
|
Connectionstring is missing Trusted User=True or say user id and password to login to sql server. Give a try by adding this.
Vijay V.
Yash Softech
|
|
|
|
|
Hi
lately, i got a problem with iis, when i try to start iis, i go this mesage :
Attempting start...
Start attempt failed.
IIS Admin Service or a service dependent on IIS Admin is
kely failed to start, which may mean that it's disabled.
when i go to service to start 'iis admin service' manually, i got this error :
Services
---------------------------
Could not start the IIS Admin Service service on Local Computer.
Error 2: The system cannot find the file specified.
---------------------------
OK
here is my event viewer log :
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7000
Date: 8/20/2009
Time: 9:57:27 AM
User: N/A
Computer: MOSS
Description:
The description for Event ID ( 7000 ) in Source ( Service Control Manager ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: IIS Admin Service, %%2.
i have win 2003 server
1. i checked metabase.xml and MBSchema.xml file (copy from previous backup) but did not solved my problem.
2. i right-click on (%windir%\registration) folder and go to Properties > Security and found this users :
3. i log on to this machine as domain admin
Administrators : Does not have full permisson, Only Special Permissons has been checked
Everyone : Does not have full permisson, Only Special Permissons has been checked
SYSTEM : Does not have full permisson, Only Special Permissons has been checked
plz help me to workaround this problem.
thanks
|
|
|
|
|
What does ASP.Net has to do with this?
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Hi d@nish
i don't know, i can't see anything in iis manager.
|
|
|
|
|
Hi,
In my connection string if i give Server name it will not work, But if i give with servername\SQLEXPRESS it will work. But this connection string i can't use in class as it giving an error for this. Please help me.
|
|
|
|
|
It's because you have installed SQL Server Express Version in your System
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
So please solve this problem?
modified on Thursday, August 20, 2009 11:13 AM
|
|
|
|
|
srikantha_nagaraj wrote: But this connection string i can't use in class as it giving an error for this.
Are we meant to guess what error? Why can't you use it, it's a valid name.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
My Connection string is
"Database=QD ;Server=BHUKRK83981D\SQLEXPRESS; Integrated Security = true;Connect Timeout=2000;"
But it is giving an error as Unrecorganized escape sequence.
|
|
|
|
|
You need to escape it for the slash, like this:
@"Database=QD ;Server=BHUKRK83981D\SQLEXPRESS; Integrated Security = true;Connect Timeout=2000;"
Or just double it up:
"Database=QD ;Server=BHUKRK83981D\\SQLEXPRESS; Integrated Security = true;Connect Timeout=2000;"
|
|
|
|
|
|
Basic C# error - you need to escape the \, its nothing wrong with the connection string.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi,
I am creating a website using website in asp.net2.0, Can i use Class here. Please help me in this. Although i am able to create class, but i am not able to use that. Please help me.
|
|
|
|
|
Yes,
just create new "class library" project
Ex. "ClassLibrary1"
implement your classes and build it.
Now go to your web site and add reference of that class by
Add References,browse tab page-browse where you create your class.
Add dll of your class project which created in bin->debug folder
Now you can use class
Ex. ClassLibrary1.classname
|
|
|
|
|
I have an Word Document I need to print it directly on hard paper without opening at the client end.
Is there any solution to directly print the word document without using ActivexObject and any third party tool?
|
|
|
|
|
If MS-Word is installed on your Web Server, then you could instaniate Word on the server and print it to a print queue without opening it at the client.
|
|
|
|
|
Could you please tell me the way with code if possible?
|
|
|
|
|
Hi,
I am creating a web site which is utilizing the .Net Membership provider with SQL server to store each users logon information. I have customized the create user wizard to obtain extra information i need from the user.
My issue is that i am not sure what is the best method of using the automatically generated UserId as a foreign key in my other tables which belong to the relational database system i have designed.
I also need to store the extra information obtained from the customized fields in the create user wizard in my relational database system.
Any advice or pointers will be much appreciated!
Regards,
Johnny
|
|
|
|
|
I have a similar scenario
Just create another table either in the same db or in another db
Once the user is created with the createuserwizard and all the other fields are filled, insert a new row in your table
Alexei Rodriguez
|
|
|
|
|
hi ..
i have small question abt page load\
when i m going to click button first its going to page load .. and only debug into button click event .. so now i want after finish debug is there any posible to again into pageload.
try and try untill reach success..
|
|
|
|
|
Can you clarify your problem in detail?
|
|
|
|
|
thnks brother
when i click to button .. then its going to debug right .. so i m not using ispostback
so first start debug in pageload and its debuging into button event right .. after the debuging going to finished page..
my doubt is there any posible to debuging from button event then again its debug into pageload
try and try untill reach success..
|
|
|
|
|
When you click the button, page load will be called first and then the button_click event will be called, after this the debugging will end.
What you are trying to do?
|
|
|
|
|
When you click the button, page load will be called first and then the button_click event will be called, after this the debugging will end.
yes .but i need from button_event to next called to pageload ..how can i do this one..
i dont want to use refresh.
try and try untill reach success..
|
|
|
|