473,385 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

aspnet_setreg error with v1.1

Hi all,

I am trying to use aspnet_setreg to encrypt a user name
and password to be used in the sessionstate section of my
web.config file. I have the various knowledge base
articles from Microsoft on the subject (329290 and 821616)

This is in a Windows 2003 Server environment, with .Net
1.1

I believe that the values are being written to the
registry correctly, and I have set access to the network
service.

However, when I run the ASP.Net application I receive the
following error message:

Parser Error Message: Format of the initialization string
does not conform to specification starting at index 0.

The web.config session state entry reads as follows:

<sessionState
mode="SQLServer"
stateConnectionString="tcpip=127.0.0.1;42424"
sqlConnectionString="registry:HKLM\SOFTWARE\MyApp\ sessionSt
ate\ASPNET_SETREG,sqlConnectionString"
cookieless="false"
timeout="1440"
/>
Any help gratefully received
Nov 18 '05 #1
1 1295
FYI the answer is that you MUST give read access to the
Network Service user on the server to EVERY LEVEL of the
registry entry. I had only given access to the top and
bottom levels :-(

Andy

-----Original Message-----
Hi all,

I am trying to use aspnet_setreg to encrypt a user name
and password to be used in the sessionstate section of my
web.config file. I have the various knowledge base
articles from Microsoft on the subject (329290 and 821616)
This is in a Windows 2003 Server environment, with .Net
1.1

I believe that the values are being written to the
registry correctly, and I have set access to the network
service.

However, when I run the ASP.Net application I receive the
following error message:

Parser Error Message: Format of the initialization string
does not conform to specification starting at index 0.

The web.config session state entry reads as follows:

<sessionState
mode="SQLServer"
stateConnectionString="tcpip=127.0.0.1;42424"
sqlConnectionString="registry:HKLM\SOFTWARE\MyApp \sessionS tate\ASPNET_SETREG,sqlConnectionString"
cookieless="false"
timeout="1440"
/>
Any help gratefully received
.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Duncan Allen | last post by:
I'm trying to use aspnet_setreg to encrypt user names & password used in the web.config file for use in the indentity element. When the website runs I get the message 'Error reading the password...
0
by: RichW | last post by:
We are having some problems with invalid characters in passwords when using aspnet_setreg. Aspnet_setreg seems to generate the registry keys successfully, but then the asp.net application using...
0
by: Mike | last post by:
I have found a way to impersonate a user by doing this in the web.config <identity impersonate="true" userName="myDoamin\Mikej" password="password" / But now I want to encrypt this. So I found...
3
by: Peter Rilling | last post by:
Can aspnet_setreg.exe work for regular app.config files as well?
1
by: Kevin Burton | last post by:
As was suggested I am using aspnet_setreg but I am getting the following error: : Error reading the password from the registry. (c:\inet pub\wwwroot\IVRService\web.config line 46) at...
0
by: microsoft.public.dotnet.framework.aspnet.webcontro | last post by:
I have a webservice up and running locally on my dev machine (XP) using impersonate like so: Line 5: <identity impersonate="true" Line 6:...
0
by: Tom | last post by:
I can't debug my asp.net projects. for some reason i'm getting an error saying that i don't have permission and i should be added to the debuggers group. I added my domain user, my aspnet user and...
2
by: jay | last post by:
I am attempting to impersonate an account in ASPNET. I am using aspnet_setreg to store the username and passwords. I have given the ASPNET account permisision to read the registry values. However,...
1
by: Mark Rae | last post by:
Hi, I'm working on an ASP.NET intranet site which is still in v1.1 of the Framework. We are using ASPNET_SETREG to impersonate a domain user for various reasons, as follows: <identity...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.