如何发布本地计算机中的aspx文件? [英] How to publish the aspx files which are in local machines?

查看:100
本文介绍了如何发布本地计算机中的aspx文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了一个aspx应用程序,我想提供用于从系统进行测试的URL.意味着,测试人员需要访问我的本地系统来测试应用程序.

由于我将URL设为http://localhost :(路由编号)/directory/Default.aspx,因此我无法将此URL提供给他们,因为他们无法访问该URL.我也尝试输入IP地址和计算机名称,但失败.

我发布了该网站,然后提供了链接.但是我收到一个xml解析器错误:格式不正确.当我从系统上运行时,这不是在本地发生的.怎么解决呢?如何提供url?

有人可以帮忙吗?

谢谢

I have completed an aspx application, which I wanted to provide the url for testing from my system. Means, the testers need to access my local system for testing the application.

Since I''m getting the url as http://localhost:(routing number)/directory/Default.aspx, I cannot give this url to them as they cannot access it. I tried to put my IP Address and computer name also, but it fails.

I published the site, and then provide the link. But I am getting an xml parser error: not well formed. It was not happening locally when I run from my system. How to solve this? How to provide the url?

Can anybody please help?

Thanks

推荐答案

meeram395写道:
meeram395 wrote:

由于我将网址设为http://localhost :(路由编号)/directory/Default.aspx,因此无法提供此地址向他们发送网址,因为他们无法访问它.我也尝试输入IP地址和计算机名称,但失败.

我发布了该站点,然后提供了链接.但是我收到一个xml解析器错误:格式不正确.当我从系统上运行时,这不是在本地发生的.怎么解决呢?如何提供URL?

Since I''m getting the url as http://localhost:(routing number)/directory/Default.aspx, I cannot give this url to them as they cannot access it. I tried to put my IP Address and computer name also, but it fails.

I published the site, and then provide the link. But I am getting an xml parser error: not well formed. It was not happening locally when I run from my system. How to solve this? How to provide the url?



您必须在IIS中为Web应用程序创建虚拟目录.部署Web应用程序后,可以使用IP地址在您的网络中对其进行访问,例如
http://yourip/directory/default.aspx.

第一步:在系统/服务器中安装IIS.
第2步:为该Web应用程序创建虚拟目录
第3步:设置默认页面,身份验证模式,最重要的是.Net框架版本.

阅读此



You have to create a Virtual Directory in IIS for your web application. After Deploying the web application it can be accessible in your network using IP address like
http://yourip/directory/default.aspx.

Step1: Install IIS in your system/ server.
Step 2 : Create Virtual Directory for that web application
Step3 : Set the default page,authentication mode and most importantly .Net framework version.

Read this article.[^]


这篇关于如何发布本地计算机中的aspx文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆