Tag | aspnet Posts

Trying to figure out the best way to connect to SQl Server express for VS2005 Web development is quite interesting. You may be able to connect from vs2005 and the new SQL Server Management studio but when it comes time to run your aspx page against a connection you need to do a little extra work. First thing is security. If you are using integrated security the ASPNET account needs access to your database. I found there is more than one way to do this which adds to the confusion. Option 1) Attach ...
This article describes how to configure the SQL Server for .NET applications. By default, the SQL Server denies access to user accounts that have not explicitly been granted access to a database, a table, or a view. By default, ASP.NET applications run in the context of the ASPNET user account. Unless you permit access to the ASPNET user account, an ASP.NET application cannot read and cannot update data in an SQL Server database. This article describes the process that you can use to permit an ASP.NET ...
Few days back In my project I have to run a batch file which contains the series of piped MS-DOS commands to deals with Active Directory. Running batch file through ASP.NET requires impersonate the user id (for ASP.NET aspnet account), which requires lots of code and require understanding of windows securities. I found one work around which is very easy and no need of extra coding. In MS SQL Server there is one stored procedure named “xp_cmdshell” which executes a given command string as an operating-system ...
I started getting the following error in one of the site that I am recently installing ( win 2000, .Net 1.1)Access to performance data was denied to ASPNET as attempted from C:\WINNT\Microsoft.NET\Fram... Access to performance data was denied to ASPNET as attempted from C:\WINNT\Microsoft.NET\Fram... The type initializer for "Microsoft.Practices.Enterp... ...
The UltraWebChart has two in-the-box options for deployment: FileSystem or Session. The FileSystem option basically writes the rendered chart image to the web servers disk drive, and renders a standard image tag to the web page which points to that image as its src: <IMG id=UltraChart1_BaseImage src="/devin/ChartImages/Cha... .../> While a simple and reliable deployment option, the FileSystem option does have some drawbacks. 1) It requires that you give the ASPNET user Write ...
I had to resort to using the web installer as the CS MSI installer didn't work (threw error stating it could not find MDAC 2.7 or above - even though I'm running XP Pro SP2 which has the MDAC components built into it - duh!). Download CS 2 web install & unzip. Edit Installer\default.aspx - modify the line: bool INSTALLER_ENABLED = false;so the installer is enabled eg: bool INSTALLER_ENABLED = true; Using IIS admin, create virtual dir (eg 'cs') pointing to the 'web' dir beneath the installation. ...
I've tried to work with DotNetNuke Windows Authentication to extend it to work in mixed mode ( Use Windows Integrated Authentication for seamless logon intranet logon and use Forms authentication for users unable to use Windows Integrated authentication), as I did it before for my ASP.NET application . I found that since I activated Windows Authentication, I can logon only as my domain account user,which does not have DNN portal host or admin roles. So I unable using DNN web interface to administrate ...
First of all, to be able to follow me up in this post, I think you should take a look at the first part of it before you continue reading. After the session of Dr. Ahmed Bahaa and a quick talk to him, I took a colleague from GNS Egypt and went with her to TOP IT session “Data Access in ASP.NET 2.0”, I looked at the guy speaking out there and returned to my previous belief that I should focus on other sessions than ASP.NET related, as I believed that I’ve seen enough, while there ...
Here's a fun question that came through the Arizona .NET User's Group list about using client certificates with ASP.NET: Question:How do you set up a client x509 certificate to be used by code run by an ASP.NET process? This article didn't help: http://support.microsoft.co... The WinHttpCertCfg.exe util would not install certs into the store. I had to use the mmc certificates plugin. The workaround I did in development was to log in as the web user and install the ...
The Problem: Recently, I ran across a situation where we have an ASP.NET 1.1 app that we were installing onto a machine with the 2.0 .NET Framework already installed. When the virtual directory was created by the install, all the "non-application specific" file extensions were mapped to the 2.0 isapi.dll file. However, the "application specific" ones were mapped to the 1.1 isapi.dll. So, when I tried to hit the site the first time, a lot of stuff was screwed up. Going into IIS and remapping everything ...
Lots of BizTalk developers were facing similar problems when they built their own .NET test applications to test the web services generated by BizTalk Web Services Publishing Wizard. The debugging process stopped at “this.Invoke()”, and usually there will be an error message of “Internal SOAP Processing Failure”. If you check the event log, you will also see an error similar to “The Messaging Engine failed to register the adapter for SOAP for the receive location ...asmx. ...
Here are my initial impressions on the released version of VS2005. I attended PDC 03 and played with both Longhorn and Whidbey but as time went on I found it hard to keep up with the releases and all the nuances of the near "black magic" it seemed it took to get the CTPs, betas, and release candidates installed correctly and working. Being on a full-time project with deadlines and trying to develop a software product on the side meant I had to be careful about my focus. Installation Having worked ...
I was setting up my ASP.Net solutions at my new workplace (doing "File > Source Control > Open From Source Control..") when I got the following error: "Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications" This was despite the fact that I had installed .Net Framework 1.1 a few minutes earlier. I found the solution at Harish Ranganathan's blog, right here at www.geekswithblogs.com. All I needed to ...
I got this error when I try to create an eventlog source and when I try to write to the new event log (after resorting to manually creating the event log source) with my ASP.NET application. See the end of this post for the full error message and stack trace. This seems to be a very commom problem - and not consistent either. My guess is that it's due to the tightening of security recently, ie XP SP2. Use of the Network Service account (on win2k3) or AD accounts can help. To resolve you need to give ...
I am considering opening an account with Webhost4life.com. Does anyone have any experience with them? Anyone have any other advice? I need a good Windows hosting company where I can be use ASPNET apps like DNN or dasBlog without any issues. Update: I did go with Webhost4life, and they were great at the beginning. Their support was friendly and helpful, and my site was fast. That was then, this is now. It seems in this short time, they have gone to absolute crap. Their support appears to be all non-technical ...
<UPDATE November 26, 2007> I find that a lot of people found this article a little useful. This article is in continuation to earlier one which deals with IIS and SQL Server on the same machine. The link for the same is http://geekswithblogs.net/r... </UPDATE> This article is in continuation with Part I where I explained the scenarios where this error occurs when the Webserver and SQL Server are running on the same machine. In case you havent read that, ...
You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied" while trying to debug or browse your ASP.NET Applications.This may occur if the ASPNET account doesnt have sufficient priveleges on the 'C:\WINDOWS\TEMP' folder, in windows versions prior to Windows Server 2003. In Windows Server 2003, it is the Network Service account that needs to have the necessary rights for that folder.Even if you assign rights for EVERYONE it wont work since these accounts ...
Hi, You get this error "Unable to start debugging on the webserver. the project is not configured for debugging" occasionally when your aspnet account doesnt have debug permissions. This can happen, if the vs.net installation was not made properly or some reasons when the aspnet account fails to have the necessary rights. To resolve this, re-register the aspnet account with the IIS, by typing the following command from the command prompt:- %windir%\Microsoft.NET\Fram... ...
A very common but weird error we get when trying to create / open asp.net applications using visual studio.net is "Visual Studio .NET has detected that the specified Web Server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services." This error occurs primarily due to following reasons 1. IIS installed after Visual Studio .NET is installed. 2. ASPNET Account removed / doesnt have sufficient permissions. 3. Script Mappings not updated in the IIS 4. Proxy ...