Solved

Cresting Web Setup in ASP.NET

Posted on 2008-06-23
10
392 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
10 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
 

Author Comment

by:akulavi
ID: 21844479
Yes. surely.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vb.net dynamic formulas in runtime 11 63
What .NET URL re-routing tool did I use? 2 37
Error on link 14 39
VB.NET 2008 Populate DataModel with DataTable 36 12
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now