VS 2010 ASP.NET Membership Role In Windows Application?

Oct 4, 2010

i already create new connectionstring in app.config that point to myDB i already create aspnet membership table in myDB using aspnet_regsql i already create new custom provider and set the connection string there.. what i like to ask:

1. why when the app start, it create new folder app_data which contain aspnetDB.mdf eventhough i already create new connection string ?

2. why when i'm using Membership.CreateUser method, it succesfully inserted in myDB.aspnet_Users table but when i'm using Roles.CreateRole method it doesn't inserted in myDB.aspnet_Roles table?

PS: i'm using .net 4.0, sql2008, vs2010

View 9 Replies


ADVERTISEMENT

ASP.NET Membership Check If User Is In A Role In Custom Class

Jan 17, 2010

In my VS solution, I have two projects.One for the Web Interface, other for DataAcess and BusinessLogic. I know I can check if the currently logged-on user is Employee in Web Interface project like this from the code behind:

Dim isEmployee = User.IsInRole("Employee")

The problem is that I have a Class call UserManagement in my the DA and BL project which I want to check the currently logged-on user role also. I can't use Dim isEmployee = User.IsInRole("Employee") because it doesn't have aspx page.

What do I need to do to check the user role in my custom class?

View 2 Replies

Authentication Of ASP.NET Membership In Windows Form Application

Jul 1, 2010

I have the following code being used, it is really useless for me as I can't get much info using it, is there any other way I can save the info when a user logs in to store it for the whole time until the program closes?

[Code]...

View 1 Replies

Authentication Of ASP.NET Membership In Windows Form Application?

Sep 17, 2011

I have the following code being used, it is really useless for me as I can't get much info using it, is there any other way I can save the info when a user logs in to store it for the whole time until the program closes?

Dim user As MembershipUser
Dim identity As GenericIdentity
Dim principal As RolePrincipal

[code]....

View 1 Replies

Use Membership Roles Using Sql Provider In Windows Forms Application?

Nov 22, 2010

Is it possible to use membership roles using sql provider in windows forms application

View 1 Replies

SQL Server Application Role Not Working In App

Oct 7, 2009

This desktop app written in VB.Net within VStudio 2008 fails when one of our "power users" tries to run the program: Select permission denied on object 'AcctLogon', database 'MDS', owner 'dbo'. The author of the app is out for a few weeks and I am the "fixer" while she's out. Both of our logins for SQL have permissions for db_owner in the MDS database but our user does not. The user has a Windows user login for this instance of SQL. This login has permissions for the public role only in the MDS database.

[Code]...

View 1 Replies

Implementing Role Bases Security For An Application?

Aug 18, 2009

I wish to implement some role based security in my application. Has anyone got any links with some usefull info on this subject.

View 2 Replies

What Application Has Replaced The Role That SourceSafe Used To Provide In Visual Studio 6

Apr 1, 2009

In the .NET world, what application has replaced the role that SourceSafe used to provide in Visual Studio 6?

View 23 Replies

VB 2010 Application Works On Windows 7 Machine But Will Not Work On Other Windows 7 Machines?

Jan 22, 2011

I have developed a VB 2010 express application that works on my windows 7 machine, but when I deploy it to other windows 7 machines the application will not run at all. I created an msi script to install the software on other machines and it includes the .NET 4.0 framework an all of my application dll's and such. Any idea what might be he problem?

View 2 Replies

Converting My Windows Form Application In VS 2010 Into A Run In The Background Application

Jan 17, 2012

Final step in my application. I finally got all the requirements working, but now I need to have the application run in the background.

The application was written in Visual Studio 2010 VB, Win form app.

The requirements are as follows:

1.) run the application at start up

2.) no icon

3.) always in focas

4.) always runs in the background.

Here's the full code I have right now (working! whahoooo)

Public Class Form1

Private Property count As Integer
Private s As New Stopwatch

[CODE]...

View 2 Replies

My.User.IsInRole("Role Name") Throws A Trust Relationship Error On Windows 7

Dec 10, 2009

Problem: My programs throw a Trust Relationship error when calling My.User.IsInRole() but only on Windows 7 64 bits. They work on all our Windows XP stations. My code is pretty simple.

With My.User
if .IsInRole("Some Security Group Name") Then
Bla.. Bla.. Bla..
End If
End With

I'm the only one in the company using Windows 7 which we are evaluating to decide if/when we're going to upgrade all our PC's. I am a domain administrator and my PC is in the domain and I'm authenticated. Since I installed Win 7 I haven't had any other authentication issues. The apps are built on .NET 2.0 SP2 I don't know much about our domain setup which is handled by our network administrator but I'm told that the Primary Controller is a Windows 2003 and the Secondary is Windows 2000. He tells me that by default every workstation first authenticate on the Secondary controller if it's available.

Here's the StackTrace

System.SystemException was unhandled
Message="The trust relationship between this workstation and the primary domain failed.
" Source="mscorlib"
StackTrace:

[code]....

View 2 Replies

When Developing A New Windows Application And Web Application Using VS 2008/2010

Dec 7, 2010

I want to learn programming techniques so can make both windows and web applications more user-friendly, faster, safer, reliable and easier to deploy.

View 4 Replies

Visual Studio 2010, Outlook 2010 And Windows Application, Return Emails?

Jan 5, 2011

At present I have wrote an application (in-house CRM, vb .net 2010) which allows me to send emails under the selected customer & I categorised these emails.As these are categorised I can return data to display email history in my program by using search criteria:

Dim oMail As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail)
Dim sSearch As String
sSearch = "[Categories] = '" + "[" + tAccount.Text.Trim + "]" + "(" + tShipTo.Text.Trim + ")'"
Dim oItems As Outlook.Items = oMail.Items.Restrict(sSearch)

However the limitation to the above is it only looks at sent items & no other folder.My ideal solution would be to display all email correspondence for a certain contact.

View 1 Replies

VS 2010 - Application To Run On Windows Startup

Apr 2, 2012

I developed an application in Visual Basic 2010 Express which has two features:

1) It is portable and uses some .dlls which must be in the same folder
2) Requires Administrator in order to run

I want my application to run on windows startup. So i created the registry string value and made some tests that gave me the following results:

1) Windows XP -> Runs on startup without any errors
2) Windows 7 Starter -> It simply ignores my application
3) Windows 7 Premium -> The run confirmation box from unknown publisher appeared and when i selected to run, AVG gave a virus warning
4) Windows 8 Consumer Preview -> It simply ignores my application

View 3 Replies

VS 2010 Windows Application Books?

Mar 28, 2011

It has been nearly 4 years since I have started developing with .NET - mostly with ASP.NET and SQL Server. I rarely got any time to work with Desktop application but now I want to get lower level knowledge of windows application - I mean hows window application works (Hows form is drawn, what kind of lower level objects are being used, how user control detect keystroke and up to what hierarchical level etc.)

View 3 Replies

.net 2010 Windows Forms Application Hanging?

Oct 12, 2010

I have a windows forms app (32 bit) written in VB2010 which occassionally hangs in windows when minimised to the task bar You click on the icon on the taskbar and it will not come back up on the screen

No other modal forms are open in the application when the hang occurs Other programs respond OK

I ran Process Explorer against when it was Hung but do not know how to interpret the stack page, or even if it is helpful STack page with my application selected and Threads tab selected with CSwitch Delta column sorted descending. Then double clicking the top entry (my application .exe)

Note: This is running on an x64 machine, but also hangs on x32 machines

[Code]...

View 6 Replies

VS 2010 Show Webpage In A Windows Application?

Sep 16, 2010

Is there a .Net control I can use to display a web page from a vb.Net windows forms application?

I am writing an app that will produce a slide show from a specified directory. The idea is it will ideally include Images, Video clips (via Windows Media), URL's (held in a text file), PDF documents and power point presentations.

Images and media clips aren't an issue. At present I am looking at displaying specified web pages. I am aware that I can use

System.Diagnostics.Process.Start("http://webinta/Pages/Home.htm"

to open a browser window, but I want control of that as after a specified amount of time it needs to close so I can display the next image (media clip, url etc).

View 2 Replies

VS 2010 Slacker Radio Windows Application?

Aug 30, 2011

So I listen to slacker radio a lot and I would really like to create an application that I can keep open on my desktop to be able to change songs among other things I want to keep all the limitations that the website has (such as not being able to skip through to many songs or anything like that) I don't want to make a huge difference I just want something that I can use to keep on my desktop to play music from so that I don't have to keep a chrome window open all the time (since I tent to close it out and lose my music) I'm just wondering if this will be a hard task... It doesn't have to look extremely beautiful functionality is the main thing i'm shooting for.

View 1 Replies

Mysql And Visual C++ 2010 Windows Form Application / CLI C++

Aug 18, 2011

Working on a project trying to use mysql and Visual Studio C++ 2010. I have an established connection to the database on a server using a connection string. My issue is I am not sure how to get the retrieved data displayed in dataGridView. Below is where I have my code for the button named Search. Right now all I am trying to do is get already inserted information out and displayed. Not sure if I am utilizing the dataGridView correctly or if there is another way. When I select bind to database I do not show any data sources even though in my server explorer window I show that I am connected. I have googled my eyes out and still havent found any information relating to a non console application. Here is some code that worked and returned a value of 1 to a textbox just stating that it had no errors in the execution. [code]

View 1 Replies

VS 2010 Cross Platform Application (windows & Linux)

Dec 22, 2010

am devoloping a simple program in vb.net but i wanna do it a cross platform almost (windows & linux) or if there is a vb.net to C++ code converter

View 2 Replies

VS 2010 Displaying WPF Viewport In A Windows Form Application?

Nov 19, 2011

Here is what I'm trying to do: Using WPF technology, I want to generate simple 3d solids inside a picturebox in vb windows form application, insert a camera and a light and control their position and direction through vb code, but it seems to be impossible, I know how to do that in a wpf project but I want to make use of WPF 3D capabilities in my windows form project.

View 5 Replies

VS 2010 Make A .exe File In WIndows Form Application?

Feb 19, 2011

im making some stuff using VB 2010 recently (im new to VB 2010) and well...i wanna make it into an executable file, how do i do it?

View 1 Replies

VS 2010 : Change Application From Windows Form To System Service?

May 3, 2012

one of the apps that I wrote a couple months ago is getting to be rolled out to my production floor; one issue tho - It works great as a standard executable (you double-click, it starts and waits for data), however, I cannot get it to start as a system service.

I've already done a little bit of research for how to create a system service, but most of the information that I've come across is point to VC# or Visual Studio 2010 - I'm not finding much for VB 2010. Additionally, I'm only using VB 2010 Express and I'm pretty sure that I don't have the Windows Service application template's on my PC.

My application does have a "UI", but there isn't any user interaction; it starts and just sits minimized in the system tray polling a directory for the existence of a file - i.e. the windows form is not required.

View 1 Replies

VS 2010 : Send Windows Application Email Over Proxy Server?

Feb 6, 2012

I need to create a small report to be send automaticliy from VB.NET Windows application. I have wrote below code which is working on my private PC, and with Gmail settings, such as username + password + smtp.gmail.com, etc...But with, my work informations, like my proxy ID + proxy password + company smptserver + port 25, does not working .

Imports System.Net.Mail
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Mail As New MailMessage

[code]....

here is also error while try to execute code from program.

View 1 Replies

How To Call WPF MediaElement From Windows Forms Application In Visual Basic 2010

Oct 23, 2010

I am a novice in programming and wrote several simple Windows Forms applications. I need to play mp3 file in Windows 7 x64 application.

Could you, please, explain in simple words, how to call MediaElement.Play() method from Windows Forms?

View 8 Replies

Unable To Clear The Contents Of A Text Box (Visual Studio 2010, .net Windows Application)?

Mar 18, 2011

What I have is on my form there are several text boxes. These text boxes are for user input and attached to each text box is a Private Sub txtBox1_KeyPress function. In that function I have some validation code to check that the user is inputing only what I want them to. And if it doesnt it will pop up a message box telling them so, then it is supposed to clear the text box so the user can try again. But no matter what I try, the text box does not clear it still keeps the last character typed (the invalid one).

Here is the code for one of the text boxes.

Private Sub txtLanIp_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtLanIp.KeyPress
Dim strEmpty As String = ""
If Char.IsDigit(e.KeyChar) = True Or Char.IsPunctuation(e.KeyChar) = True Or Char.IsControl(e.KeyChar) = True Then
'do nothing

[code]....

The commented methods at the bottom are some of the other things ive tried to make this work. The txtLanIp.text.clear() is what ive tried from the beginning. I have also tried setting the text to "", I even created an empty string and set the .Text value to it but no matter what it wont remove that character. I have also tried various trim(), len(), Select() functions, most either give me an 'index out of range error', a 'length cannot be less than zero' error or a general ExceptionOutOfBounds error. I am just tearing my hair out as to why the simple way doesnt work, there is no logical reason why and it gives no error it just doesn't clear the box.

I have also tried moving the validation to a _LostFocus but e.KeyChar isnt a valid method or property for that declaration, which doesn't surprise me but I wanted to try everything.I dont see how it would matter in this case but I am running Windows XP Pro SP3, though I also see the same behavior in Windows 7 64 bit ultimate sp1 and windows 7 64 bit pro.

View 7 Replies

Visual Studio 2010 VB Windows Forms Application - Organization Of DLL Project References?

Mar 26, 2012

In my VS2010 VB project I have a lot of external references to DLLs, to the point that organization has become a major headache and I'm wondering if I am going about it the wrong way. My assembly references include common redistributables (SQL Server Compact 3.5 SP1, ReportViewer 2010 SP1, DataVisualization, as well as some useful 3rd party dlls from CodeProject and CodePlex.

Currently, I am copying each DLL into a 1st level folder (/dll_lib) under my named project folder (under the solution folder), and adding the reference from that path. However, I see that Visual Studio copies the DLLs to various other locations (/bin/debug or /bin/release) in my project when I build the project or solution, and some of the 3rd party DLLs come with instructions to copy them manually to /bin.

What is the "best practice" for where to put the DLLs? Can I just put all of them under /bin and let the build event copy to /bin/debug or /bin/release as required? Should I try to force a single reference path for the dlls in the project output?

View 5 Replies

Visual Studio 2010 Windows Application And Interaction With MS Access 2007 / 2003

Jun 13, 2011

If I create a windows app which I link to an MS Access databse file that already exists..will I need to have MS Office installed on every computer at which I want to use the app? If not then how do I go about making a standalone windows app that will store information in a database of some form or another ?

View 1 Replies

VS 2010 Application Supports The Creation Of System Files From A Windows Mobile PC - Subject?

Jan 28, 2010

I would like to fine-tune their work tool.The basic idea is to load different libraries etc CppThere in my working environment, such as files - *. dsm.Read the information from them is no mean feat.

View 2 Replies

Asp.net - Add User To A Role When Registering?

Jan 7, 2012

I have a role called "Customer", I wish to add users who register to be to automatically added to that role. At the moment I can only assign users to roles by using ASP.net Web Site Administration Tool.If it helps: I'm using the default login.aspx and register.aspx files from Account folder in vb web profile.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved