VS 2008 Get Windows User Name
Jan 9, 2012
I'm working on my company's intranet site and I wanted to create a function or class that would return the user's domain name and user name so I tried creating a class:
Code:
Imports Microsoft.VisualBasic
Imports System.Web.Security
Public Class DataWhareHouseClass
[Code]....
fixing the class so I can get the user.
View 3 Replies
Similar Messages:
Sep 20, 2010
we have a web application that one company prepared for us. this application read connection string from registery key in hkey_local_machine and connect to sql server 2005 database. It worked correctly in windows server 2003. we changed our Server'OS to windows server 2008. but we have a problem to login. after try to login we see this error: Server Error in '/dabir' Application. Login failed for user ''. The user is not associated with a trusted SQL Server connection. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated with a trusted SQL Server connection. Source Error:
[Code]....
Stack Trace:
[Code]....
View 4 Replies
Oct 11, 2010
Microsoft Visual Studio 2010 was being used along with SQL Express for website development on the Operating System, Windows Server 2008 R2 Enterprise Edition of Intel Xeon CPU @ 2.13 GHz (2 Processors) containing 12 GB RAM with 64-bit Operating System. Website was developed along with the databases of SQL Express with the help of Visual Studio. Whether the developed website along with the databases may be used on the Operating System, Windows 7 of 64-bit? The website will used within Intranet. Which Operating System and configuration to be used for the Intranet Website?
View 1 Replies
Mar 8, 2010
I've installed IIS for Windows Server 2008 SP2 and Windows 7. In both instances, I can't get even the simplest of ASP.net scripts to work (note: I'm ftping the published files from Visual Web Dev 2008 Express on XP):
------------------------------------LOCAL MESSAGE---------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error
[Code]....
Line 36: ASP.NET to identify an incoming user.Line 37: -->Line 38:
<authentication mode="Windows"/>Line 39: <!--Line 40: The <customErrors> section enables configuration
Source File: C:inetpubwwwroot estweb.config Line: 38
------------------------------------REMOTE MESSAGE-------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a
<customErrors> tag within a "web.config" configuration file
located in the root directory of the current web application. This
<customErrors> tag should then have its "mode" attribute set to
"Off".
[Code]....
<!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="Off"/> </system.web></configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
[Code]....
<!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web></configuration>
Can anyone tell me what I'm doing wrong here in the web.config file? This is killing me.
View 5 Replies
Mar 17, 2011
I just downloaded and installled the Microsoft Windows Azure SDK yesterday for the first time and I am having issues running the application as I all I am getting is 503 errors. I run Windows Server 2008 R2 on my development machine and even tested it on another co-workers 2008 R2 and couldn't even compile the application. He got this error instead "A problem occurred while trying to set the "References" parameter for the IDE's in-process compiler. Error HRESULT E_FAIL has been returned from a call to a COM component."
From within my Windows Server 2008 R2 Hyper-V Virtual Windows 7 x86 enviroment, I was able to successfully build and run the Windows Azure SDK and it even showed the base ASP.NET application.So my question is, does the Windows Azure SDK for Visual Studio 2010 w/ Visual Studio 2010 SP 1 installed not work under Microsoft Server 2008 R2?
View 1 Replies
Sep 8, 2010
We have a working version of application (Intranet) with uses Windows Authentication deployed in Windows 2003. The application uses HttpContext.Current.User.Identity.Name to get the logged-in user. Here impersonate is turned off.Right now, we are move to Windows 2008 RC2 where this Windows Authentication problem arised. I have Digest Authentication and Windows Authentication enabled. And also I have enabled Anonymous Authentication enabled to avoid the Login dialog of IIS in the end-user IE. Now I am getting HttpContext.Current.User.Identity.Name as Empty. When I impersonate using username and password, I am used to login using that user but all the users uses the same user to login.Does any has solution for this?Deployment Server - Windows 2008 RC2 (IIS 7.5)Development - Windows 7 (IIS 7.5)I am new to IIS 7.5. Please give me a solution
View 3 Replies
Mar 28, 2010
I have looked at all the posts I can find on this problem and tried everything I can think of, but still the problem persists. I am getting really sick of it.was working fine for the last year until an update to MS Office 2007 caused a lot of problems (automatic update). After checking posts here, I removed it completely. No change. I then tried all the things I could find on other posts, also no change. Today, I removed VS and the Web Authoring Component and re-installed. Still no go.
Does anyone have a fix for this problem. It seems that it has been around a long time, but is still giving problems. I even saw one suggestion to reformat the drive! You've got to be joking!
View 4 Replies
Oct 11, 2010
I am looking at developing using Visual Studio 2010/2008 and SQL Server 2008 on Windows 7. Should I be able to do this on Windows 7 Professional, or do you need Windows 7 Ultimate?
View 2 Replies
Mar 10, 2010
Currently we are running an application build in VB6,ASP,Commerce Server2000 and Sql Server 2000. This application is running in Windows 2000 server.Now we are planning to migrate Windows server 2000 to Windows 2008.Will this application run in Windows 2008 or do we need to upgrade this application to dotnet and Sql 2008?
View 1 Replies
Jul 7, 2010
We have a website portal hosted in Windows 2003 server. For security reasons we are using different windows Login user say (xxxx) for signin other than Administrator. Now with this user (xxxx) name I installed .net Windows Application. It was working fine. For some reasons I renamed the original windows Login user(xxxx) to different say (yyyy). Now this .net Windows Application is not working with (yyyy) and even it is not allowing me to uninstall it.
View 3 Replies
Jan 30, 2011
get the below error. My application was working fine until I probably modified something, but don't know what.
Server Error in '/' Application.
Method is only supported if the user name parameter matches the user name in the current Windows Identity.
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.Provider.ProviderException: Method is only supported if the user name parameter matches the user name in the current Windows Identity.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ProviderException: Method is only supported if the user name parameter matches the user name in the current Windows Identity.]
System.Web.Security.WindowsTokenRoleProvider.GetCurrentWindowsIdentityAndCheckName(String userName) +2195661
System.Web.Security.WindowsTokenRoleProvider.GetCurrentTokenAndCheckName(String userName) +36
System.Web.Security.WindowsTokenRoleProvider.GetRolesForUser(String username) +61
System.Web.Security.RolePrincipal.IsInRole(String role) +182....
View 1 Replies
May 7, 2015
I did a winforms applicaion using C#. I has 'n' number of forms.I like to track application usage time from user login to application exit.
View 1 Replies
Feb 13, 2010
Ive recently got a new development machine with windows 7 64 bit. On loading up a website and opening default.aspx, the whole ide just freezes. Nothing responds, I have to shut it down from the task manager. This happens every time (ive tried it 4 times so far)The site was fine on my old machine (windows xp 32 bit) are there any compatibility issues with windows 7 64 bit and vs 2008 ?
View 7 Replies
Jun 28, 2011
In the IIS, it shows that the web app (i'm using) is using an application pool that uses NETWORK SERVICE account for identity. But when I debug/run my web app, User.Identity.Name shows that my windows user login instead. I checked my web.config file, and it does not have Impersonate enabled. In fact, I set it to false, and it still shows the same.
View 1 Replies
Mar 16, 2010
The MVC 2.0 RTM works great on my old Vista machine with VWD 2008 Express, but I just bought a new computer with Windows 7 Pro, installed VWD 2008 Express SP1 and MVC 2.0 RTM by using Web PI 2.0. but after installation, I found the VWD doesn't have any MVC options, that means I can't either create new MVC projects or compile existing MVC projects.Why? What other steps I need to do to make it work?
I'm sure the MVC has been installed properly since my MVC site on the new computer works well (so the IIS side has no problem), just the VWD can't 'realize' that the MVC framework is already installed... (tried to uninstall and install many times, but won't work)
View 2 Replies
Mar 14, 2010
either a freeware or lincesed tool for version control that would work with VS2008 on windows 7 Professional edition (32-bit).
View 3 Replies
May 19, 2010
One customer set up an IIS 7 on a Windows 2008 machine. Forms Authentication works fine on my local IIS 6.0 and also on a shared server I used for testing. On the new machine there is no way no access the password protected area despite a succesful login.
Is there any settings I should ask my customer to check out on the server ? Or is there something different for IIS 7 I should see in my web.config ?
View 6 Replies
Sep 2, 2010
Recently deployed my web app on Windows Server2008, IIS7 (with Office installed). After chasing (& catching) various other errors, I'm facing one I'm not sure even where to begin.
On Cassini (visual studio dev server) everything worked flawlessly (reading excel through excel interop).
On w2008 IIS it throws vague error:
Value cannot be null. Parameter name: o [ArgumentNullException: Value cannot be null.....
Currently, I'm going to add null check and see if things get better but I do suspect that it just blows up and disposes on finally block before it even starts reading anything.
Tried to set application pool to run under localsystem, but that didn't change anything.
[code]....
View 1 Replies
Aug 22, 2010
I have Sqlserver2008 setup. It is work in wndows Xp. But I have to Install it on Windows 7 ,during installation process it requires some patch and I am unable to get it.
View 4 Replies
Dec 19, 2010
On my system with windows xp3 i can attach and detach DB n sql server 2008 wthout any problems. But now wth windows 7, attaching seams to be a problem. Does this mean i'll have to do some security configurations b4 i can get my DB connected to sql server 2008 on wndows 7
View 2 Replies
Dec 7, 2010
Currently I'm in the process of deploying my ASP.net MVC 2 project on a Windows Server 2008 R2 web server. This web server already has the .net 4 Framework installed, but doesn't have any MVC dll's in the GAC.
So deployment on IIS succeeds, but when I start up the web application in the browser, it results in this message:
Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Of course I can Google myself too and it mainly:
Copying the MVC dll's (System.Web.Mvc.dll, .Routing.dll, etc) to the output directory;
Downloading an RTM version of ASP.net MVC 2 on top of .net 3.5 Framework. Neither of them I'd like to do. I just want to install ASP.net MVC 2 to the GAC of my web server. So my question is:
Which installation does actually contain ASP.net MVC 2 for installation on top of .net 4?
View 2 Replies
Jul 19, 2011
I have a web service within my application (app A) writing to an oracle database (database resides on a different server). when i call the web service from another application (app B), it fails to write to the database. when the web service is called from app A, it successfully writes to the database.
I guess this issue has to do with authentication/impersonation of ASP.NET. both applications (A & B ) are subsites within the same website in IIS and both uses windows authentication (intranet applications). I dont have access to the server and IIS.
View 5 Replies
Jan 24, 2011
We're moving an ASP.net 3.5 website from a Windows 2003 server to a Windows 2008 R2 server. We also have a php forum. Are there any issues I should be aware of? Anything that Windows 2008 R2 handles differently that might cause a problem? The website was developed on a computer running XP, in case that makes any difference.
View 5 Replies
Aug 9, 2010
I have IIS 7 windows server 2008 R2 64 bit on which I have few web sites which are sending emails thorugh asp.net. Each web site has seperate "From Address (used inside the code)".
In IIS 6.0 mananger >> Delivery Tab >> Out bound security >>I gave Integrated windows authentication for one account (Let us say abc).
When the emails are firing from different applications, the emails are going only if the from address is abc mentioned in the authentication. If any other email address is used then it is going to bad mail folder saying "Diagnostic-Code: smtp;550 5.7.1 Client
does not have permissions to send as this sender".So to make it work I have changed the authentication to anonymous then again the emails are going to bad mail with "Diagnostic-Code: smtp;530 5.7.1 Client was not authenticated" error.
View 1 Replies
Apr 13, 2010
i just want to confirm if what am trying to do is a good deployment practice. i have two applications am deploying. A web application using web setup project and a windows application using setup project. Due to some constraints, am merging the two deployments and so i intend installing the windows application in the intepub folder (same location as where the *.aspx will reside). Is this crazy? the windows application has a windows service
View 9 Replies