Thursday, March 22, 2012

VS 2005 Internal Server problems

I wrote a web application in visual studio 2005 that access a dll and returns the value returned. When I open the application from file and run using vs internal server (ASP.NET Development Server 8.0.0.0) it works fine. When I run with IIS on machine, the application doesnt work. I am stumped on what is going on. I have a feeling it is some settings on VS Internal server that is not set on IIS but dont know what...

Help!

What's the error?

Does any asp.net 2.0 site work on that server? (is it configured properly is what I'm asking).


ASP.net generally works well on the IIS server. There is no error message.

I have a .net dll and my web app sits on top of it. I developed the web app initially using the file-system Web site that uses ASP.NET development server.

All I know is that when I run the application using the built-in ASP.NET Development Server, it works. In IIS, it does'nt work.

I was reading online and I think it might be due to priviledges to run app.

Excerpt below ...

An important difference between the ASP.NET Development Server and IIS is the security context in which the respective servers run your ASP.NET pages. This difference can affect your testing because of differences in how the pages run.

When you run a page using the ASP.NET Development Server, the page runs in the context of your current user account. For example, if you are running as an administrator-level user, a page running in the ASP.NET Development Server will have administrator-level privileges. In contrast, in IIS, ASP.NET by default runs in the context of the special user (ASPNET or NETWORK SERVICES) that typically has limited privileges. The ASPNET or NETWORK SERVICES accounts are local to the server computer (not domain accounts), which restricts access to resources on other computers.

Excerpt end

Any advice would help


under VS2005 Command prompt aspnet_regiis -i


Hi,

Have you registered the dll that you are using in vs 2005 to your server? Maybe the dll that you are using is registered in your system and not your server.


hadekoya:

I was reading online and I think it might be due to priviledges to run app.

That shouldnt be a factor unless your site is doing something at the file/system/network level outside the site. You can alwasy test your theory out by either changing the IIS settings and use an Admin account as the user (only do this for a test, dont leave it this way, EVER). Or you could use impersonation in the config file and set a username & password to run the site context under...

As for no error message... then why do you think it's the site failing? Perhaps its your other DLL?


I aspnet_regiis -i on the latest version of .net I have, to no avail.


It is possible to be the DLL. But on the account that the app worked under ASP.NET development server leads me to believe that it should work when I use IIS as well. I will test out your admin idea and let u know asap


jobejufranz:

Hi,

Have you registered the dll that you are using in vs 2005 to your server? Maybe the dll that you are using is registered in your system and not your server.

How would I go about registering the dll on server. Is it the normal regsrv32 or is there more to it


Hi,

If you think that IIS does not have access to the resources try using FileMon Tool.You can download it at SysInternals.com or (http://www.microsoft.com/TechNet/Sysinternals/Utilities/Filemon.mspx) When you run this tool it capture all the file that were execute and your need to open that log file in excel and see the detail and filter access denied.

0 comments:

Post a Comment