[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Cresting Web Setup in ASP.NET

Posted on 2008-06-23
10
Medium Priority
?
413 Views
Last Modified: 2013-11-26
I have created some asp.net pages in my website. Now what I want that it should run in Intranet not in internet. What i want is that i will send some .exe or .msi file to user , user will install it in one of the machine and then every user should access that application using the IP address of that machine.
How could I achieve this kind of facility ? Or if it is not possible then whiach way should I follow ?
0
Comment
Question by:akulavi
  • 4
  • 4
8 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 21844312
These articles may help you deploying an asp.net-application

How to Deploy ASP.NET Web Application
http://www.beansoftware.com/ASP.NET-Tutorials/Deploy-ASP.NET.aspx

Deploying ASP.NET Applications - Part 1 (and 2)
http://www.15seconds.com/issue/030806.htm
0
 

Author Comment

by:akulavi
ID: 21844442
Hai Dhaest,
I have gone through the steps of those tutorials.... Whenever I am installing it in my machine it is working fine. My O/S is Win 2003. But whenever I am installing it in my Client Machine it is showing one error :

Failed to access IIS Metabase

O/S of Client is Win Xp. Is there any problem with O/S? If it is not then What is the main cause for this kind of problem ?
I am giving the details of the Error:::::
Server Error in '/vphrep1' Application.
--------------------------------------------------------------------------------
 
Failed to access IIS metabase. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
 
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase. 
 
The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.
 
Source Error: 
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
 
Stack Trace: 
 
 
[HostingEnvironmentException: Failed to access IIS metabase.]
   System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +3591442
   System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath vpath) +9
   System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +169
   System.Web.CachedPathData.GetConfigPathData(String configPath) +389
   System.Web.CachedPathData.GetConfigPathData(String configPath) +243
   System.Web.CachedPathData.GetApplicationPathData() +68
   System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +3536567
   System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +189
 
 
 
 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 

Open in new window

0
 
LVL 53

Expert Comment

by:Dhaest
ID: 21844460
Is there IIS installed on the machine ?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:akulavi
ID: 21844479
Yes. surely.
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 21844518
Are the rights correctly ?
0
 

Author Comment

by:akulavi
ID: 21844524
if u r talking about the rights of the virtual directory it is correct....... If other things that i dont know .. will u pls help me in this regard ?
0
 

Author Comment

by:akulavi
ID: 21844649
Hai experts,
I am waiting for ur reply ....... its urgent
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 2000 total points
ID: 21845035
Found at another forum:
The problem had to do with the ASPNET user, and its permissions, and apparently some bug in the ASP.NET install.  I had tried all the things in these threads:

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=116989&SiteID=1
    http://blog.devstone.com/Aaron/archive/2006/05/08/1586.aspx

But none of them worked for me.  Here is what worked for my box:

We followed below steps to resolve the issue -

1. Unregistered all the versions of ASP.NET with command "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis ua".

2. Deleted the ASPNET account from "Local Users and Group  Users".

3. Then registered ASP.NET 2.0 with IIS using "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis i".

4. Gave permissions to the ASPNET account using "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis ga machinename\ASPNET".

5. Reset the IIS and that resolved the issue for ASP.NET 2.0.

6. We registered ASP.NET 1.1 with IIS as well using command "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis i".

7. Reset the IIS.

0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Integration Management Part 2
Loops Section Overview
Suggested Courses
Course of the Month19 days, 3 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question