Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Could not create Windows user token from the credentials specified in the config file. Could not create Windows user token from the credentials specified in the config file.
Previous
 
Next
New Post
4/20/2007 4:29 PM
 

Running DNN 4.4.1. Dev server is XP Pro. Prod Server is 2k3. Sql Server 2005

I wrote a module that allows a user to select a type of pdf to view. My function that shows the report, calls another web app that I have on a file server, and that app then stream the pdf to the client's browser.

When I try to retrieve the pdf, on my dev machine I always get prompted for the domain userid/pswd. But on the prod server, it just bombs out.

I have made edits to web.config like so:

 

<identity impersonate="true" userName="mydomain\myusername" password="mypswd"/>
have also tried uncommenting 

<trust level="Medium" originUrl=".*" />

 

Nothing works so far. I only get:

 

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: Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.
'

Source Error:

Line 99: 		<!-- permits errors to be displayed for remote clients -->
Line 100:		<customErrors mode="Off"/>
Line 101:    <identity impersonate="true" userName="domain\userID" password="pswd"/>
Line 102:		<!-- Forms or Windows authentication -->
Line 103:		<authentication mode="Forms">

Source File: C:\Statements_DNN\web.config    Line: 101
 

 

Any suggestions please?

 
New Post
4/20/2007 4:37 PM
 

It is failing because your application is not able to create the user credential specified there.  If you are not purposley using identity impersonation I would simply comment out that line of your config file.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/20/2007 4:49 PM
 

Actually Mitchell it looks like he's doing it correctly. Without impersonation it's going to attempt to contact the file server using the local production server's ASPNET user credentials (which won't work).

Tigris, I suspect it's something in your network setup. If you logged into the server locally (using the local Administrator account) and tried to connect to the share/app on the production server does it work when you supply it with the username/password in your web.config? We ran into something similar on an internal module that I wrote that allows our students to access a network share. We had to talk to our head networking guy to get him to "poke" a hole that would allow web traffic through to the file server otherwise we'd get errors like crazy. It works from your dev machine because it's not restricted from seeing/access the file server.

 
New Post
4/20/2007 5:40 PM
 

True, I should have added that using impersonation he needed the login to be able to correctly authenticate.....

I posted that mid-thought....oops


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/20/2007 8:32 PM
 

I don't know how to respond. I have tried everything I could think of. Commented/uncommented the lines in the web.config I mentioned earlier, added permissions to the folder that contains the web app on the fileserver. ...

 

 

 

 

 

Should I try to experiment ing with the authentication section? I am at my wits end here.

Also, once I uploade to the web server, when the app bombs out, it tries to load http://myDevMachineIP/client/error.aspx into the browser instead of http://myDomainName/client/error.aspx . Why is it stuck on sending the client back to my dev machine IP?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Could not create Windows user token from the credentials specified in the config file. Could not create Windows user token from the credentials specified in the config file.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out