Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Newbie security problem

Reply
Thread Tools

Newbie security problem

 
 
Remo Aschwanden
Guest
Posts: n/a
 
      02-06-2008
Hi

I tried to write a webservice for test purposes. I have some PHP
experience but am a newbie in C# ASP.NET web development.

On the development machine (VS 2005) I create an empty ASP.NET web
service project and added the [WebMethod] "HelloWorld" to it. When the
service is run from the IDE by the development server, everything seems
to be fine.

Now I copied the files to an IIS virtual directory and tried to call the
method. Now I get the error message "Server application not available"
(this is my english translation of the german text). When I take a look
into the application event log I see a warning (source: ASP.NET
2.0.50727.0)

System.IO.FileLoad Exeption
The file or assembly System.Web ... has not been found. Access
denied. ...

followed by an error message (source: ASP.NET 2.0.50727.0)

The request could not be processed because the ASP.NET process
identity has no read access to the global assembly cache.

In the IIS virtual directory I have enabled anonymous access by the
default IUSR_... user, i.e. I did not change the default settings.

Ì am totally unexperienced in .NET-Security in general and ASP.NET
security in particular.

Do I have to grant more rights to this user? Which rights? Where do I do
that?

The development machine is a virtual machine (Virtual PC, XP Prof). I
originally installed the development environment, copied the virtual
machine and changed the computer name afterwards. Does this procedure
have any unwanted side effects?

Thanks you in advance for all helpful contributions.

Remo A.



 
Reply With Quote
 
 
 
 
Tomar
Guest
Posts: n/a
 
      03-04-2008
Go to inetmgr
Select your project
right click -->properties-->Directory tab
Application Name --> Remove and create application again.

Also check for local path permission on top

"Remo Aschwanden" wrote:

> Hi
>
> I tried to write a webservice for test purposes. I have some PHP
> experience but am a newbie in C# ASP.NET web development.
>
> On the development machine (VS 2005) I create an empty ASP.NET web
> service project and added the [WebMethod] "HelloWorld" to it. When the
> service is run from the IDE by the development server, everything seems
> to be fine.
>
> Now I copied the files to an IIS virtual directory and tried to call the
> method. Now I get the error message "Server application not available"
> (this is my english translation of the german text). When I take a look
> into the application event log I see a warning (source: ASP.NET
> 2.0.50727.0)
>
> System.IO.FileLoad Exeption
> The file or assembly System.Web ... has not been found. Access
> denied. ...
>
> followed by an error message (source: ASP.NET 2.0.50727.0)
>
> The request could not be processed because the ASP.NET process
> identity has no read access to the global assembly cache.
>
> In the IIS virtual directory I have enabled anonymous access by the
> default IUSR_... user, i.e. I did not change the default settings.
>
> Ì am totally unexperienced in .NET-Security in general and ASP.NET
> security in particular.
>
> Do I have to grant more rights to this user? Which rights? Where do I do
> that?
>
> The development machine is a virtual machine (Virtual PC, XP Prof). I
> originally installed the development environment, copied the virtual
> machine and changed the computer name afterwards. Does this procedure
> have any unwanted side effects?
>
> Thanks you in advance for all helpful contributions.
>
> Remo A.
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing higher security level from higher security level nderose@gmail.com Cisco 0 07-11-2005 10:20 PM
Newbie: Data transfer security problem clsmith66 ASP .Net Security 1 03-17-2005 09:04 PM
Going from higher security level interface to lower security interface- HELP!!! - AM Cisco 4 12-28-2004 09:52 PM
IT-Security, Security, e-security COMSOLIT Messmer Computer Support 0 09-05-2003 08:34 AM
MCSA: Security MCSE: Security question Rick Sears MCSE 0 07-29-2003 08:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57