托管 Silverlight 业务应用程序 - Godaddy

发布于 2024-10-03 07:33:04 字数 1720 浏览 1 评论 0原文

您能帮我在 Silverlight 业务应用程序中进行身份验证吗? 我使用模板(VS2010、Silverlight 4)打开了 Silverlight 业务应用程序项目。我没有添加额外的代码,只添加了一个 godaddy sql server 连接条目到 Web.config。发布项目,将其通过 FTP 传输到 godaddy 服务器。我收到以下错误:

“IIS 指定了身份验证方案‘基本、匿名’,但绑定仅支持指定一种身份验证方案...更改 IIS 设置,以便仅使用一种身份验证方案。”

我联系了 godaddy,他们禁用了基本身份验证方案。我又试了一次,得到了同样的信息。我再次联系 godaddy(也许他们忘记点击保存按钮。)他们确认,我收到此错误:“IIS 指定了身份验证方案‘IntegratedWindowsAuthentication,Anonymous’,但绑定仅支持指定一种身份验证方案...” 我是否错过了做一些事情来让这个工作正常进行?请帮忙!这是我的 web.config 文件:

<configuration>
<configSections>  
<system.web>
    <customErrors mode="Off"/>
    <httpModules>
        <add name="DomainServiceModule" 
        type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule,  
        System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, 
        PublicKeyToken=31BF3856AD364E35" />
    </httpModules>
    <compilation debug="true" targetFramework="4.0" />
    <roleManager enabled="true"/>
    <authentication mode="Forms">      
    </authentication>
    <profile>
      <properties>
        <add name="FriendlyName"/>
      </properties>
    </profile>  
</system.web>
<system.serviceModel>
   <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<connectionStrings>
   <remove name="LocalSqlServer" />
   <add name="LocalSqlServer"  connectionString="Data Source=myhost; Initial Catalog=mydatabase; User ID=myusername; 
   Password='mypassowrd';" providerName="System.Data.SqlClient"/>
</connectionStrings>
</configuration>

Could you please help me with authentication in Silverlight Business Application.
I opened Silverlight Business Application project using the template (VS2010, Silverlight 4). I added no extra code, only a godaddy sql server connection entry to Web.config. Published the project, FTP it over to godaddy server. I get this errors:

"IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme...Change the IIS settings so that only a single authentication scheme is used."

I contacted godaddy and they disabled the basic authenthication scheme. I tried it again and got the same message. I contact godaddy again (maybe they forgot to hit the save button.) They confirmed, I am get this error: "IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous' but the binding only supports specification of exactly one authentication scheme..."
Am I missing to do something on my end to get this working? Please help! Here is my web.config file:

<configuration>
<configSections>  
<system.web>
    <customErrors mode="Off"/>
    <httpModules>
        <add name="DomainServiceModule" 
        type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule,  
        System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, 
        PublicKeyToken=31BF3856AD364E35" />
    </httpModules>
    <compilation debug="true" targetFramework="4.0" />
    <roleManager enabled="true"/>
    <authentication mode="Forms">      
    </authentication>
    <profile>
      <properties>
        <add name="FriendlyName"/>
      </properties>
    </profile>  
</system.web>
<system.serviceModel>
   <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<connectionStrings>
   <remove name="LocalSqlServer" />
   <add name="LocalSqlServer"  connectionString="Data Source=myhost; Initial Catalog=mydatabase; User ID=myusername; 
   Password='mypassowrd';" providerName="System.Data.SqlClient"/>
</connectionStrings>
</configuration>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼眸 2024-10-10 07:33:04

指示 Godaddy 将身份验证方案设置为仅匿名。

Instruct Godaddy to set authentication scheme to Anonymous only.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文