Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Excel reference in vb codeBehind

Status
Not open for further replies.

born2program

Technical User
Sep 18, 2006
85
US
I have an asp.net application that I am trying to push data into an excel spreadsheet in my vb codeBehind. When I add the Microsoft Excel Object Library 11.0 reference and then save or run the application I get the following error.
Code:
An error occured saving the project file 'PrintChecks.vbproj'. Access is denied.
Anyone know what causes this? I have also add the following line in my webconfig file b/c I read that excel sometimes has permission issues with asp.net.
Code:
<identity impersonate="true"/>
 
Does the folder the application is trying to save to have "write" access?
 
That's the thing, I don't even get that far. I click the button in visual studio to run the application and then I get the error.
 
what happens when you remove the impersonates=true in your web.config?
 
Anyone have any more thoughts on what is causing this to happen?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top